Skip to content

Commit

Permalink
Add Debian packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
spbnick committed Oct 11, 2015
1 parent 9542078 commit 72d02ba
Show file tree
Hide file tree
Showing 10 changed files with 138 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
digimend-dkms
digimend-dkms.*
files
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
digimend-dkms (6) unstable; urgency=low

* Initial Release.

-- Nikolai Kondrashov <[email protected]> Sun, 05 Apr 2015 15:38:04 +0300
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
16 changes: 16 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Source: digimend-dkms
Section: kernel
Priority: extra
Maintainer: Nikolai Kondrashov <[email protected]>
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.5
Homepage: https://github.com/DIGImend/digimend-kernel-drivers
Vcs-Git: https://github.com/DIGImend/digimend-kernel-drivers.git
Vcs-Browser: https://github.com/DIGImend/digimend-kernel-drivers

Package: digimend-dkms
Architecture: all
Depends: ${misc:Depends}
Description: A collection of graphics tablet drivers by DIGImend project
This is a collection of graphics tablet drivers for the Linux kernel, produced
and maintained by the DIGImend project.
32 changes: 32 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: digimend-kernel-drivers
Source: https://github.com/DIGImend/digimend-kernel-drivers

Files: *
Copyright: 2009 Jiri Kosina <[email protected]>
2009 Tomas Hanak <[email protected]>
2010-2015 Nikolai Kondrashov <[email protected]>
2013 Martin Rusko <[email protected]>
2015 Yann Vernier <[email protected]>
License: GPL-2.0+

Files: debian/*
Copyright: 2015 Nikolai Kondrashov <[email protected]>
License: GPL-2.0+

License: GPL-2.0+
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 <http://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".
1 change: 1 addition & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
21 changes: 21 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

set -e

case "$1" in
configure)
udevadm control --reload
;;

abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

#DEBHELPER#

exit 0
18 changes: 18 additions & 0 deletions debian/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

set -e

case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
udevadm control --reload
;;

*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac

#DEBHELPER#

exit 0
40 changes: 40 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# 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


# main packaging script based on dh7 syntax
%:
dh $@ --with dkms

build:

override_dh_auto_clean:

override_dh_auto_build:

override_dh_auto_test:

override_dh_auto_install:

override_dh_dkms:
dh_dkms -p digimend-dkms -V -- dkms.conf

override_dh_install:
dh_install Makefile *.c *.h usbhid usr/src/digimend-6/
dh_install 90-hid-rebind.rules lib/udev/rules.d/
dh_install hid-rebind sbin/
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)

0 comments on commit 72d02ba

Please sign in to comment.