diff options
Diffstat (limited to 'main/wpa_supplicant/APKBUILD')
-rw-r--r-- | main/wpa_supplicant/APKBUILD | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/main/wpa_supplicant/APKBUILD b/main/wpa_supplicant/APKBUILD index 4fb5a17afc..efe939afce 100644 --- a/main/wpa_supplicant/APKBUILD +++ b/main/wpa_supplicant/APKBUILD @@ -1,24 +1,25 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=wpa_supplicant pkgver=1.0 -pkgrel=1 +pkgrel=2 pkgdesc="A utility providing key negotiation for WPA wireless networks" url="http://hostap.epitest.fi/wpa_supplicant" arch="all" license="GPL" -subpackages="$pkgname-doc" +subpackages="$pkgname-doc $pkgname-gui" depends= -makedepends="openssl-dev dbus-dev libnl3-dev" +makedepends="openssl-dev dbus-dev libnl3-dev qt-dev" source="http://hostap.epitest.fi/releases/$pkgname-$pkgver.tar.gz wpa_supplicant.initd wpa_supplicant.confd libnl3-includes.patch + wpa_supplicant-1.0-wpagui-getopt.patch " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" - for i in *.patch; do + for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac @@ -104,6 +105,7 @@ build() { make LIBDIR=/lib BINDIR=/sbin || return 1 # comment out the network={ } stansas in config sed -i -e '/^network=/,/}/s/^/#/' wpa_supplicant.conf + make wpa_gui-qt4 } package() { @@ -118,6 +120,11 @@ package() { "$pkgdir"/usr/share/man/man8/$i.8 || return 1 done + # gui + install -d "$pkgdir"/usr/bin + install -m 0755 wpa_gui-qt4/wpa_gui "$pkgdir"/usr/bin/wpa_gui \ + || return 1 + # dbus cd dbus || return 1 install -d "$pkgdir"/etc/dbus-1/system.d @@ -132,7 +139,15 @@ package() { install -Dm755 "$srcdir"/wpa_supplicant.confd \ "$pkgdir"/etc/conf.d/wpa_supplicant || return 1 } + +gui() { + pkgdesc="Grafical User Interface for $pkgname" + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/wpa_gui "$subpkgdir"/usr/bin/ +} + md5sums="8650f6aa23646ef634402552d0669640 wpa_supplicant-1.0.tar.gz 55f853354f51ba947e4dd6ee2bb0d64a wpa_supplicant.initd bc117427f2c538439f3f1481a028ee06 wpa_supplicant.confd -473fb6b77909ec5a50b6f4d91370e86b libnl3-includes.patch" +473fb6b77909ec5a50b6f4d91370e86b libnl3-includes.patch +d4cbcddcd92a0fcab59363ffef59a9fb wpa_supplicant-1.0-wpagui-getopt.patch" |