aboutsummaryrefslogtreecommitdiffstats
path: root/main/wpa_supplicant/APKBUILD
blob: eccd7bd16842094488df343bfe8ebada6c82c45e (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wpa_supplicant
pkgver=2.5
pkgrel=3
pkgdesc="A utility providing key negotiation for WPA wireless networks"
url="https://w1.fi/wpa_supplicant/"
arch="all"
license="BSD"
subpackages="$pkgname-doc $pkgname-gui"
depends="dbus"
makedepends="openssl-dev dbus-dev libnl3-dev qt-dev pcsc-lite-dev"
source="http://w1.fi/releases/$pkgname-$pkgver.tar.gz
	wpa_supplicant.initd
	wpa_supplicant.confd
	0001-WPS-Reject-a-Credential-with-invalid-passphrase.patch
	0002-Reject-psk-parameter-set-with-invalid-passphrase-cha.patch
	0003-Remove-newlines-from-wpa_supplicant-config-network-o.patch
	0004-Reject-SET_CRED-commands-with-newline-characters-in-.patch
	0005-Reject-SET-commands-with-newline-characters-in-the-s.patch

	config
	wpa_cli.sh"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done

	# Copy our configuration file to the build directory
	cp "$srcdir"/config "$_builddir"/wpa_supplicant/.config || return 1
}

build() {
	cd "$_builddir"/wpa_supplicant
	make LIBDIR=/lib BINDIR=/sbin || return 1
	make wpa_gui-qt4 || return 1
	make eapol_test || return 1
}

