1 #Contributor Antti Oja <antti.bofh(AT)gmail.com>
2 #Contributor Jakob Gruber <jakob.gruber(AT)kabelnet.at>
6 pkgdesc="Drivers for rt2870 chipset wireless cards"
8 url="http://www.mediatek.com/en/Products/support.php?sn=501"
10 makedepends=('linux-headers')
12 install=install.rt2870
13 md5sums=('9afbb7c60bcf17a5e8bfad89a4b14e0f' '2964cc3b322f52db822b25be2e77c02d')
14 fileprefix='2010_0709_RT2870_Linux_STA_v'
15 source=("http://dl.dropbox.com/u/169548/${fileprefix}${pkgver}.tar.bz2" "2.6.35.patch")
19 cd ${srcdir}/${fileprefix}${pkgver}
21 #configure for being controlled by NetworkManager or wpa_supplicant wext functions
23 sed "s#HAS_WPA_SUPPLICANT=n#HAS_WPA_SUPPLICANT=y#" -i os/linux/config.mk
24 sed "s#HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n#HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y#" -i os/linux/config.mk
26 #allow compilation on 2.6.35
28 patch -Np2 < ${srcdir}/2.6.35.patch
34 cd ${srcdir}/${fileprefix}${pkgver}
36 install -D -m 755 os/linux/rt2870sta.ko ${pkgdir}/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rt2870sta.ko
37 install -D -m 644 RT2870STA.dat ${pkgdir}/etc/Wireless/RT2870STA/RT2870STA.dat
38 install -D -m 644 RT2870STACard.dat ${pkgdir}/etc/Wireless/RT2870STA/RT2870STACard.dat