summaryrefslogtreecommitdiffstats
path: root/extra/wpa_supplicant/Pkgfile
blob: beb277929660c5bd8e2f8b0ed9620f25b7840a43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Description: Utilitaire permettant la négociation WPA pour les réseaux sans fils
# URL: http://hostap.epitest.fi/wpa_supplicant
# Maintainer: NuTyX core team 
# Packager: thierryn1 at hispeed dot ch
# Depends on: libnl
# Run on:

name=wpa_supplicant
version=0.6.9
release=1
madwifi_ver=0.9.4
source=(http://hostap.epitest.fi/releases/$name-$version.tar.gz \
	)

build() {
	cd $name-$version/$name
	cp defconfig ./.config
	echo "CONFIG_READLINE=y" >> .config
	sed -i 's@/usr/local@$(PREFIX)@g' Makefile
	make
	make PREFIX=/usr DESTDIR=$PKG install
	install -D -m644 wpa_supplicant.conf $PKG/etc/wpa_supplicant.conf
	install -d -m755 $PKG/usr/share/man/man{5,8}
	install -m644 doc/docbook/wpa_supplicant.conf.5 $PKG/usr/share/man/man5
	install -m644 doc/docbook/{wpa_background,wpa_cli,wpa_passphrase,wpa_supplicant}.8 \
	$PKG/usr/share/man/man8
}