summaryrefslogtreecommitdiff
path: root/wpa_supplicant/Pkgfile
blob: 613951810b3e97bb55341d7e7ebadab4306b280d (plain)
    1 # Description: User space IEEE 802.1X/WPA supplicant (wireless client) 
    2 # URL:         http://hostap.epitest.fi/wpa_supplicant/
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 # Depends on:  openssl ncurses readline libnl
    5 
    6 name=wpa_supplicant
    7 version=2.4
    8 release=1
    9 source=(http://hostap.epitest.fi/releases/$name-$version.tar.gz)
   10 
   11 build () {
   12     cd $name-$version/$name
   13 
   14     cp defconfig .config
   15     echo "CONFIG_READLINE=y
   16           CONFIG_LIBNL32=y
   17           CFLAGS+=-I/usr/include/libnl3" >> .config
   18 
   19     make
   20 
   21     install -d $PKG/{usr/sbin,usr/man/man{8,5},etc}
   22     install -m 0755 wpa_{cli,passphrase,supplicant} $PKG/usr/sbin
   23     install -m 0644 doc/docbook/wpa_{background,cli,passphrase,supplicant}.8 $PKG/usr/man/man8
   24     install -m 0644 doc/docbook/wpa_supplicant.conf.5 $PKG/usr/man/man5
   25 
   26     echo -e "ctrl_interface=/var/run/wpa_supplicant\n" > $PKG/etc/wpa_supplicant.conf
   27     chmod 0600 $PKG/etc/wpa_supplicant.conf
   28     
   29     # symlink for compatibility with older releases
   30     ln -s wpa_supplicant.conf $PKG/etc/wpa.conf
   31 }

Generated by cgit