Skip to content

Commit

Permalink
Add Debian packaging scripts
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
nirenjan committed Sep 15, 2021
1 parent d8fc859 commit 06abc56
Show file tree
Hide file tree
Showing 10 changed files with 132 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,12 @@ docs/man

# Build directory
/build/

# Debian packaging
/debian/.debhelper
/debian/autoreconf.*
/debian/files
/debian/tmp
/debian/x52pro-*/
/debian/*.log
/debian/*.substvars
17 changes: 17 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
x52pro-linux (0.2.2) unstable; urgency=medium

* New upstream release

-- Nirenjan Krishnan <nirenjan@nirenjan.org> Fri, 03 Sep 2021 11:54:33 -0700

x52pro-linux (0.2.1) unstable; urgency=medium

* New upstream release

-- Nirenjan Krishnan <nirenjan@nirenjan.org> Sun, 28 Jun 2020 13:40:55 -0700

x52pro-linux (0.2.0) unstable; urgency=medium

* Initial release

-- Nirenjan Krishnan <nirenjan@nirenjan.org> Tue, 26 May 2020 17:50:35 -0700
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
20 changes: 20 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Source: x52pro-linux
Priority: optional
Maintainer: Nirenjan Krishnan <nirenjan@nirenjan.org>
Build-Depends: debhelper (>= 9), autotools-dev, libtool, libusb-1.0-0-dev, python3, doxygen, rsync, pkg-config, gettext, autopoint, libcmocka-dev (>= 1.1), libhidapi-dev, libevdev-dev
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
45 changes: 45 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: x52pro-linux
Upstream-Contact: Nirenjan Krishnan <nirenjan@nirenjan.org>
Source: https://github.com/nirenjan/x52pro-linux

Files: *
Copyright: 2012-2021 Nirenjan Krishnan <nirenjan@nirenjan.org>
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: 2021 Nirenjan Krishnan <nirenjan@nirenjan.org>
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 <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

25 changes: 25 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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)

1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
1 change: 1 addition & 0 deletions debian/source/options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-I '.*/x52d.service'
4 changes: 4 additions & 0 deletions debian/x52pro-linux-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
usr/include/*
usr/lib/*/lib*.so
usr/lib/*/lib*.a
usr/lib/*/pkgconfig/*
9 changes: 9 additions & 0 deletions debian/x52pro-linux1.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
etc/x52d/x52d.conf
lib/udev/rules.d
lib/systemd/system/x52d.service
usr/lib/*/lib*.so.*
usr/bin/x52cli
usr/bin/x52test
usr/bin/x52evtest
usr/bin/x52d
usr/share/man/man1/x52cli.1

0 comments on commit 06abc56

Please sign in to comment.