Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

compat-wireless-patched

By: a guest on Apr 8th, 2012  |  syntax: Bash  |  size: 2.05 KB  |  views: 115  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Gaetan Bisson <bisson@archlinux.org>
  2. # Contributor: hokasch <hokasch at operamail dot com>
  3. # Contributor: Dennis Brendel <buddabrod at gmail dot com>
  4. # Contributor: Mathias Buren <mathias.buren at gmail dot com>
  5. # Contributor: Benjamin Mtz (Cruznick) <cruznick at archlinux dot us>
  6.  
  7. pkgname=compat-wireless-patched
  8. pkgver=3.4_rc1_2
  9. _upver="${pkgver//_/-}"
  10. pkgrel=1
  11. pkgdesc='Compat wireless driver patched for fixing "fixed-channel -1" issue and better injection'
  12. url='http://wireless.kernel.org/en/users/Download/stable/'
  13. arch=('i686' 'x86_64')
  14. license=('GPL')
  15. depends=('linux')
  16. makedepends=('linux-api-headers' 'linux-headers')
  17. source=("http://www.orbit-lab.org/kernel/compat-wireless-${pkgver:0:1}-stable/v${pkgver:0:3}/compat-wireless-${_upver}.tar.bz2" \
  18.         'mac80211.compat08082009.wl_frag+ack_v1.patch')
  19. sha1sums=('4439bd64b8e87fd3db8da1ed44d163a52bb34139'
  20.           '85f7a1b141549b774f5631fba259bc414aeeffb8')
  21. install=install
  22.  
  23. build() {
  24.         cd "${srcdir}/compat-wireless-${_upver}"
  25.  
  26.         # modprobe -l dropped in kmod
  27.         sed 's:modprobe -l \([^ )`]*\):find /lib/modules/*/kernel -name "\1.ko*" | sed "s|.*/kernel||":' -i scripts/*
  28.         sed 's:\$(MODPROBE) -l \([^ )`]*\):find /lib/modules/*/kernel -name "\1.ko*" | sed "s|.*/kernel||":' -i Makefile
  29.  
  30.         # rfkill.h does not use compat-3.1.h
  31.         echo '#define br_port_exists(dev) (dev->priv_flags & IFF_BRIDGE_PORT)' >> net/wireless/core.h
  32.  
  33.         patch -p1 -i ../mac80211.compat08082009.wl_frag+ack_v1.patch
  34.  
  35.         scripts/driver-select intel
  36.        
  37.         make
  38. }
  39.  
  40. package() {
  41.         cd "${srcdir}/compat-wireless-${_upver}"
  42.  
  43.         make INSTALL_MOD_PATH="${pkgdir}" install-modules
  44.         find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
  45.  
  46.         install -d "${pkgdir}"/usr/sbin
  47.         install scripts/{iwl-enable,iwl-load} "${pkgdir}"/usr/sbin/
  48.  
  49.         install -d "${pkgdir}"/usr/lib/compat-wireless
  50.         install scripts/{check_depmod,modlib.sh} "${pkgdir}"/usr/lib/compat-wireless/
  51.  
  52.         install -d "${pkgdir}"/lib/udev/rules.d
  53.         install udev/50-compat_firmware.rules "${pkgdir}"/lib/udev/rules.d/
  54.         install udev/compat_firmware.sh "${pkgdir}"/lib/udev/
  55. }
clone this paste RAW Paste Data