Commit 6983a9cf authored by Guido Gunther's avatar Guido Gunther
Browse files

Add initial Debian packaging

parent c81a5dab
This package is maintained with git-buildpackage(1). It follows DEP-14
for branch naming (e.g. using debian/sid for the current version
in Debian unstable).
It uses pristine-tar(1) to store enough information in git to generate
bit identical tarballs when building the package without having
downloaded an upstream tarball first.
When working with patches it is recommended to use "gbp pq import" to
import the patches, modify the source and then use "gbp pq export
--commit" to commit the modifications.
The changelog is generated using "gbp dch" so if you submit any
changes don't bother to add changelog entries but rather provide
a nice git commit message that can then end up in the changelog.
It is recommended to build the package with pbuilder using:
gbp buildpackage --git-pbuilder
For information on how to set up a pbuilder environment see the
git-pbuilder(1) manpage. In short:
DIST=sid git-pbuilder create
gbp clone <project-url>
cd <project>
gbp buildpackage --git-pbuilder
-- Guido Günther <agx@sigxcpu.org>, Wed, 2 Dec 2015 18:51:15 +0100
mfgtools (1.2.31-1) unstable; urgency=medium
* Initial release
-- Guido Günther <agx@sigxcpu.org> Mon, 17 Dec 2018 12:26:12 +0100
Source: mfgtools
Section: admin
Priority: optional
Maintainer: Guido Günther <agx@sigxcpu.org>
Build-Depends:
cmake,
debhelper (>= 11),
libbz2-dev,
libusb-1.0-0-dev,
libzip-dev,
pkg-config,
Standards-Version: 4.2.1
Homepage: https://github.com/NXPmicro/mfgtools
Package: uuu
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
Description: Freescale/NXP I.MX Chip image deploy tools
Universal udate utility for I.MX CPUs. It can be used to e.g. burn uboot or a
rootfs into the emmc.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: phosh
Source: https://source.puri.sm/Librem5/mfgtools
Files: *
Copyright: 2018 NXP
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
.
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
.
Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
.
Neither the name of the Freescale Semiconductor nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
Files: debian/*
Copyright: 2018 Purism SPC
License: GPL-3 or later
You are free to distribute this software under the terms of the GNU General
Public License Version 3. The full text of this license can be found in the
file /usr/share/common-licenses/GPL-3
[DEFAULT]
upstream-tag=uuu_%(version)s
From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org>
Date: Mon, 17 Dec 2018 13:10:27 +0100
Subject: Get version from changelog
If we're not in git get the version from debian/changelog
since other parts of the build rely on it.
---
libuuu/gen_ver.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libuuu/gen_ver.sh b/libuuu/gen_ver.sh
index 4c6f9ce..cec0311 100755
--- a/libuuu/gen_ver.sh
+++ b/libuuu/gen_ver.sh
@@ -17,4 +17,7 @@ then
# Get the version of the last commit of the repo
version=`git describe --tags --long`
echo "#define GIT_VERSION \"lib$version\"" > $file_to_write
+else
+ version=$(dpkg-parsechangelog -SVersion | sed 's/\(.*\)-\(.*\)/\1/')
+ echo "#define GIT_VERSION \"lib$version\"" > $file_to_write
fi
Get-version-from-changelog.patch
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export CMAKE_INSTALL_PREFIX=/usr
%:
dh $@
#override_dh_install:
# mv debian/uuu/usr/local/bin/uuu debian/uuu/usr/bin/uuu
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment