Advertisement
Guest User

Pkgfile

a guest
Nov 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. # Description: User space IEEE 802.1X/WPA supplicant (wireless client)
  2. # URL: http://hostap.epitest.fi/wpa_supplicant/
  3. # Maintainer: Juergen Daubert, jue at crux dot nu
  4. # Depends on: openssl readline libnl dbus
  5.  
  6. name=hostap
  7. version=adbce7443dbe902460926f650f3f8f31c66954cf
  8. release=4
  9. source=(https://w1.fi/cgit/hostap/snapshot/$name-$version.tar.gz
  10. wlan)
  11.  
  12. build () {
  13. cd $name-$version/wpa_supplicant
  14.  
  15. cp defconfig .config
  16. echo "CONFIG_READLINE=y
  17. CONFIG_LIBNL32=y
  18. CONFIG_CTRL_IFACE_DBUS_NEW=y
  19. CONFIG_IEEE80211W=y
  20. CONFIG_TLS=openssl
  21. CONFIG_SAE=y
  22. CONFIG_OWE=y
  23. CONFIG_SUITEB192=y
  24. CFLAGS+=-I/usr/include/libnl3" >> .config
  25.  
  26. make BINDIR=/usr/sbin LIBDIR=/usr/lib
  27.  
  28. install -d $PKG/{usr/sbin,usr/share/man/man{8,5},etc}
  29. install -m 0755 wpa_{cli,passphrase,supplicant} $PKG/usr/sbin
  30.  
  31. # config
  32. echo -e "ctrl_interface=/var/run/wpa_supplicant\n" > $PKG/etc/wpa_supplicant.conf
  33. chmod 0600 $PKG/etc/wpa_supplicant.conf
  34.  
  35. # rc script
  36. install -D -m 0755 $SRC/wlan $PKG/etc/rc.d/wlan
  37.  
  38. # dbus
  39. install -d $PKG/usr/{share/dbus-1/system-services,etc/dbus-1/system.d}
  40. install -m 0644 dbus/fi.w1.wpa_supplicant1.service $PKG/usr/share/dbus-1/system-services/
  41. install -m 0644 dbus/dbus-wpa_supplicant.conf $PKG/usr/etc/dbus-1/system.d/wpa_supplicant.conf
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement