blob: 64a555e5988ce99f558753b49a18be6082eb9890 (
plain)
1 # Description: User space IEEE 802.1X/WPA supplicant (wireless client)
2 # URL: https://hostap.epitest.fi/wpa_supplicant/
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: openssl readline libnl dbus
5
6 name=wpa_supplicant
7 version=2.9
8 release=1
9 source=(https://w1.fi/releases/$name-$version.tar.gz
10 wlan)
11
12 build () {
13 cd $name-$version/$name
14
15 cp defconfig .config
16 echo "CONFIG_READLINE=y
17 CONFIG_LIBNL32=y
18 CONFIG_CTRL_IFACE_DBUS_NEW=y
19 CFLAGS+=-I/usr/include/libnl3" >> .config
20
21 make BINDIR=/usr/sbin LIBDIR=/usr/lib
22
23 install -d $PKG/{usr/sbin,usr/share/man/man{8,5},etc}
24 install -m 0755 wpa_{cli,passphrase,supplicant} $PKG/usr/sbin
25 install -m 0644 doc/docbook/wpa_{background,cli,passphrase,supplicant}.8 $PKG/usr/share/man/man8
26 install -m 0644 doc/docbook/wpa_supplicant.conf.5 $PKG/usr/share/man/man5
27
28 # config
29 echo -e "ctrl_interface=/var/run/wpa_supplicant\n" > $PKG/etc/wpa_supplicant.conf
30 chmod 0600 $PKG/etc/wpa_supplicant.conf
31
32 # rc script
33 install -D -m 0755 $SRC/wlan $PKG/etc/rc.d/wlan
34
35 # dbus
36 install -d $PKG/{usr/share/dbus-1/system-services,etc/dbus-1/system.d}
37 install -m 0644 dbus/fi.w1.wpa_supplicant1.service $PKG/usr/share/dbus-1/system-services/
38 install -m 0644 dbus/dbus-wpa_supplicant.conf $PKG/etc/dbus-1/system.d/wpa_supplicant.conf
39 }
|