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
|
2012-01-23 18:47:06 +01:00
|
|
|
# Depends on: openssl ncurses readline libnl
|
2006-04-17 12:56:12 +00:00
|
|
|
|
|
|
|
name=wpa_supplicant
|
2013-01-13 10:08:02 +01:00
|
|
|
version=2.0
|
|
|
|
release=1
|
2006-04-17 12:56:12 +00:00
|
|
|
source=(http://hostap.epitest.fi/releases/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
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
|
|
|
|
CFLAGS+=-I/usr/include/libnl3" >> .config
|
2012-01-23 18:47:06 +01:00
|
|
|
|
2006-04-17 12:56:12 +00:00
|
|
|
make
|
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
|
|
|
|
|
2006-04-17 12:56:12 +00:00
|
|
|
echo -e "ctrl_interface=/var/run/wpa_supplicant\n" > $PKG/etc/wpa.conf
|
|
|
|
chmod 0600 $PKG/etc/wpa.conf
|
|
|
|
}
|