Commit 7828a721 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/wpa_supplicant: build qt gui

parent 597fecfa
# 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"
--- ./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>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment