summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/ipw3945/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core-testing/ipw3945/PKGBUILD
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core-testing/ipw3945/PKGBUILD')
-rw-r--r--abs/core-testing/ipw3945/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/abs/core-testing/ipw3945/PKGBUILD b/abs/core-testing/ipw3945/PKGBUILD
new file mode 100644
index 0000000..572b561
--- /dev/null
+++ b/abs/core-testing/ipw3945/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 5912 2008-07-21 20:12:27Z thomas $
+# Contributor: Giovanni Scafora <linuxmania@gmail.com>
+# Maintainer: James Rayner <iphitus@gmail.com>
+_kernver=2.6.26-ARCH
+pkgname=ipw3945
+pkgver=1.2.2
+pkgrel=11
+pkgdesc="Driver for the Intel PRO/Wireless 3945ABG miniPCI express adapter"
+arch=(i686 x86_64)
+url="http://ipw3945.sourceforge.net"
+license=("GPL")
+depends=('wireless_tools' 'kernel26>=2.6.26-1' 'kernel26<2.6.27' 'ipw3945-ucode' 'ipw3945d')
+install=ipw3945.install
+source=(http://downloads.sourceforge.net/sourceforge/ipw3945/ipw3945-$pkgver.tgz
+ compile-2.6.24.patch)
+md5sums=('9e5ca2f3ffbb84270ede45d5572df4c9'
+ '12db6e8410ab38f1fbca15681cfa752a')
+
+build() {
+ cd $startdir/src/ipw3945-$pkgver
+ sed -i -e "s:^#\(CONFIG_IPW3945_QOS\)=.*:\1=y:" \
+ -e "s:^# \(CONFIG_IPW3945_MONITOR\)=.*:\1=y:" \
+ -e "s:^# \(CONFIG_IEEE80211_RADIOTAP\)=.*:\1=y:" \
+ -e "s:^# \(CONFIG_IPW3945_PROMISCUOUS\)=.*:\1=y:" \
+ Makefile
+ patch -Np1 -i ../compile-2.6.24.patch || return 1
+ make KVER=${_kernver} IEEE80211_INC=/usr/src/linux-${_kernver}/ IEEE80211_IGNORE_DUPLICATE=y || return 1
+ #Install kernel module
+ install -D -m 644 ipw3945.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/wireless/ipw3945/ipw3945.ko
+ sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
+}