diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-09 23:17:24 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-09 23:17:24 +0100 |
| commit | 6179e30e6ee2421b1d2fe1c4f3fbf530de2440aa (patch) | |
| tree | e89c4fe4136eec8f20dbc5d1fd5c1e67e30dc2b0 | |
| parent | 8b25612e078e6e93c880b84b603110dec02b5881 (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-- | .gitignore | 3 | ||||
| -rw-r--r-- | HACKING | 27 | ||||
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | debian/changelog | 4 | ||||
| -rw-r--r-- | debian/control | 2 | ||||
| -rw-r--r-- | debian/dirs | 1 | ||||
| -rw-r--r-- | debian/postinst | 2 | ||||
| -rw-r--r-- | debian/postrm | 2 | ||||
| -rw-r--r-- | debian/prerm | 2 | ||||
| -rwxr-xr-x | debian/rules | 2 | ||||
| -rw-r--r-- | usr/src/dkms_source_tree/dkms.conf | 2 | ||||
| -rwxr-xr-x | usr/src/dkms_source_tree/scripts/bcm5974-diagnostics | 62 |
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 | ||
| 3 | usr/src/bcm5974-*.dkms.tar.gz | ||
| @@ -0,0 +1,27 @@ | |||
| 1 | Modifying and building the DKMS package | ||
| 2 | |||
| 3 | 1. use bzr to sync source with launchpad | ||
| 4 | |||
| 5 | 2. make your changes | ||
| 6 | |||
| 7 | 3. modify the VERSION variable in Makefile, then do | ||
| 8 | |||
| 9 | make bump | ||
| 10 | |||
| 11 | 4. add a new entry to debian/changelog, matching VERSION | ||
| 12 | |||
| 13 | 5. build binary package for testing with | ||
| 14 | |||
| 15 | dpkg-buildpackage | ||
| 16 | |||
| 17 | 6. clean the checkout with | ||
| 18 | |||
| 19 | make distclean | ||
| 20 | |||
| 21 | 7. build source package for upload with | ||
| 22 | |||
| 23 | debuild -S -sa | ||
| 24 | |||
| 25 | 8. upload packacke to ppa with (see ~/.dput.cf) | ||
| 26 | |||
| 27 | dput your-mactel-ppa-dput-entry name-and-version_source.changes | ||
| @@ -1,7 +1,6 @@ | |||
| 1 | NAME = bcm5974 | 1 | NAME = bcm5974 |
| 2 | VERSION = 1.0.1 | 2 | VERSION = 1.1.0 |
| 3 | SRC = usr/src | 3 | SRC = usr/src |
| 4 | ETC = etc/modprobe.d | ||
| 5 | 4 | ||
| 6 | TARBALL = $(NAME)-$(VERSION).dkms.tar.gz | 5 | TARBALL = $(NAME)-$(VERSION).dkms.tar.gz |
| 7 | PATCH = ./scripts/patch-name-version.sh $(NAME) $(VERSION) | 6 | PATCH = ./scripts/patch-name-version.sh $(NAME) $(VERSION) |
| @@ -19,9 +18,7 @@ distclean: clean | |||
| 19 | 18 | ||
| 20 | install: $(SRC)/$(TARBALL) | 19 | install: $(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 | ||
| 26 | bump: | 23 | bump: |
| 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 @@ | |||
| 1 | bcm5974-dkms (1.0.1) unstable; urgency=low | 1 | bcm5974-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 | ||
| 9 | Package: bcm5974-dkms | 9 | Package: bcm5974-dkms |
| 10 | Architecture: all | 10 | Architecture: all |
| 11 | Depends: dkms (>= 1.95), bash (>> 1.99) | 11 | Depends: dkms (>= 1.95), bash (>> 1.99), usbhid-dkms |
| 12 | Description: Apple USB BCM5974 Multitouch trackpad support (DKMS) | 12 | Description: 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 @@ | |||
| 1 | etc/modprobe.d | ||
| 2 | usr/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 @@ | |||
| 3 | set -e | 3 | set -e |
| 4 | 4 | ||
| 5 | NAME=bcm5974 | 5 | NAME=bcm5974 |
| 6 | VERSION=1.0.1 | 6 | VERSION=1.1.0 |
| 7 | 7 | ||
| 8 | case "$1" in | 8 | case "$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 | ||
| 3 | NAME=bcm5974 | 3 | NAME=bcm5974 |
| 4 | VERSION=1.0.1 | 4 | VERSION=1.1.0 |
| 5 | 5 | ||
| 6 | set -e | 6 | set -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 | ||
| 3 | NAME=bcm5974 | 3 | NAME=bcm5974 |
| 4 | VERSION=1.0.1 | 4 | VERSION=1.1.0 |
| 5 | 5 | ||
| 6 | set -e | 6 | set -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 | ||
| 7 | NAME=bcm5974 | 7 | NAME=bcm5974 |
| 8 | VERSION=1.0.1 | 8 | VERSION=1.1.0 |
| 9 | 9 | ||
| 10 | configure: configure-stamp | 10 | configure: configure-stamp |
| 11 | configure-stamp: | 11 | configure-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 @@ | |||
| 1 | NAME=bcm5974 | 1 | NAME=bcm5974 |
| 2 | VERSION=1.0.1 | 2 | VERSION=1.1.0 |
| 3 | PACKAGE_NAME="$NAME" | 3 | PACKAGE_NAME="$NAME" |
| 4 | PACKAGE_VERSION="$VERSION" | 4 | PACKAGE_VERSION="$VERSION" |
| 5 | MAKE[0]="make -C ${kernel_source_dir} | 5 | MAKE[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 |
| 69 | fi | 69 | fi |
| 70 | 70 | ||
| 71 | # Do we have old quirks? | 71 | # Do we have old options quirks? |
| 72 | MODPROBE=/etc/modprobe.d/options | 72 | MODPROBE=/etc/modprobe.d/options |
| 73 | if [ -f $MODPROBE ]; then | 73 | if [ -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 |
| 83 | fi | 83 | fi |
| 84 | 84 | ||
| 85 | # Do we have the right quirks? | 85 | # Do we have old bcm5974 quirks? |
| 86 | DRIVMOD=/etc/modprobe.d/$DRIVER | 86 | DRIVMOD=/etc/modprobe.d/$DRIVER |
| 87 | if [ -f $DRIVMOD ]; then | 87 | if [ -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 | ||
| 96 | else | ||
| 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 |
| 90 | else | ||
| 91 | echo \* $DRIVMOD: no such file, good | ||
| 100 | fi | 92 | fi |
| 101 | 93 | ||
| 102 | # Did the depmod bite? | 94 | # Did the depmod bite? |
| @@ -152,66 +144,68 @@ DIFF=/tmp/synclient-output.diff.$$ | |||
| 152 | TMP=/tmp/synclient-output.txt.$$ | 144 | TMP=/tmp/synclient-output.txt.$$ |
| 153 | synclient -l | grep -v Parameter | sort > $TMP | 145 | synclient -l | grep -v Parameter | sort > $TMP |
| 154 | diff -u - $TMP > $DIFF <<EOF | 146 | diff -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 |
| 216 | EOF | 210 | EOF |
| 217 | rm -f $TMP | 211 | rm -f $TMP |
