summaryrefslogtreecommitdiffstats
path: root/testing/wpa_supplicant/APKBUILD
blob: 13ae34b8f105f518ae5a31e3ba7d66dafe2e56f1 (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
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wpa_supplicant
pkgver=0.6.9
pkgrel=0
pkgdesc="A utility providing key negotiation for WPA wireless networks"
url="http://hostap.epitest.fi/wpa_supplicant"
license="GPL"
subpackages="$pkgname-doc"
depends=
makedepends="openssl-dev"
source="http://hostap.epitest.fi/releases/$pkgname-$pkgver.tar.gz
	config
	"

build () 
{ 
	cd "$srcdir"/$pkgname-$pkgver/$pkgname
	cp defconfig .config
#	cp "$srcdir"/config ./.config
	sed -i 's@/usr/local@$(PREFIX)@g' Makefile
	sed -i 's@dynamic_eap_methods@@g' Makefile
	make || return 1
	make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
	install -Dm644 wpa_supplicant.conf "$pkgdir"/etc/wpa_supplicant.conf
	install -Dm644 doc/docbook/wpa_supplicant.conf.5 \
		"$pkgdir"/usr/share/man/man5/wpa_supplicant.conf.5 || return 1
	
	for i in wpa_background wpa_cli wpa_passphrase wpa_supplicant; do
		install -Dm644 doc/docbook/$i.8 \
			"$pkgdir"/usr/share/man/man8/$i.8 || return 1
	done
#	install -m755 -d ""$pkgdir"/usr/share/dbus-1/system-services"
#	install -m644 dbus-wpa_supplicant.service ""$pkgdir"/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service" || return 1
#	sed -e 's/sbin/usr\/sbin/' -i ""$pkgdir"/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service" || return 1
#	install -m755 -d ""$pkgdir"/etc/dbus-1/system.d"
#	install -m644 dbus-wpa_supplicant.conf ""$pkgdir"/etc/dbus-1/system.d/fi.epitest.hostap.WPASupplicant.conf" || return 1
}
md5sums="0efb8fcedf0a8acf6f423dfdb0658fdd  wpa_supplicant-0.6.9.tar.gz
3db583801e91fb409a5994a08ea31838  config"