2006-04-17 14:56:12 +02:00
|
|
|
# Description: User space IEEE 802.1X/WPA supplicant (wireless client)
|
2022-01-17 14:46:43 +01:00
|
|
|
# URL: https://hostap.epitest.fi/wpa_supplicant/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: openssl readline libnl dbus
|
2006-04-17 14:56:12 +02:00
|
|
|
|
|
|
|
name=wpa_supplicant
|
2022-01-17 14:46:43 +01:00
|
|
|
version=2.10
|
2022-11-05 13:14:07 +01:00
|
|
|
release=2
|
2019-09-01 10:20:35 +02:00
|
|
|
source=(https://w1.fi/releases/$name-$version.tar.gz
|
2022-01-17 14:46:43 +01:00
|
|
|
wpa_supplicant wlan)
|
2006-04-17 14:56:12 +02:00
|
|
|
|
2022-01-17 14:46:43 +01:00
|
|
|
build() {
|
|
|
|
cd $name-$version/$name
|
2012-01-23 18:47:06 +01:00
|
|
|
|
2022-01-17 14:46:43 +01:00
|
|
|
cp defconfig .config
|
|
|
|
echo "CONFIG_READLINE=y
|
|
|
|
CONFIG_LIBNL32=y
|
|
|
|
CONFIG_CTRL_IFACE_DBUS_NEW=y
|
|
|
|
CFLAGS+=-I/usr/include/libnl3" >> .config
|
2012-01-23 18:47:06 +01:00
|
|
|
|
2022-01-17 14:46:43 +01:00
|
|
|
make BINDIR=/usr/sbin LIBDIR=/usr/lib
|
2012-01-23 18:47:06 +01:00
|
|
|
|
2022-01-17 14:46:43 +01:00
|
|
|
install -d $PKG/{usr/sbin,usr/share/man/man{8,5},etc}
|
|
|
|
install -m 0755 wpa_{cli,passphrase,supplicant} $PKG/usr/sbin
|
|
|
|
install -m 0644 doc/docbook/wpa_{background,cli,passphrase,supplicant}.8 $PKG/usr/share/man/man8
|
|
|
|
install -m 0644 doc/docbook/wpa_supplicant.conf.5 $PKG/usr/share/man/man5
|
2012-01-23 18:47:06 +01:00
|
|
|
|
2022-01-17 14:46:43 +01:00
|
|
|
# config
|
2022-11-05 13:14:07 +01:00
|
|
|
echo -e "ctrl_interface=/run/wpa_supplicant\n" > $PKG/etc/wpa_supplicant.conf
|
2022-01-17 14:46:43 +01:00
|
|
|
chmod 0600 $PKG/etc/wpa_supplicant.conf
|
2015-09-21 11:58:17 +02:00
|
|
|
|
2022-01-17 14:46:43 +01:00
|
|
|
# rc script
|
|
|
|
install -D -m 0755 $SRC/wlan $PKG/etc/rc.d/wlan
|
|
|
|
install -m 0755 $SRC/wpa_supplicant $PKG/etc/rc.d
|
2015-10-23 19:31:33 +02:00
|
|
|
|
2022-01-17 14:46:43 +01:00
|
|
|
# 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/etc/dbus-1/system.d/wpa_supplicant.conf
|
2006-04-17 14:56:12 +02:00
|
|
|
}
|