logrotate PKGBUILD updated
[Archlinux-Stable.git] / support / wpa_supplicant / PKGBUILD
blob334c387b8e1f8e7d2fae47e39fbb0beac8763845
1 # Contributor: iztok pizorn <pizorn@gmail.com>
2 # Contributor: William Rea <sillywilly@gmail.com>
3 pkgname=wpa_supplicant
4 pkgver=0.5.9
5 _madwifi_ver=0.9.3.3
6 pkgrel=1
7 pkgdesc="A utility providing key negotiation for WPA wireless networks"
8 arch=('i686' 'x86_64')
9 depends=('openssl')
10 license=('GPL')
11 groups=('base')
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 \
15         config \
16         http://downloads.sourceforge.net/sourceforge/madwifi/madwifi-$_madwifi_ver.tar.gz)
17 install='wpa_supplicant.install'
18 md5sums=('390e46066fa96ef9ba8e2dd63fca5aa0'
19          '2f8065a16c9ecd4d94a399aa0105f352'
20          '20349fdcaf38b8ae3296ef09146e5851')
22 build() {
23   cd ${startdir}/src/
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
29   make || return 1
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