# Maintainer: Gaetan Bisson # Contributor: hokasch # Contributor: Dennis Brendel # Contributor: Mathias Buren # Contributor: Benjamin Mtz (Cruznick) pkgname=compat-wireless-patched pkgver=3.4_rc1_2 _upver="${pkgver//_/-}" pkgrel=1 pkgdesc='Compat wireless driver patched for fixing "fixed-channel -1" issue and better injection' url='http://wireless.kernel.org/en/users/Download/stable/' arch=('i686' 'x86_64') license=('GPL') depends=('linux') makedepends=('linux-api-headers' 'linux-headers') source=("http://www.orbit-lab.org/kernel/compat-wireless-${pkgver:0:1}-stable/v${pkgver:0:3}/compat-wireless-${_upver}.tar.bz2" \ 'mac80211.compat08082009.wl_frag+ack_v1.patch') sha1sums=('4439bd64b8e87fd3db8da1ed44d163a52bb34139' '85f7a1b141549b774f5631fba259bc414aeeffb8') install=install build() { cd "${srcdir}/compat-wireless-${_upver}" # modprobe -l dropped in kmod sed 's:modprobe -l \([^ )`]*\):find /lib/modules/*/kernel -name "\1.ko*" | sed "s|.*/kernel||":' -i scripts/* sed 's:\$(MODPROBE) -l \([^ )`]*\):find /lib/modules/*/kernel -name "\1.ko*" | sed "s|.*/kernel||":' -i Makefile # rfkill.h does not use compat-3.1.h echo '#define br_port_exists(dev) (dev->priv_flags & IFF_BRIDGE_PORT)' >> net/wireless/core.h patch -p1 -i ../mac80211.compat08082009.wl_frag+ack_v1.patch scripts/driver-select intel make } package() { cd "${srcdir}/compat-wireless-${_upver}" make INSTALL_MOD_PATH="${pkgdir}" install-modules find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \; install -d "${pkgdir}"/usr/sbin install scripts/{iwl-enable,iwl-load} "${pkgdir}"/usr/sbin/ install -d "${pkgdir}"/usr/lib/compat-wireless install scripts/{check_depmod,modlib.sh} "${pkgdir}"/usr/lib/compat-wireless/ install -d "${pkgdir}"/lib/udev/rules.d install udev/50-compat_firmware.rules "${pkgdir}"/lib/udev/rules.d/ install udev/compat_firmware.sh "${pkgdir}"/lib/udev/ }