1 # Contributor: iztok pizorn <pizorn@gmail.com>
2 # Contributor: William Rea <sillywilly@gmail.com>
7 pkgdesc="A utility providing key negotiation for WPA wireless networks"
12 backup=('etc/wpa_supplicant.conf')
13 url="http://hostap.epitest.fi/wpa_supplicant"
14 source=(http://hostap.epitest.fi/releases/wpa_supplicant-$pkgver.tar.gz \
16 http://downloads.sourceforge.net/sourceforge/madwifi/madwifi-$_madwifi_ver.tar.gz)
17 install='wpa_supplicant.install'
18 md5sums=('390e46066fa96ef9ba8e2dd63fca5aa0'
19 '2f8065a16c9ecd4d94a399aa0105f352'
20 '20349fdcaf38b8ae3296ef09146e5851')
24 mv madwifi-0.9.3.3 madwifi
25 cd $startdir/src/$pkgname-$pkgver
26 cp ../config ./.config
27 sed -i 's@/usr/local@$(PREFIX)@g' Makefile
28 sed -i 's@dynamic_eap_methods@@g' Makefile
30 make PREFIX=/usr DESTDIR=$startdir/pkg install || return 1
31 install -D -m644 wpa_supplicant.conf $startdir/pkg/etc/wpa_supplicant.conf || return 1
32 install -d -m755 $startdir/pkg/usr/man/man{5,8} || return 1
33 install -m644 doc/docbook/wpa_supplicant.conf.5 $startdir/pkg/usr/man/man5 || return 1
34 install -m644 doc/docbook/{wpa_background,wpa_cli,wpa_passphrase,wpa_supplicant}.8 $startdir/pkg/usr/man/man8 || return 1