summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2008-11-16 00:16:29 +0100
committerHenrik Rydberg <rydberg@euromail.se>2008-11-16 00:16:29 +0100
commitfcc91b86d4afd11a96334d55e438dcfffba83016 (patch)
treef73b11b114a14d5c09aecda7052bcd32c80e10c0 /debian
adding usbhid-dkms 0.10.1 to GIT
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'debian')
-rw-r--r--debian/README.Debian11
-rw-r--r--debian/changelog11
-rw-r--r--debian/compat1
-rw-r--r--debian/control13
-rw-r--r--debian/copyright30
-rw-r--r--debian/dirs1
-rw-r--r--debian/postinst71
-rw-r--r--debian/postrm27
-rw-r--r--debian/prerm28
-rwxr-xr-xdebian/rules53
10 files changed, 246 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..4933f48
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,11 @@
1usbhid DKMS module for Debian
2
3This package adds supplementary quirks mappings.
4
5* Install the debian package (uses dkms)
6
7* Reboot
8
9Enjoy!
10
11Henrik Rydberg <rydberg@euromail.se>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..45e9ae0
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,11 @@
1usbhid-dkms (0.10.2) unstable; urgency=low
2
3 * Upgrade to kernel Ubuntu-2.6.27-8.17
4
5 -- Henrik Rydberg <rydberg@euromail.se> Tue, 11 Nov 2008 02:55:02 +0100
6
7usbhid-dkms (0.10.1) unstable; urgency=low
8
9 * Ignore trackpad on new unibody Macbooks
10
11 -- Henrik Rydberg <rydberg@euromail.se> Fri, 31 Oct 2008 22:20:49 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..7644cdc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,13 @@
1Source: usbhid-dkms
2Section: misc
3Priority: optional
4Maintainer: Henrik Rydberg <rydberg@euromail.se>
5Build-Depends: debhelper (>= 5)
6Standards-Version: 3.7.2
7Homepage: https://launchpad.net/~rydberg
8
9Package: usbhid-dkms
10Architecture: all
11Depends: dkms (>= 1.95), bash (>> 1.99)
12Description: Supplementary usbhid support
13 This package makes usbhid ignore the trackpad on the new unibody Macbooks.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e7e1901
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
1The usbhid-dkms package was created using DKMS <dkms-devel@dell.com>
2
3Source URL: https://launchpad.net/~rydberg
4
5Upstream Author: Intrepid kernel 2.6.27
6
7Copyright:
8 Copyright (C) 2008 Henrik Rydberg (rydberg@euromail.se)
9
10 See the hid-quirks.c kernel source for a full list of credits.
11
12License:
13
14 This program is free software; you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation; either version 2 of the License, or
17 (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27
28Packaging:
29 Copyright (C) 2008 by Henrik Rydberg <rydberg@euromail.se>
30 released under GPL 2
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..b601f22
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1 @@
usr/src
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..3da20fa
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,71 @@
1#!/bin/sh
2
3set -e
4
5NAME=usbhid
6VERSION=0.10.2
7
8case "$1" in
9 configure)
10 # Determine current arch / kernel
11 c_arch=`uname -m`
12 c_kern=`uname -r`
13
14 if [ -e "/var/lib/dkms/$NAME/$VERSION" ]; then
15 echo "Removing old $NAME-$VERSION DKMS files..."
16 dkms remove -m $NAME -v $VERSION --all
17 fi
18
19 echo "Loading new $NAME-$VERSION DKMS files..."
20 #dkms add -m $NAME -v $VERSION
21 dkms ldtarball --archive "/usr/src/$NAME-$VERSION.dkms.tar.gz"
22 rm -f "/usr/src/$NAME-$VERSION.dkms.tar.gz"
23
24 echo "Installing prebuilt kernel module binaries (if any)"
25 set +e
26 IFS='
27'
28 for kern in `dkms status -m $NAME -v $VERSION -a $c_arch | grep ": built" | awk {'print $3'} | sed 's/,$//'`; do
29 echo "Trying kernel: $kern"
30 dkms install --force -m $NAME -v $VERSION -k $kern -a $c_arch
31 done
32 unset IFS
33 set -e
34
35 # If none installed, install.
36 ##if [ `dkms status -m $NAME -v $VERSION -k $c_kern -a $c_arch | grep -c ": installed"` -eq 0 ]; then
37 dkms_status=`dkms status -m $NAME -v $VERSION -k $c_kern -a $c_arch`
38 if [ `echo $dkms_status | grep -c ": installed"` -eq 0 ]; then
39 if [ `echo $c_kern | grep -c "BOOT"` -eq 0 ] && [ -e "/lib/modules/$c_kern/build/include" ]; then
40 # Only build if we need to.
41 if [ `echo $dkms_status | grep -c ": built"` -eq 0 ]; then
42 echo "Building module..."
43 dkms build -m $NAME -v $VERSION
44 fi
45 echo "Installing module..."
46 dkms install -m $NAME -v $VERSION
47 elif [ `echo $c_kern | grep -c "BOOT"` -gt 0 ]; then
48 echo -e ""
49 echo -e "Module build for the currently running kernel was skipped since you"
50 echo -e "are running a BOOT variant of the kernel."
51 else
52 echo -e ""
53 echo -e "Module build for the currently running kernel was skipped since the"
54 echo -e "kernel source for this kernel does not seem to be installed."
55 fi
56 fi
57 ;;
58
59 abort-upgrade|abort-remove|abort-deconfigure)
60 ;;
61
62 *)
63 echo "postinst called with unknown argument \`$1'" >&2
64 exit 1
65 ;;
66esac
67
68#DEBHELPER#
69
70exit 0
71
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..556824e
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,27 @@
1#!/bin/sh
2
3NAME=usbhid
4VERSION=0.10.2
5
6set -e
7
8case "$1" in
9 purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
10 moddir="/lib/modules/`uname -r`/kernel/"
11 depmod
12 if [ -d "/usr/src/$NAME-$VERSION" ]; then
13 echo "Removing old module source..."
14 rm -rf "/usr/src/$NAME-$VERSION"
15 fi
16 ;;
17
18 *)
19 echo "postrm called with unknown argument \`$1'" >&2
20 exit 1
21 ;;
22esac
23
24#DEBHELPER#
25
26exit 0
27
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 0000000..74b6234
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,28 @@
1#!/bin/sh
2
3NAME=usbhid
4VERSION=0.10.2
5
6set -e
7
8case "$1" in
9 remove|upgrade|deconfigure)
10 if [ "`dkms status -m $NAME`" ]; then
11 dkms remove -m $NAME -v $VERSION --all
12 fi
13 ;;
14
15 failed-upgrade)
16 ;;
17
18 *)
19 echo "prerm called with unknown argument \`$1'" >&2
20 exit 1
21 ;;
22esac
23
24#DEBHELPER#
25
26exit 0
27
28
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..76a2a3b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,53 @@
1#!/usr/bin/make -f
2# -*- makefile -*-
3
4# Uncomment this to turn on verbose mode.
5#export DH_VERBOSE=1
6
7NAME=usbhid
8VERSION=0.10.2
9
10configure: configure-stamp
11configure-stamp:
12 dh_testdir
13 touch configure-stamp
14
15
16build: build-stamp
17
18build-stamp: configure-stamp
19 dh_testdir
20 $(MAKE)
21 touch $@
22
23clean:
24 dh_testdir
25 dh_testroot
26 rm -f build-stamp configure-stamp
27 -$(MAKE) clean
28 dh_clean
29
30install: build
31 dh_testdir
32 dh_testroot
33 dh_clean -k
34 dh_installdirs
35 $(MAKE) DESTDIR=$(CURDIR)/debian/$(NAME)-dkms NAME=$(NAME) VERSION=$(VERSION) install
36
37binary-arch: build install
38
39binary-indep: build install
40 dh_testdir
41 dh_testroot
42 dh_link
43 dh_strip
44 dh_compress
45 dh_fixperms
46 dh_installdeb
47 dh_shlibdeps
48 dh_gencontrol
49 dh_md5sums
50 dh_builddeb
51
52binary: binary-indep binary-arch
53.PHONY: build clean binary-indep binary-arch binary install configure