[arch-commits] CVS update of extra/network/iwlwifi-suspend2 (PKGBUILD iwlwifi.install)
daniel at archlinux.org
daniel at archlinux.org
Mon Aug 27 14:01:37 UTC 2007
Date: Monday, August 27, 2007 @ 10:01:37
Author: daniel
Path: /home/cvs-extra/extra/network/iwlwifi-suspend2
Added: PKGBUILD (1.1) iwlwifi.install (1.1)
adding to the repo
-----------------+
PKGBUILD | 24 ++++++++++++++++++++++++
iwlwifi.install | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 60 insertions(+)
Index: extra/network/iwlwifi-suspend2/PKGBUILD
diff -u /dev/null extra/network/iwlwifi-suspend2/PKGBUILD:1.1
--- /dev/null Mon Aug 27 10:01:37 2007
+++ extra/network/iwlwifi-suspend2/PKGBUILD Mon Aug 27 10:01:37 2007
@@ -0,0 +1,24 @@
+# Maintainer: Daniel Isenmann <daniel [at] archlinux.org>
+
+_kernver=2.6.22-suspend2
+pkgname=iwlwifi-suspend2
+_dlver=1.0.0-1
+pkgver=$(echo ${_dlver} | sed 's|-|.|g')
+pkgrel=1
+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/iwlwifi-${_dlver}.tgz)
+md5sums=('040c862c05496ade225e6d3d0a1ef7bf')
+
+build() {
+ cd $startdir/src/iwlwifi-${_dlver}
+ 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-suspend2/iwlwifi.install
diff -u /dev/null extra/network/iwlwifi-suspend2/iwlwifi.install:1.1
--- /dev/null Mon Aug 27 10:01:37 2007
+++ extra/network/iwlwifi-suspend2/iwlwifi.install Mon Aug 27 10:01:37 2007
@@ -0,0 +1,36 @@
+# arg 1: the new package version
+post_install()
+{
+ KERNEL_VERSION='2.6.22-suspend2'
+ 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-suspend2'
+ depmod -v $KERNEL_VERSION > /dev/null 2>&1
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove()
+{
+ KERNEL_VERSION='2.6.22-suspend2'
+ depmod -v $KERNEL_VERSION > /dev/null 2>&1
+
+ /bin/true
+}
+
+op=$1
+shift
+
+$op $*
More information about the arch-commits
mailing list