summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2008-11-09 23:17:24 +0100
committerHenrik Rydberg <rydberg@euromail.se>2008-11-09 23:17:24 +0100
commit6179e30e6ee2421b1d2fe1c4f3fbf530de2440aa (patch)
treee89c4fe4136eec8f20dbc5d1fd5c1e67e30dc2b0
parent8b25612e078e6e93c880b84b603110dec02b5881 (diff)
bcm5974-dkms 1.1.0
This is a reworked debian source DKMS package, in a shared git/bzr setup. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r--.gitignore3
-rw-r--r--HACKING27
-rw-r--r--Makefile5
-rw-r--r--debian/changelog4
-rw-r--r--debian/control2
-rw-r--r--debian/dirs1
-rw-r--r--debian/postinst2
-rw-r--r--debian/postrm2
-rw-r--r--debian/prerm2
-rwxr-xr-xdebian/rules2
-rw-r--r--usr/src/dkms_source_tree/dkms.conf2
-rwxr-xr-xusr/src/dkms_source_tree/scripts/bcm5974-diagnostics62
12 files changed, 67 insertions, 47 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f682682
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
1.bzr
2.bzrignore
3usr/src/bcm5974-*.dkms.tar.gz
diff --git a/HACKING b/HACKING
new file mode 100644
index 0000000..4a27fda
--- /dev/null
+++ b/HACKING
@@ -0,0 +1,27 @@
1Modifying and building the DKMS package
2
31. use bzr to sync source with launchpad
4
52. make your changes
6
73. modify the VERSION variable in Makefile, then do
8
9 make bump
10
114. add a new entry to debian/changelog, matching VERSION
12
135. build binary package for testing with
14
15 dpkg-buildpackage
16
176. clean the checkout with
18
19 make distclean
20
217. build source package for upload with
22
23 debuild -S -sa
24
258. upload packacke to ppa with (see ~/.dput.cf)
26
27 dput your-mactel-ppa-dput-entry name-and-version_source.changes
diff --git a/Makefile b/Makefile
index ac1c705..987f90e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,6 @@
1NAME = bcm5974 1NAME = bcm5974
2VERSION = 1.0.1 2VERSION = 1.1.0
3SRC = usr/src 3SRC = usr/src
4ETC = etc/modprobe.d
5 4
6TARBALL = $(NAME)-$(VERSION).dkms.tar.gz 5TARBALL = $(NAME)-$(VERSION).dkms.tar.gz
7PATCH = ./scripts/patch-name-version.sh $(NAME) $(VERSION) 6PATCH = ./scripts/patch-name-version.sh $(NAME) $(VERSION)
@@ -19,9 +18,7 @@ distclean: clean
19 18
20install: $(SRC)/$(TARBALL) 19install: $(SRC)/$(TARBALL)
21 install -d "$(DESTDIR)/$(SRC)" 20 install -d "$(DESTDIR)/$(SRC)"
22 install -d "$(DESTDIR)/$(ETC)"
23 install -m 644 $(SRC)/$(NAME)-$(VERSION).dkms.tar.gz "$(DESTDIR)/$(SRC)" 21 install -m 644 $(SRC)/$(NAME)-$(VERSION).dkms.tar.gz "$(DESTDIR)/$(SRC)"
24 install -m 644 $(ETC)/$(NAME) "$(DESTDIR)/$(ETC)"
25 22
26bump: 23bump:
27 $(PATCH) debian/postinst 24 $(PATCH) debian/postinst
diff --git a/debian/changelog b/debian/changelog
index cd42af0..63e7a9f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
1bcm5974-dkms (1.0.1) unstable; urgency=low 1bcm5974-dkms (1.1.0) intrepid; urgency=low
2 2
3 * Package stability when device not supported fixed 3 * Kernel configuration removed; now depends on the usbhid-dkms package.
4 4
5 -- Henrik Rydberg <rydberg@euromail.se> Sat, 25 Oct 2008 01:39:20 +0200 5 -- Henrik Rydberg <rydberg@euromail.se> Sat, 25 Oct 2008 01:39:20 +0200
6 6
diff --git a/debian/control b/debian/control
index 07c8bcb..afa83c0 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Homepage: http://web.comhem.se/rydberg/Bits/
8 8
9Package: bcm5974-dkms 9Package: bcm5974-dkms
10Architecture: all 10Architecture: all
11Depends: dkms (>= 1.95), bash (>> 1.99) 11Depends: dkms (>= 1.95), bash (>> 1.99), usbhid-dkms
12Description: Apple USB BCM5974 Multitouch trackpad support (DKMS) 12Description: Apple USB BCM5974 Multitouch trackpad support (DKMS)
13 This driver adds support for the multitouch trackpad on the new 13 This driver adds support for the multitouch trackpad on the new
14 Apple Macbook Air and Macbook Pro Penryn laptops. It replaces the 14 Apple Macbook Air and Macbook Pro Penryn laptops. It replaces the
diff --git a/debian/dirs b/debian/dirs
index fee20a1..b601f22 100644
--- a/debian/dirs
+++ b/debian/dirs
@@ -1,2 +1 @@
1etc/modprobe.d
2usr/src usr/src
diff --git a/debian/postinst b/debian/postinst
index d0b74cd..e10a0d5 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -3,7 +3,7 @@
3set -e 3set -e
4 4
5NAME=bcm5974 5NAME=bcm5974
6VERSION=1.0.1 6VERSION=1.1.0
7 7
8case "$1" in 8case "$1" in
9 configure) 9 configure)
diff --git a/debian/postrm b/debian/postrm
index e89ac95..c1d236c 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3NAME=bcm5974 3NAME=bcm5974
4VERSION=1.0.1 4VERSION=1.1.0
5 5
6set -e 6set -e
7 7
diff --git a/debian/prerm b/debian/prerm
index 2a82c19..f1ebd99 100644
--- a/debian/prerm
+++ b/debian/prerm
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3NAME=bcm5974 3NAME=bcm5974
4VERSION=1.0.1 4VERSION=1.1.0
5 5
6set -e 6set -e
7 7
diff --git a/debian/rules b/debian/rules
index f4c2023..9c03321 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
5#export DH_VERBOSE=1 5#export DH_VERBOSE=1
6 6
7NAME=bcm5974 7NAME=bcm5974
8VERSION=1.0.1 8VERSION=1.1.0
9 9
10configure: configure-stamp 10configure: configure-stamp
11configure-stamp: 11configure-stamp:
diff --git a/usr/src/dkms_source_tree/dkms.conf b/usr/src/dkms_source_tree/dkms.conf
index 8df8763..d56f701 100644
--- a/usr/src/dkms_source_tree/dkms.conf
+++ b/usr/src/dkms_source_tree/dkms.conf
@@ -1,5 +1,5 @@
1NAME=bcm5974 1NAME=bcm5974
2VERSION=1.0.1 2VERSION=1.1.0
3PACKAGE_NAME="$NAME" 3PACKAGE_NAME="$NAME"
4PACKAGE_VERSION="$VERSION" 4PACKAGE_VERSION="$VERSION"
5MAKE[0]="make -C ${kernel_source_dir} 5MAKE[0]="make -C ${kernel_source_dir}
diff --git a/usr/src/dkms_source_tree/scripts/bcm5974-diagnostics b/usr/src/dkms_source_tree/scripts/bcm5974-diagnostics
index acd0bf4..b59c496 100755
--- a/usr/src/dkms_source_tree/scripts/bcm5974-diagnostics
+++ b/usr/src/dkms_source_tree/scripts/bcm5974-diagnostics
@@ -68,7 +68,7 @@ if [ -f $MODULES ]; then
68 fi 68 fi
69fi 69fi
70 70
71# Do we have old quirks? 71# Do we have old options quirks?
72MODPROBE=/etc/modprobe.d/options 72MODPROBE=/etc/modprobe.d/options
73if [ -f $MODPROBE ]; then 73if [ -f $MODPROBE ]; then
74 MODPROBEOPTS=`grep quirks= $MODPROBE|grep -v ^#|grep 0x05ac:0x02` 74 MODPROBEOPTS=`grep quirks= $MODPROBE|grep -v ^#|grep 0x05ac:0x02`
@@ -82,21 +82,13 @@ else
82 echo \* $MODPROBE: file not found 82 echo \* $MODPROBE: file not found
83fi 83fi
84 84
85# Do we have the right quirks? 85# Do we have old bcm5974 quirks?
86DRIVMOD=/etc/modprobe.d/$DRIVER 86DRIVMOD=/etc/modprobe.d/$DRIVER
87if [ -f $DRIVMOD ]; then 87if [ -f $DRIVMOD ]; then
88 DRIVMODOPTS=`grep quirks= $DRIVMOD|grep -v ^#|grep 0x05ac:0x02` 88 echo \* $DRIVMOD: exists - please remove file
89 if [ "$DRIVMODOPTS" != "" ]; then
90 echo \* $DRIVMOD: has quirks, good
91 else
92 echo \* $DRIVMOD: does NOT have quirks
93 echo Uncomment the right quirk line in $DRIVMOD
94 exit 1
95 fi
96else
97 echo \* $DRIVMOD: file not found
98 echo Copy the etc/modprobe.d/bcm5974 file to /etc/modprobe.d/
99 exit 1 89 exit 1
90else
91 echo \* $DRIVMOD: no such file, good
100fi 92fi
101 93
102# Did the depmod bite? 94# Did the depmod bite?
@@ -152,66 +144,68 @@ DIFF=/tmp/synclient-output.diff.$$
152TMP=/tmp/synclient-output.txt.$$ 144TMP=/tmp/synclient-output.txt.$$
153synclient -l | grep -v Parameter | sort > $TMP 145synclient -l | grep -v Parameter | sort > $TMP
154diff -u - $TMP > $DIFF <<EOF 146diff -u - $TMP > $DIFF <<EOF
155 AccelFactor = 0.1 147 AccelFactor = 0.0331345
156 BottomEdge = 800 148 BottomEdge = 756
157 CircScrollDelta = 0.1 149 CircScrollDelta = 0.1
158 CircScrollTrigger = 0 150 CircScrollTrigger = 0
159 CircularPad = 0 151 CircularPad = 0
160 CircularScrolling = 0 152 CircularScrolling = 0
153 ClickFinger1 = 1
154 ClickFinger2 = 3
155 ClickFinger3 = 2
161 ClickTime = 100 156 ClickTime = 100
162 CoastingSpeed = 0 157 CoastingSpeed = 0
163 CornerCoasting = 0 158 CornerCoasting = 0
164 EdgeMotionMaxSpeed = 80 159 EdgeMotionMaxSpeed = 120
165 EdgeMotionMaxZ = 160 160 EdgeMotionMaxZ = 160
166 EdgeMotionMinSpeed = 1 161 EdgeMotionMinSpeed = 1
167 EdgeMotionMinZ = 30 162 EdgeMotionMinZ = 29
168 EdgeMotionUseAlways = 0 163 EdgeMotionUseAlways = 0
169 EmulateMidButtonTime = 75 164 EmulateMidButtonTime = 75
170 EmulateTwoFingerMinZ = 257 165 EmulateTwoFingerMinZ = 281
171 FastTaps = 0 166 FastTaps = 0
172 FingerHigh = 80 167 FingerHigh = 29
173 FingerLow = 16 168 FingerLow = 25
174 FingerPress = 256 169 FingerPress = 256
175 GrabEventDevice = 1 170 GrabEventDevice = 1
176 GuestMouseOff = 0 171 GuestMouseOff = 0
177 HorizEdgeScroll = 0 172 HorizEdgeScroll = 0
178 HorizScrollDelta = 0 173 HorizScrollDelta = 30
179 HorizTwoFingerScroll = 1 174 HorizTwoFingerScroll = 0
180 LBCornerButton = 0 175 LBCornerButton = 0
181 LeftEdge = 0 176 LeftEdge = 51
182 LeftRightScrolling = 1 177 LeftRightScrolling = 1
183 LeftRightScrollRepeat = 1 178 LeftRightScrollRepeat = 1
184 LockedDrags = 0 179 LockedDrags = 0
185 LockedDragTimeout = 5000 180 LockedDragTimeout = 5000
186 LTCornerButton = 0 181 LTCornerButton = 0
187 MaxDoubleTapTime = 200 182 MaxDoubleTapTime = 180
188 MaxSpeed = 1.2 183 MaxSpeed = 1
189 MaxTapMove = 100 184 MaxTapMove = 66
190 MaxTapTime = 223 185 MaxTapTime = 180
191 MinSpeed = 0.8 186 MinSpeed = 0.75
192 MultiFingerButton = 2
193 PalmDetect = 0 187 PalmDetect = 0
194 PalmMinWidth = 10 188 PalmMinWidth = 10
195 PalmMinZ = 200 189 PalmMinZ = 199
196 PressureMotionMaxFactor = 1 190 PressureMotionMaxFactor = 1
197 PressureMotionMaxZ = 160 191 PressureMotionMaxZ = 160
198 PressureMotionMinFactor = 1 192 PressureMotionMinFactor = 1
199 PressureMotionMinZ = 10 193 PressureMotionMinZ = 29
200 RBCornerButton = 0 194 RBCornerButton = 0
201 RightEdge = 1280 195 RightEdge = 1229
202 RTCornerButton = 0 196 RTCornerButton = 0
203 ScrollButtonRepeat = 100 197 ScrollButtonRepeat = 100
204 SingleTapTimeout = 180 198 SingleTapTimeout = 180
205 TapButton1 = 0 199 TapButton1 = 0
206 TapButton2 = 0 200 TapButton2 = 0
207 TapButton3 = 0 201 TapButton3 = 0
208 TopEdge = 0 202 TopEdge = 44
209 TouchpadOff = 0 203 TouchpadOff = 0
210 TrackstickSpeed = 40 204 TrackstickSpeed = 40
211 UpDownScrolling = 1 205 UpDownScrolling = 1
212 UpDownScrollRepeat = 1 206 UpDownScrollRepeat = 1
213 VertEdgeScroll = 0 207 VertEdgeScroll = 0
214 VertScrollDelta = 40 208 VertScrollDelta = 30
215 VertTwoFingerScroll = 1 209 VertTwoFingerScroll = 1
216EOF 210EOF
217rm -f $TMP 211rm -f $TMP