diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-01-23 19:11:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-01-23 19:11:30 +0000 |
commit | 7828a7218a66c7e4f30dd53f0be34324ead0ee47 (patch) | |
tree | a74523e41174ca13549f21d5f2fe8219869b964f /main/wpa_supplicant | |
parent | 597fecfaac242993694e6ef34c15fe4f29471db7 (diff) | |
download | aports-7828a7218a66c7e4f30dd53f0be34324ead0ee47.tar.bz2 aports-7828a7218a66c7e4f30dd53f0be34324ead0ee47.tar.xz |
main/wpa_supplicant: build qt gui
Diffstat (limited to 'main/wpa_supplicant')
-rw-r--r-- | main/wpa_supplicant/APKBUILD | 25 | ||||
-rw-r--r-- | main/wpa_supplicant/wpa_supplicant-1.0-wpagui-getopt.patch | 13 |
2 files changed, 33 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" diff --git a/main/wpa_supplicant/wpa_supplicant-1.0-wpagui-getopt.patch b/main/wpa_supplicant/wpa_supplicant-1.0-wpagui-getopt.patch new file mode 100644 index 0000000000..30dd14f22e --- /dev/null +++ b/main/wpa_supplicant/wpa_supplicant-1.0-wpagui-getopt.patch @@ -0,0 +1,13 @@ +--- ./wpa_supplicant/wpa_gui-qt4/wpagui.cpp.orig 2013-01-23 19:04:49.020020133 +0000 ++++ ./wpa_supplicant/wpa_gui-qt4/wpagui.cpp 2013-01-23 19:05:26.210331644 +0000 +@@ -12,10 +12,8 @@ + * See README and COPYING for more details. + */ + +-#ifdef __MINGW32__ + /* Need to get getopt() */ + #include <unistd.h> +-#endif + + #ifdef CONFIG_NATIVE_WINDOWS + #include <windows.h> |