#Maintainer: George Vlahavas (vlahavas@gmail.com, gapan@zenwalk forums) pkgname=wpa-supplicant pkgver=0.5.10 pkgrel=1 zenver=52 arch=i486 source=("http://hostap.epitest.fi/releases/wpa_supplicant-0.5.10.tar.gz" "http://downloads.sourceforge.net/madwifi/madwifi-0.9.4.tar.bz2" "http://users.zenwalk.org/user-accounts/gapan/wpa-supplicant/config" "http://users.zenwalk.org/user-accounts/gapan/wpa-supplicant/_ralink.tbz" "http://users.zenwalk.org/user-accounts/gapan/wpa-supplicant/wpa-supplicant.conf") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://hostap.epitest.fi/wpa_supplicant/ options=('norequiredbuilder' 'keepdepfile') doinst() { # force change on rc.wireless to use -Bwu switches instead of just # -Bw. This shouldn't hurt anything in anyway so this is going to # be considered a 'safe' patch. [ -r etc/rc.d/rc.wireless ] && sed -i -e 's|-Bwu|-Bw|g' -e 's|-Bw|-Bwu|g' etc/rc.d/rc.wireless } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "wpa-supplicant - A WPA Supplicant Tool" "wpa_supplicant is a WPA Supplicant for Linux, BSD, Mac OS X, and" "Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). It is" "suitable for both desktop/laptop computers and embedded systems." "Supplicant is the IEEE 802.1X/WPA component that is used in the client" "stations. It implements key negotiation with a WPA Authenticator and" "it controls the roaming and IEEE 802.11 authentication/association of" "the wlan driver." ) build() { cd $startdir/src/wpa_supplicant-$pkgver # link to the ralink and madwifi dirs lndir ../_ralink lndir ../madwifi-0.9.4 # patch for ralink patch -p0 --verbose -i ralink-wpa_supplicant.patch || exit # add configuration from our config cp $startdir/src/config .config # build make || return 1 # install in temp dir mkdir -p $startdir/pkg/usr/sbin cp wpa_cli wpa_supplicant wpa_passphrase $startdir/pkg/usr/sbin cd $startdir/pkg/usr/sbin ln -s wpa_cli wpa-cli ln -s wpa_supplicant wpa-supplicant ln -s wpa_passphrase wpa-passphrase # generate dbus control policy mkdir -p $startdir/pkg/etc/dbus-1/system.d/ cp $startdir/src/wpa-supplicant.conf $startdir/pkg/etc/dbus-1/system.d/ chown -R root:root $startdir/pkg }