package() {
	cd "$_builddir"/wpa_supplicant
	make DESTDIR="$pkgdir" LIBDIR=/lib BINDIR=/sbin install || return 1
	install -Dm644 wpa_supplicant.conf \
		"$pkgdir"/usr/share/doc/wpa_supplicant/examples/wpa_supplicant.conf || return 1
	install -Dm755 "$srcdir"/wpa_cli.sh \
		"$pkgdir"/etc/wpa_supplicant/wpa_cli.sh || return 1

	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 -Dm755 eapol_test "$pkgdir"/sbin/eapol_test || return 1

	# 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
	install -m644 dbus-wpa_supplicant.conf \
		"$pkgdir"/etc/dbus-1/system.d/wpa_supplicant.conf || return 1
	install -d "$pkgdir"/usr/share/dbus-1/system-services
	install fi.epitest.hostap.WPASupplicant.service \
		"$pkgdir"/usr/share/dbus-1/system-services || return 1
	install -d "$pkgdir"/var/run/wpa_supplicant
	install -Dm755 "$srcdir"/wpa_supplicant.initd \
		"$pkgdir"/etc/init.d/wpa_supplicant || return 1
	install -Dm644 "$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="96ff75c3a514f1f324560a2376f13110  wpa_supplicant-2.5.tar.gz
a8da41f58b8b4779d666ab7bd8233c18  wpa_supplicant.initd
bc117427f2c538439f3f1481a028ee06  wpa_supplicant.confd
09372e008bac7534dc807b3740e35fe6  0001-WPS-Reject-a-Credential-with-invalid-passphrase.patch
a6d17283765f2960795bded4617ec550  0002-Reject-psk-parameter-set-with-invalid-passphrase-cha.patch
80751055600b8531c6c29e363bec9655  0003-Remove-newlines-from-wpa_supplicant-config-network-o.patch
6bfadc32cb5d6135f9dce5247909be9a  0004-Reject-SET_CRED-commands-with-newline-characters-in-.patch
9aed57628300f6930227b7bb28fdfcff  0005-Reject-SET-commands-with-newline-characters-in-the-s.patch
03b47a633861ca72b15f8d9e23813914  config
707c26fbf3fa46a6410732efa7128eee  wpa_cli.sh"
sha256sums="cce55bae483b364eae55c35ba567c279be442ed8bab5b80a3c7fb0d057b9b316  wpa_supplicant-2.5.tar.gz
5d6ee43b7752d15013fb31298087e9d82caa2568064e59e6ed6230d7de403867  wpa_supplicant.initd
61ec59007f66ac5bacc0aa095d1f2ccbc977a687038e161a463d1727223d5a90  wpa_supplicant.confd
560bab824aa2a0bbeb549e2d3df49b23aed1b1dd12ca8685eae16cc24669b077  0001-WPS-Reject-a-Credential-with-invalid-passphrase.patch
a0af8c207a9224c110502670440bbce6f0a728fd9d954ae8f7450e97a8360bcb  0002-Reject-psk-parameter-set-with-invalid-passphrase-cha.patch
ce022bee65f42a4ae061f390fc52c2b5123985d83755bb03118f901a851eafbe  0003-Remove-newlines-from-wpa_supplicant-config-network-o.patch
de254d80186a944e2dda73abcdcc66de46b1d2612eb9a1fb1bf3e8d83adbd7f1  0004-Reject-SET_CRED-commands-with-newline-characters-in-.patch
3ede8fd0fa72d7b675d91693a138c3aa8adb1f43ac7f251abc43038b57d83865  0005-Reject-SET-commands-with-newline-characters-in-the-s.patch
a3e61687f15e608cf24cfcc56551864d23c6c6cc35fb5e77a8746d7666d1d5ed  config
dec1d357d8db5067bdba39a300760b06667a6d1b59f15fdb93063d61bf11b596  wpa_cli.sh"
sha512sums="e3ca36ed10b4dae8f663e98ad230c8c059c952316c21a6b0638ecb1b40a5ef1b9083138ab45207cb764a17e870b4bd0625dd6efdb65856cb4dca13ccc0559e81  wpa_supplicant-2.5.tar.gz
cfe9de2813d5ec778c7f5cb404c23aad371dee9922dea172358a8ea95ab4e5dd01a3b9fc1a452dd3c3c9a2f02e8b12ffe162b69767f95faa18480fb79499301b  wpa_supplicant.initd
29103161ec2b9631fca9e8d9a97fafd60ffac3fe78cf613b834395ddcaf8be1e253c22e060d7d9f9b974b2d7ce794caa932a2125e29f6494b75bce475f7b30e1  wpa_supplicant.confd
e9ae7a6504cd6376f0fb24f79a21bc3996732451b474fe186769e1b098e47fdaedb08167fd90de900eb961e148577f24f24770d94050e60daa3a3f8de36a92c8  0001-WPS-Reject-a-Credential-with-invalid-passphrase.patch
b18f43bd301d54d5549a1bcb425c02d6cb1f27a0ee28bd0d4bf101f2953d9461a7aaff8b67b0377a5618bb5377aa04bb80eac9a632f22a0ae0e754ca394433ac  0002-Reject-psk-parameter-set-with-invalid-passphrase-cha.patch
fba16df15bad5d5da9bd6e12afa8360e06749cfc711d7741a60a6d152c5b345cfb0f10a8b5f6252c57b01af783ea2d7024da3fc5357282e3524ebd9b592e857f  0003-Remove-newlines-from-wpa_supplicant-config-network-o.patch
02b618709800f1434f27660ff7f687a457500f4d266280e59619266558fc214651b0ab9fe206ce56d321477f7cacaff5bbbef1570fe7f7a5402536fa8024f4ff  0004-Reject-SET_CRED-commands-with-newline-characters-in-.patch
bb9d22f2d8f041c3d9705a3b15d07212f75315aa55a76b9094dae3008dd52b0afcc3c4fc939c3cab74860d26a6ac5915a39010ace5b8059f0aaee6e6a3698e2d  0005-Reject-SET-commands-with-newline-characters-in-the-s.patch
946281e10c35c818349189b7ac5c2d52170f9bd26d69bc30cc5c41b8a89fc8afbd88ba0e30030df87b68b0aba7d1e195e02d3da3c9e1712ff3c13370e04796b0  config
44d33cfe419cdb65cc14f2ac05aa9f8a1b9f2f432181e498071e41ef835662db1e4c5142adf4cfab2475e7b606696169936bd159d1d711f803322db93f242361  wpa_cli.sh"