summaryrefslogtreecommitdiff
path: root/testing/madwifi
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /testing/madwifi
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'testing/madwifi')
-rw-r--r--testing/madwifi/PKGBUILD46
-rw-r--r--testing/madwifi/kernel-2.6.30.patch14
-rw-r--r--testing/madwifi/madwifi-ng.install14
3 files changed, 74 insertions, 0 deletions
diff --git a/testing/madwifi/PKGBUILD b/testing/madwifi/PKGBUILD
new file mode 100644
index 000000000..1c1d9e484
--- /dev/null
+++ b/testing/madwifi/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 115939 2011-03-22 14:09:32Z tpowa $
+# Originally by kleptophobiac <kleptophobiac@gmail.com>
+# Modified by James Rayner for the repositories <iphitus@gmail.com>
+
+_kernver=2.6.38-ARCH
+
+pkgname=madwifi
+pkgver=0.9.4.4136
+pkgrel=2
+pkgdesc="Madwifi drivers for Atheros wireless chipsets. For stock arch 2.6 kernel"
+arch=(i686 x86_64)
+license=('GPL')
+url="http://madwifi-project.org"
+depends=('madwifi-utils' 'kernel26>=2.6.38' 'kernel26<2.6.39')
+makedepends=('kernel26-headers>=2.6.38' 'kernel26-headers<2.6.39')
+makedepends=('sharutils')
+install=madwifi-ng.install
+# subversion source: svn checkout http:/madwifi-project.org/svn/madwifi/trunk madwifi
+source=(ftp://ftp.archlinux.org/other/madwifi/madwifi-${pkgver}.tar.bz2
+ #http://downloads.sourceforge.net/madwifi/madwifi-${pkgver}.tar.gz
+ )
+options=(!strip)
+
+build() {
+ [ "${CARCH}" = "i686" ] && export ARCH=i386
+
+ #cd $startdir/src/$pkgname-$pkgver
+ cd $startdir/src/$pkgname
+ sed -i -e 's/-Werror//g' Makefile.inc
+ make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules
+}
+
+package() {
+ cd $startdir/src/$pkgname
+ make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules \
+ DESTDIR=$startdir/pkg KERNELRELEASE=$_kernver install-modules
+ sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
+
+ # install to wireless kernel directory
+ mkdir -p $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
+ mv $startdir/pkg/lib/modules/$_kernver/net/* $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
+ rm -r $startdir/pkg/lib/modules/$_kernver/net/
+ # gzip -9 modules
+ find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
+}
+md5sums=('f705acf5597ebe070efeaeb6c330748f')
diff --git a/testing/madwifi/kernel-2.6.30.patch b/testing/madwifi/kernel-2.6.30.patch
new file mode 100644
index 000000000..f844668de
--- /dev/null
+++ b/testing/madwifi/kernel-2.6.30.patch
@@ -0,0 +1,14 @@
+--- ath/if_athvar.h~ 2009-06-13 09:38:53.000000000 +0200
++++ ath/if_athvar.h 2009-06-13 09:38:53.000000000 +0200
+@@ -103,11 +103,6 @@
+ /*
+ * Guess how the interrupt handler should work.
+ */
+-#if !defined(IRQ_NONE)
+-typedef void irqreturn_t;
+-#define IRQ_NONE
+-#define IRQ_HANDLED
+-#endif /* !defined(IRQ_NONE) */
+
+ #ifndef SET_MODULE_OWNER
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
diff --git a/testing/madwifi/madwifi-ng.install b/testing/madwifi/madwifi-ng.install
new file mode 100644
index 000000000..8681b53ed
--- /dev/null
+++ b/testing/madwifi/madwifi-ng.install
@@ -0,0 +1,14 @@
+post_install() {
+ KERNEL_VERSION='2.6.38-ARCH'
+ depmod -ae $KERNEL_VERSION > /dev/null 2>&1
+}
+
+post_upgrade() {
+ KERNEL_VERSION='2.6.38-ARCH'
+ depmod -ae $KERNEL_VERSION > /dev/null 2>&1
+}
+
+post_remove() {
+ KERNEL_VERSION='2.6.38-ARCH'
+ depmod -ae $KERNEL_VERSION > /dev/null 2>&1
+}