summaryrefslogtreecommitdiffstats
path: root/testing/wpa_supplicant/APKBUILD
blob: 72c388d312ebecf34170eb56995e140b95ec655c (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wpa_supplicant
pkgver=0.5.11
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="openssl uclibc"
makedepends="openssl-dev"
source="http://hostap.epitest.fi/releases/$pkgname-$pkgver.tar.gz
	config
	"

build () 
{ 
	cd "$srcdir"/$pkgname-$pkgver
	cp ../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="ad320af63f735531878e592f1ffd9b06  wpa_supplicant-0.5.11.tar.gz
3db583801e91fb409a5994a08ea31838  config"