[arch-commits] CVS update of extra/network/iwlwifi (PKGBUILD iwlwifi.install)
Thomas Baechler
thomas at archlinux.org
Mon Jul 9 21:45:18 UTC 2007
Date: Monday, July 9, 2007 @ 17:45:18
Author: thomas
Path: /home/cvs-extra/extra/network/iwlwifi
Added: PKGBUILD (1.1) iwlwifi.install (1.1)
upgpkg: iwlwifi 0.0.35-2
-----------------+
PKGBUILD | 24 ++++++++++++++++++++++++
iwlwifi.install | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 60 insertions(+)
Index: extra/network/iwlwifi/PKGBUILD
diff -u /dev/null extra/network/iwlwifi/PKGBUILD:1.1
--- /dev/null Mon Jul 9 17:45:18 2007
+++ extra/network/iwlwifi/PKGBUILD Mon Jul 9 17:45:18 2007
@@ -0,0 +1,24 @@
+# $Id: PKGBUILD,v 1.1 2007/07/09 21:45:18 thomas Exp $
+# Maintainer: Thomas Baechler <thomas at archlinux.org>
+
+_kernver=2.6.22-ARCH
+pkgname=iwlwifi
+pkgver=0.0.35
+pkgrel=2
+pkgdesc="Driver for the Intel PRO/Wireless 3945ABG/4965AGN miniPCI express adapters"
+arch=(i686 x86_64)
+url="http://intellinuxwireless.org/?p=iwlwifi"
+license=('GPL')
+depends=('wireless_tools' 'kernel26')
+install=iwlwifi.install
+source=(http://intellinuxwireless.org/iwlwifi/downloads/$pkgname-$pkgver.tgz)
+md5sums=('5a7cf5635a842e7e2e442739eb3c76d7')
+
+build() {
+ cd $startdir/src/$pkgname-$pkgver
+ make KSRC=/lib/modules/${_kernver}/build
+ #Install kernel module
+ install -D -m 644 compatible/iwl3945.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/wireless/iwl3945.ko
+ install -D -m 644 compatible/iwl4965.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/wireless/iwl4965.ko
+ sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
+}
Index: extra/network/iwlwifi/iwlwifi.install
diff -u /dev/null extra/network/iwlwifi/iwlwifi.install:1.1
--- /dev/null Mon Jul 9 17:45:18 2007
+++ extra/network/iwlwifi/iwlwifi.install Mon Jul 9 17:45:18 2007
@@ -0,0 +1,36 @@
+# arg 1: the new package version
+post_install()
+{
+ KERNEL_VERSION='2.6.22-ARCH'
+ depmod -v $KERNEL_VERSION > /dev/null 2>&1
+
+ echo
+ echo "To use the iwlwifi driver, you have to install the right firmware package:"
+ echo " - iwlwifi-3945-ucode for Intel Pro Wireless 3945ABG"
+ echo " - iwlwifi-4965-ucode for Intel Pro Wireless 4965AGN"
+ echo
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade()
+{
+ KERNEL_VERSION='2.6.22-ARCH'
+ depmod -v $KERNEL_VERSION > /dev/null 2>&1
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove()
+{
+ KERNEL_VERSION='2.6.22-ARCH'
+ depmod -v $KERNEL_VERSION > /dev/null 2>&1
+
+ /bin/true
+}
+
+op=$1
+shift
+
+$op $*
More information about the arch-commits
mailing list