#Packager: George Vlahavas (vlahavas~at~gmail~dot~com) pkgname=wpa_supplicant pkgver=0.6.10 pkgrel=1gv source=("http://hostap.epitest.fi/releases/wpa_supplicant-0.6.10.tar.gz" "madwifi-r4017.tar.bz2" "config" "_ralink.tbz") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://hostap.epitest.fi/wpa_supplicant/ options=('nosrcpack' 'noautodotnew') dotnew=('etc/wpa_supplicant.conf') 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." "This package does not include the qt4 wpa_gui." ) build() { cd $startdir/src/wpa_supplicant-$pkgver/src/drivers # link to the ralink and madwifi dirs lndir ../../../_ralink lndir ../../../madwifi cd $startdir/src/wpa_supplicant-$pkgver/src # link to the ralink and madwifi dirs (again!!!!) lndir ../../_ralink lndir ../../madwifi cd $startdir/src/wpa_supplicant-$pkgver/wpa_supplicant # 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 and service files mkdir -p $startdir/pkg/etc/dbus-1/system.d/ cp $startdir/src/wpa_supplicant-$pkgver/wpa_supplicant/dbus-wpa_supplicant.conf $startdir/pkg/etc/dbus-1/system.d/ mkdir -p $startdir/pkg/usr/share/dbus-1/system-services cp $startdir/src/wpa_supplicant-$pkgver/wpa_supplicant/dbus-wpa_supplicant.service $startdir/pkg/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service # install conf file cp $startdir/src/wpa_supplicant-$pkgver/wpa_supplicant/wpa_supplicant.conf $startdir/pkg/etc/wpa_supplicant.conf # man pages mkdir -p $startdir/pkg/usr/man/man5 mkdir -p $startdir/pkg/usr/man/man8 cp -a $startdir/src/wpa_supplicant-$pkgver/wpa_supplicant/doc/docbook/*.5 $startdir/pkg/usr/man/man5 cp -a $startdir/src/wpa_supplicant-$pkgver/wpa_supplicant/doc/docbook/*.8 $startdir/pkg/usr/man/man8 chown -R root:root $startdir/pkg }