diff options
Diffstat (limited to 'testing/wpa_supplicant/APKBUILD')
-rw-r--r-- | testing/wpa_supplicant/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/wpa_supplicant/APKBUILD b/testing/wpa_supplicant/APKBUILD new file mode 100644 index 0000000000..72c388d312 --- /dev/null +++ b/testing/wpa_supplicant/APKBUILD @@ -0,0 +1,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" |