opt/wpa_supplicant/Pkgfile
Juergen Daubert 9dd6246e6f [notify] wpa_supplicant: default configuration file is /etc/wpa_supplicant.conf
NOTE:
-----
As of version 6.0 dhcpcd includes a hook, 10-wpa_supplicant, that starts
wpa_supplicant for wireless interfaces. The hook expects that the default
configuration file of wpa_supplicant is /etc/wpa_supplicant.conf.

Unfortunately our port is using /etc/wpa.conf as the default. I've
changed that with the current commit to /etc/wpa_supplicant. To keep
your current configuration a symlink to wpa.conf is installed as well
for now, but might be removed in future versions of the port.

It's possible to define the configuration name with a
  wpa_supplicant_conf=/etc/wpa.conf
in
  /etc/dhcpcd/dhcpcd.enter-hook
but using the default name is preferable.

Sorry for the inconvenience.
2013-07-10 13:03:01 +02:00

32 lines
1.0 KiB
Plaintext

# 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 ncurses readline libnl
name=wpa_supplicant
version=2.0
release=2
source=(http://hostap.epitest.fi/releases/$name-$version.tar.gz)
build () {
cd $name-$version/$name
cp defconfig .config
echo "CONFIG_READLINE=y
CONFIG_LIBNL32=y
CFLAGS+=-I/usr/include/libnl3" >> .config
make
install -d $PKG/{usr/sbin,usr/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/man/man8
install -m 0644 doc/docbook/wpa_supplicant.conf.5 $PKG/usr/man/man5
echo -e "ctrl_interface=/var/run/wpa_supplicant\n" > $PKG/etc/wpa_supplicant.conf
chmod 0600 $PKG/etc/wpa_supplicant.conf
# symlink for compatibility with older releases
ln -s wpa_supplicant.conf $PKG/etc/wpa.conf
}