Skip to content

Commit 72d02ba

Browse files
committed
Add Debian packaging
1 parent 9542078 commit 72d02ba

File tree

10 files changed

+138
-0
lines changed

10 files changed

+138
-0
lines changed

debian/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
digimend-dkms
2+
digimend-dkms.*
3+
files

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
digimend-dkms (6) unstable; urgency=low
2+
3+
* Initial Release.
4+
5+
-- Nikolai Kondrashov <spbnick@gmail.com> Sun, 05 Apr 2015 15:38:04 +0300

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Source: digimend-dkms
2+
Section: kernel
3+
Priority: extra
4+
Maintainer: Nikolai Kondrashov <spbnick@gmail.com>
5+
Build-Depends: debhelper (>= 9)
6+
Standards-Version: 3.9.5
7+
Homepage: https://github.com/DIGImend/digimend-kernel-drivers
8+
Vcs-Git: https://github.com/DIGImend/digimend-kernel-drivers.git
9+
Vcs-Browser: https://github.com/DIGImend/digimend-kernel-drivers
10+
11+
Package: digimend-dkms
12+
Architecture: all
13+
Depends: ${misc:Depends}
14+
Description: A collection of graphics tablet drivers by DIGImend project
15+
This is a collection of graphics tablet drivers for the Linux kernel, produced
16+
and maintained by the DIGImend project.

debian/copyright

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: digimend-kernel-drivers
3+
Source: https://github.com/DIGImend/digimend-kernel-drivers
4+
5+
Files: *
6+
Copyright: 2009 Jiri Kosina <jkosina@suse.cz>
7+
2009 Tomas Hanak <tomas.hanak@gmail.com>
8+
2010-2015 Nikolai Kondrashov <spbnick@gmail.com>
9+
2013 Martin Rusko <martin.rusko@gmail.com>
10+
2015 Yann Vernier <yann.vernier@orsoc.se>
11+
License: GPL-2.0+
12+
13+
Files: debian/*
14+
Copyright: 2015 Nikolai Kondrashov <spbnick@gmail.com>
15+
License: GPL-2.0+
16+
17+
License: GPL-2.0+
18+
This package is free software; you can redistribute it and/or modify
19+
it under the terms of the GNU General Public License as published by
20+
the Free Software Foundation; either version 2 of the License, or
21+
(at your option) any later version.
22+
.
23+
This package is distributed in the hope that it will be useful,
24+
but WITHOUT ANY WARRANTY; without even the implied warranty of
25+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26+
GNU General Public License for more details.
27+
.
28+
You should have received a copy of the GNU General Public License
29+
along with this program. If not, see <http://www.gnu.org/licenses/>
30+
.
31+
On Debian systems, the complete text of the GNU General
32+
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

debian/docs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.md

debian/postinst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
case "$1" in
6+
configure)
7+
udevadm control --reload
8+
;;
9+
10+
abort-upgrade|abort-remove|abort-deconfigure)
11+
;;
12+
13+
*)
14+
echo "postinst called with unknown argument \`$1'" >&2
15+
exit 1
16+
;;
17+
esac
18+
19+
#DEBHELPER#
20+
21+
exit 0

debian/postrm

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
case "$1" in
6+
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
7+
udevadm control --reload
8+
;;
9+
10+
*)
11+
echo "postrm called with unknown argument \`$1'" >&2
12+
exit 1
13+
;;
14+
esac
15+
16+
#DEBHELPER#
17+
18+
exit 0

debian/rules

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/make -f
2+
# See debhelper(7) (uncomment to enable)
3+
# output every command that modifies files on the build system.
4+
DH_VERBOSE = 1
5+
6+
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
7+
DPKG_EXPORT_BUILDFLAGS = 1
8+
include /usr/share/dpkg/default.mk
9+
10+
# see FEATURE AREAS in dpkg-buildflags(1)
11+
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
12+
13+
# see ENVIRONMENT in dpkg-buildflags(1)
14+
# package maintainers to append CFLAGS
15+
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
16+
# package maintainers to append LDFLAGS
17+
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
18+
19+
20+
# main packaging script based on dh7 syntax
21+
%:
22+
dh $@ --with dkms
23+
24+
build:
25+
26+
override_dh_auto_clean:
27+
28+
override_dh_auto_build:
29+
30+
override_dh_auto_test:
31+
32+
override_dh_auto_install:
33+
34+
override_dh_dkms:
35+
dh_dkms -p digimend-dkms -V -- dkms.conf
36+
37+
override_dh_install:
38+
dh_install Makefile *.c *.h usbhid usr/src/digimend-6/
39+
dh_install 90-hid-rebind.rules lib/udev/rules.d/
40+
dh_install hid-rebind sbin/

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (native)

0 commit comments

Comments
 (0)