1 # Maintainer: Thomas Schneider <maxmusterm@gmail.com>
3 pkgname=tiacx-injection
6 pkgdesc="OpenSource module for Texas Instruments ACX100/ACX111 wireless chips. For stock arch 2.6 kernel with injection support for aircrack-ng"
8 url="http://acx100.sourceforge.net/"
10 depends=('wireless_tools' 'kernel26>=2.6.27' 'kernel26<2.6.28' 'tiacx-firmware')
13 source=(http://downloads.sourceforge.net/sourceforge/acx100/acx-$pkgver.tar.bz2
15 http://patches.aircrack-ng.org/acx-20070101.patch)
16 md5sums=('7d5ce3215708e4e9f95cf567a9ee3a12'
17 '9895f72f8d0c84956b0f6c3b16df0fe8'
18 '786344c994b8e36c91b2d81490c770b1')
23 cd $startdir/src/acx-$pkgver
24 patch -Np1 -i ../acx-20070101.patch || return 1
25 patch -Np1 -i ../kernel-2.6.27.patch || return 1
26 make -C /lib/modules/${_kernver}/build M=`pwd` || return 1
27 install -D acx.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/wireless/tiacx/acx.ko
28 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install