diff options
Diffstat (limited to 'abs/core/wlan-ng26')
-rw-r--r-- | abs/core/wlan-ng26/PKGBUILD | 35 | ||||
-rw-r--r-- | abs/core/wlan-ng26/kernel-2.6.26.patch | 14 | ||||
-rw-r--r-- | abs/core/wlan-ng26/wlan-ng26.install | 30 |
3 files changed, 79 insertions, 0 deletions
diff --git a/abs/core/wlan-ng26/PKGBUILD b/abs/core/wlan-ng26/PKGBUILD new file mode 100644 index 0000000..c592386 --- /dev/null +++ b/abs/core/wlan-ng26/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 7952 2008-08-05 10:33:48Z tpowa $ +# Maintainer: Tom Killian <tom@archlinux.org> + +pkgname=wlan-ng26 +pkgver=0.2.9 +pkgrel=1 +_kernver=2.6.26-ARCH +pkgdesc="Wireless Lan usb modules. For kernel26." +arch=(i686 x86_64) +license=('MPL') +depends=('kernel26>=2.6.26-1' 'kernel26<2.6.27' 'wlan-ng26-utils') +source=(ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-$pkgver.tar.bz2 + kernel-2.6.26.patch) +url="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/" +install=wlan-ng26.install +options=(!makeflags) + +build() { + cd $startdir/src/linux-wlan-ng-$pkgver + patch -Np0 -i ../kernel-2.6.26.patch || return 1 + # only built usb modules the rest is covered by hostap and orinoco driver, according to gentoo changelog + sed -i "s#PRISM2_PCMCIA=y#PRISM2_PCMCIA=n#;s#TARGET_ROOT_ON_HOST=#TARGET_ROOT_ON_HOST=$startdir/pkg#;s#PRISM2_PLX=y#PRISM2_PLX=n#;s#PRISM2_PCI=y#PRISM2_PCI=n#;s#PRISM2_USB=n#PRISM2_USB=y#;s%#LINUX_SRC=/usr/src/linux%LINUX_SRC=/lib/modules/${_kernver}/build%" config.in + make auto_config + make all || return 1 + make install + sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/wlan-ng26.install + rm -r $startdir/pkg/{etc,sbin,usr,init.d} + # fix module path + mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/wireless + mv $startdir/pkg/lib/modules/${_kernver}/linux-wlan-ng \ + $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/wireless +} + +md5sums=('96130b36f9674521b08fb3e2a6ac0382' + '6ed5a5fefc2c149e0e0a98de211ba147') diff --git a/abs/core/wlan-ng26/kernel-2.6.26.patch b/abs/core/wlan-ng26/kernel-2.6.26.patch new file mode 100644 index 0000000..ec306f0 --- /dev/null +++ b/abs/core/wlan-ng26/kernel-2.6.26.patch @@ -0,0 +1,14 @@ +Index: src/p80211/p80211netdev.c +=================================================================== +--- src/p80211/p80211netdev.c (revision 1865) ++++ src/p80211/p80211netdev.c (working copy) +@@ -947,7 +947,9 @@ + #endif + #endif + +-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) ) ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) ) ++ dev_net_set(dev, &init_net); ++#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) ) + dev->nd_net = &init_net; + #endif
\ No newline at end of file diff --git a/abs/core/wlan-ng26/wlan-ng26.install b/abs/core/wlan-ng26/wlan-ng26.install new file mode 100644 index 0000000..fe7abaa --- /dev/null +++ b/abs/core/wlan-ng26/wlan-ng26.install @@ -0,0 +1,30 @@ +# arg 1: the new package version +post_install() { + post_upgrade +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + # updating module dependencies + echo ">>> Updating module dependencies. Please wait ..." + KERNEL_VERSION=2.6.26-ARCH + depmod -v $KERNEL_VERSION > /dev/null 2>&1 +} + +# arg 1: the old package version +pre_remove() { + /bin/true +} + +# arg 1: the old package version +post_remove() { + # updating module dependencies + echo ">>> Updating module dependencies. Please wait ..." + KERNEL_VERSION=2.6.26-ARCH + depmod -v $KERNEL_VERSION > /dev/null 2>&1 +} + +op=$1 +shift +$op $* |