Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Description: User space IEEE 802.1X/WPA supplicant (wireless client)
- # URL: http://hostap.epitest.fi/wpa_supplicant/
- # Maintainer: Juergen Daubert, jue at crux dot nu
- # Depends on: openssl readline libnl dbus
- name=hostap
- version=adbce7443dbe902460926f650f3f8f31c66954cf
- release=4
- source=(https://w1.fi/cgit/hostap/snapshot/$name-$version.tar.gz
- wlan)
- build () {
- cd $name-$version/wpa_supplicant
- cp defconfig .config
- echo "CONFIG_READLINE=y
- CONFIG_LIBNL32=y
- CONFIG_CTRL_IFACE_DBUS_NEW=y
- CONFIG_IEEE80211W=y
- CONFIG_TLS=openssl
- CONFIG_SAE=y
- CONFIG_OWE=y
- CONFIG_SUITEB192=y
- CFLAGS+=-I/usr/include/libnl3" >> .config
- make BINDIR=/usr/sbin LIBDIR=/usr/lib
- install -d $PKG/{usr/sbin,usr/share/man/man{8,5},etc}
- install -m 0755 wpa_{cli,passphrase,supplicant} $PKG/usr/sbin
- # config
- echo -e "ctrl_interface=/var/run/wpa_supplicant\n" > $PKG/etc/wpa_supplicant.conf
- chmod 0600 $PKG/etc/wpa_supplicant.conf
- # rc script
- install -D -m 0755 $SRC/wlan $PKG/etc/rc.d/wlan
- # dbus
- install -d $PKG/usr/{share/dbus-1/system-services,etc/dbus-1/system.d}
- install -m 0644 dbus/fi.w1.wpa_supplicant1.service $PKG/usr/share/dbus-1/system-services/
- install -m 0644 dbus/dbus-wpa_supplicant.conf $PKG/usr/etc/dbus-1/system.d/wpa_supplicant.conf
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement