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