From 3abba11269f48aa0633e9c5d6d6fc189dce010bd Mon Sep 17 00:00:00 2001 From: nirenjan Date: Tue, 26 May 2020 23:41:17 -0700 Subject: [PATCH] Add default debian packaging This commit adds the default scripts for Debian packaging. This is not yet ready for prime time, therefore, I'm leaving it on its own branch for now. Most likely, I will use this as a template to generate the Debian packages and attach those to the releases. [skip ci] --- debian/changelog | 5 ++++ debian/compat | 1 + debian/control | 20 +++++++++++++++ debian/copyright | 45 +++++++++++++++++++++++++++++++++ debian/rules | 25 ++++++++++++++++++ debian/source/format | 1 + debian/x52pro-linux-dev.install | 4 +++ debian/x52pro-linux1.install | 4 +++ 8 files changed, 105 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/x52pro-linux-dev.install create mode 100644 debian/x52pro-linux1.install diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..08751c4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +x52pro-linux (0.2.1-1) unstable; urgency=medium + + * Initial release + + -- Nirenjan Krishnan Tue, 26 May 2020 17:50:35 -0700 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2bff8a9 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: x52pro-linux +Priority: optional +Maintainer: Nirenjan Krishnan +Build-Depends: debhelper (>= 9), autotools-dev, libusb-1.0-0-dev, python, doxygen, rsync, pkg-config, gettext +Standards-Version: 4.4.1 +Section: libs +Homepage: https://github.com/nirenjan/x52pro-linux + +Package: x52pro-linux-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: x52pro-linux1 +Description: X52/X52Pro interface library: Development libraries and header files + +Package: x52pro-linux1 +Architecture: any +Multi-Arch: same +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: X52/X52Pro interface library: Shared libraries and utilities diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..2b8b1c5 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,45 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: x52pro-linux +Upstream-Contact: Nirenjan Krishnan +Source: https://github.com/nirenjan/x52pro-linux + +Files: * +Copyright: 2012-2020 Nirenjan Krishnan +License: GPL-2 + X52Pro-Linux is licensed under the terms of the GNU General Public License with + the following clarification and special exception. + . + Linking this module statically or dynamically with other modules is making a + combined work based on this module. Thus, the terms and conditions of the GNU + General Public License cover the whole combination. + . + As a special exception, the copyright holders of this module give you + permission to link this module with independent modules to produce an + executable, regardless of the license terms of these independent modules, and + to copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the terms and + conditions of the license of that module. An independent module is a module + which is not derived from or based on this module. If you modify this module, + you may extend this exception to your version of the module, but you are not + obliged to do so. If you do not wish to do so, delete this exception statement + from your version. + +Files: debian/* +Copyright: 2020 Nirenjan Krishnan +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..31f06c9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ --with autoreconf + + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/x52pro-linux-dev.install b/debian/x52pro-linux-dev.install new file mode 100644 index 0000000..b973af4 --- /dev/null +++ b/debian/x52pro-linux-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/*/lib*.so +usr/lib/*/lib*.a +usr/lib/*/pkgconfig/* diff --git a/debian/x52pro-linux1.install b/debian/x52pro-linux1.install new file mode 100644 index 0000000..8856fec --- /dev/null +++ b/debian/x52pro-linux1.install @@ -0,0 +1,4 @@ +usr/lib/*/lib*.so.* +usr/bin/x52cli +usr/bin/x52test +usr/share/man/man1/x52cli.1