From eb8e529c4657c2e57e491ed8f38215708eed7fb5 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Fri, 24 Oct 2008 23:53:30 +0200 Subject: Reorganize into a usable debian dkms package Signed-off-by: Henrik Rydberg --- bcm5974-dkms-mkdeb/debian/README.Debian | 23 ----------- bcm5974-dkms-mkdeb/debian/changelog | 5 --- bcm5974-dkms-mkdeb/debian/compat | 1 - bcm5974-dkms-mkdeb/debian/control | 16 -------- bcm5974-dkms-mkdeb/debian/copyright | 41 ------------------- bcm5974-dkms-mkdeb/debian/dirs | 1 - bcm5974-dkms-mkdeb/debian/postinst | 71 --------------------------------- bcm5974-dkms-mkdeb/debian/postrm | 27 ------------- bcm5974-dkms-mkdeb/debian/prerm | 28 ------------- bcm5974-dkms-mkdeb/debian/rules | 53 ------------------------ 10 files changed, 266 deletions(-) delete mode 100644 bcm5974-dkms-mkdeb/debian/README.Debian delete mode 100644 bcm5974-dkms-mkdeb/debian/changelog delete mode 100644 bcm5974-dkms-mkdeb/debian/compat delete mode 100644 bcm5974-dkms-mkdeb/debian/control delete mode 100644 bcm5974-dkms-mkdeb/debian/copyright delete mode 100644 bcm5974-dkms-mkdeb/debian/dirs delete mode 100644 bcm5974-dkms-mkdeb/debian/postinst delete mode 100644 bcm5974-dkms-mkdeb/debian/postrm delete mode 100644 bcm5974-dkms-mkdeb/debian/prerm delete mode 100644 bcm5974-dkms-mkdeb/debian/rules (limited to 'bcm5974-dkms-mkdeb/debian') diff --git a/bcm5974-dkms-mkdeb/debian/README.Debian b/bcm5974-dkms-mkdeb/debian/README.Debian deleted file mode 100644 index 1f170f1..0000000 --- a/bcm5974-dkms-mkdeb/debian/README.Debian +++ /dev/null @@ -1,23 +0,0 @@ -MODULE_NAME DKMS module for Debian - -BCM5974: This driver adds support for the multitouch trackpad on the -new Apple Macbook Air and Macbook Pro Penryn laptops. It replaces the -appletouch driver on those computers, and integrates well with the -synaptics driver of the Xorg system. - -Known to work on Macbook Air and Macbook Pro Penryn. - -* Install the debian package (uses dkms) - -* Reboot - -Post installation - -* Make sure your /etc/X11/xorg.conf settings are sane. - -* If experiencing problems with your xorg settings, try the - bcm5974-diagnostics script (dkms installs the source under /usr/src/). - -Enjoy! - -Henrik Rydberg diff --git a/bcm5974-dkms-mkdeb/debian/changelog b/bcm5974-dkms-mkdeb/debian/changelog deleted file mode 100644 index 2f74f29..0000000 --- a/bcm5974-dkms-mkdeb/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -MODULE_NAME-dkms (MODULE_VERSION) unstable; urgency=low - - * Add support for MacBook 5,1 (unibody) - - -- Henrik Rydberg DATE_STAMP diff --git a/bcm5974-dkms-mkdeb/debian/compat b/bcm5974-dkms-mkdeb/debian/compat deleted file mode 100644 index 7ed6ff8..0000000 --- a/bcm5974-dkms-mkdeb/debian/compat +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/bcm5974-dkms-mkdeb/debian/control b/bcm5974-dkms-mkdeb/debian/control deleted file mode 100644 index c5497bf..0000000 --- a/bcm5974-dkms-mkdeb/debian/control +++ /dev/null @@ -1,16 +0,0 @@ -Source: MODULE_NAME-dkms -Section: linux-input -Priority: optional -Maintainer: Henrik Rydberg -Build-Depends: debhelper (>= 5) -Standards-Version: 3.7.2 -Homepage: http://web.comhem.se/rydberg/Bits/ - -Package: MODULE_NAME-dkms -Architecture: all -Depends: dkms (>= 1.95), bash (>> 1.99) -Description: Apple USB BCM5974 Multitouch trackpad support (DKMS) - This driver adds support for the multitouch trackpad on the new - Apple Macbook Air and Macbook Pro Penryn laptops. It replaces the - appletouch driver on those computers, and integrates well with the - synaptics driver of the Xorg system. diff --git a/bcm5974-dkms-mkdeb/debian/copyright b/bcm5974-dkms-mkdeb/debian/copyright deleted file mode 100644 index e00b447..0000000 --- a/bcm5974-dkms-mkdeb/debian/copyright +++ /dev/null @@ -1,41 +0,0 @@ -The bcm5974-dkms package was created using DKMS - -Source URL: http://web.comhem.se/rydberg/Bits/ - -Upstream Author: Henrik Rydberg - -Copyright: - Copyright (C) 2008 Henrik Rydberg (rydberg@euromail.se) - - The USB initialization and package decoding was made by - Scott Shawcroft as part of the touchd user-space driver project: - Copyright (C) 2008 Scott Shawcroft (scott.shawcroft@gmail.com) - - The BCM5974 driver is based on the appletouch driver: - Copyright (C) 2001-2004 Greg Kroah-Hartman (greg@kroah.com) - Copyright (C) 2005 Johannes Berg (johannes@sipsolutions.net) - Copyright (C) 2005 Stelian Pop (stelian@popies.net) - Copyright (C) 2005 Frank Arnold (frank@scirocco-5v-turbo.de) - Copyright (C) 2005 Peter Osterlund (petero2@telia.com) - Copyright (C) 2005 Michael Hanselmann (linux-kernel@hansmi.ch) - Copyright (C) 2006 Nicolas Boichat (nicolas@boichat.ch) - -License: - - This program 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 program 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, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -Packaging: - Copyright (C) 2008 by Henrik Rydberg - released under GPL 2 diff --git a/bcm5974-dkms-mkdeb/debian/dirs b/bcm5974-dkms-mkdeb/debian/dirs deleted file mode 100644 index b601f22..0000000 --- a/bcm5974-dkms-mkdeb/debian/dirs +++ /dev/null @@ -1 +0,0 @@ -usr/src diff --git a/bcm5974-dkms-mkdeb/debian/postinst b/bcm5974-dkms-mkdeb/debian/postinst deleted file mode 100644 index 65b16ae..0000000 --- a/bcm5974-dkms-mkdeb/debian/postinst +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/sh - -set -e - -NAME=MODULE_NAME -VERSION=MODULE_VERSION - -case "$1" in - configure) - # Determine current arch / kernel - c_arch=`uname -m` - c_kern=`uname -r` - - if [ -e "/var/lib/dkms/$NAME/$VERSION" ]; then - echo "Removing old $NAME-$VERSION DKMS files..." - dkms remove -m $NAME -v $VERSION --all - fi - - echo "Loading new $NAME-$VERSION DKMS files..." - #dkms add -m $NAME -v $VERSION - dkms ldtarball --archive "/usr/src/$NAME-$VERSION.dkms.tar.gz" - rm -f "/usr/src/$NAME-$VERSION.dkms.tar.gz" - - echo "Installing prebuilt kernel module binaries (if any)" - set +e - IFS=' -' - for kern in `dkms status -m $NAME -v $VERSION -a $c_arch | grep ": built" | awk {'print $3'} | sed 's/,$//'`; do - echo "Trying kernel: $kern" - dkms install --force -m $NAME -v $VERSION -k $kern -a $c_arch - done - unset IFS - set -e - - # If none installed, install. - ##if [ `dkms status -m $NAME -v $VERSION -k $c_kern -a $c_arch | grep -c ": installed"` -eq 0 ]; then - dkms_status=`dkms status -m $NAME -v $VERSION -k $c_kern -a $c_arch` - if [ `echo $dkms_status | grep -c ": installed"` -eq 0 ]; then - if [ `echo $c_kern | grep -c "BOOT"` -eq 0 ] && [ -e "/lib/modules/$c_kern/build/include" ]; then - # Only build if we need to. - if [ `echo $dkms_status | grep -c ": built"` -eq 0 ]; then - echo "Building module..." - dkms build -m $NAME -v $VERSION - fi - echo "Installing module..." - dkms install -m $NAME -v $VERSION - elif [ `echo $c_kern | grep -c "BOOT"` -gt 0 ]; then - echo -e "" - echo -e "Module build for the currently running kernel was skipped since you" - echo -e "are running a BOOT variant of the kernel." - else - echo -e "" - echo -e "Module build for the currently running kernel was skipped since the" - echo -e "kernel source for this kernel does not seem to be installed." - fi - fi - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 - diff --git a/bcm5974-dkms-mkdeb/debian/postrm b/bcm5974-dkms-mkdeb/debian/postrm deleted file mode 100644 index 78221c8..0000000 --- a/bcm5974-dkms-mkdeb/debian/postrm +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -NAME=MODULE_NAME -VERSION=MODULE_VERSION - -set -e - -case "$1" in - purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - moddir="/lib/modules/`uname -r`/kernel/" - depmod - if [ -d "/usr/src/$NAME-$VERSION" ]; then - echo "Removing old module source..." - rm -rf "/usr/src/$NAME-$VERSION" - fi - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 - diff --git a/bcm5974-dkms-mkdeb/debian/prerm b/bcm5974-dkms-mkdeb/debian/prerm deleted file mode 100644 index f42d293..0000000 --- a/bcm5974-dkms-mkdeb/debian/prerm +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -NAME=MODULE_NAME -VERSION=MODULE_VERSION - -set -e - -case "$1" in - remove|upgrade|deconfigure) - if [ "`dkms status -m $NAME`" ]; then - dkms remove -m $NAME -v $VERSION --all - fi - ;; - - failed-upgrade) - ;; - - *) - echo "prerm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 - - diff --git a/bcm5974-dkms-mkdeb/debian/rules b/bcm5974-dkms-mkdeb/debian/rules deleted file mode 100644 index 385aa1c..0000000 --- a/bcm5974-dkms-mkdeb/debian/rules +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -NAME=MODULE_NAME -VERSION=MODULE_VERSION - -configure: configure-stamp -configure-stamp: - dh_testdir - touch configure-stamp - - -build: build-stamp - -build-stamp: configure-stamp - dh_testdir - $(MAKE) - touch $@ - -clean: - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp - -$(MAKE) clean - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - $(MAKE) DESTDIR=$(CURDIR)/debian/$(NAME)-dkms NAME=$(NAME) VERSION=$(VERSION) install - -binary-arch: build install - -binary-indep: build install - dh_testdir - dh_testroot - dh_link - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure -- cgit v1.2.3