aboutsummaryrefslogtreecommitdiffstats
path: root/main/hostapd
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-14 11:44:57 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-07 19:10:57 +0000
commit47a147e1da5d5640d38900ece14708c44e8e1cf4 (patch)
tree4e2b2ba02c77be55470ad01f63cb170c7ed63c33 /main/hostapd
parent43518bfc61f21fbdff64d3b20896a741e39f4c3e (diff)
downloadaports-47a147e1da5d5640d38900ece14708c44e8e1cf4.tar.bz2
aports-47a147e1da5d5640d38900ece14708c44e8e1cf4.tar.xz
main/hostapd: modernze abuild
Diffstat (limited to 'main/hostapd')
-rw-r--r--main/hostapd/APKBUILD27
1 files changed, 5 insertions, 22 deletions
diff --git a/main/hostapd/APKBUILD b/main/hostapd/APKBUILD
index dc7d74b949..92779360d7 100644
--- a/main/hostapd/APKBUILD
+++ b/main/hostapd/APKBUILD
@@ -6,23 +6,18 @@ pkgdesc="daemon for wireless software access points"
url="http://hostap.epitest.fi/hostapd/"
arch="all"
license="custom"
-depends=
makedepends="libressl-dev libnl3-dev linux-headers"
-install=
subpackages="$pkgname-doc"
patches="
CVE-2012-4445.patch
libressl-compat.patch
"
-
-
source="http://hostap.epitest.fi/releases/$pkgname-$pkgver.tar.gz
$patches
$pkgname.initd
$pkgname.confd"
-
builddir="$srcdir"/$pkgname-$pkgver/hostapd
prepare() {
@@ -31,7 +26,7 @@ prepare() {
cd "$builddir"/..
for i in $patches; do
msg $i
- patch -p1 -i "$srcdir"/$i || return 1
+ patch -p1 -i "$srcdir"/$i
done
cd "$builddir"
@@ -58,9 +53,9 @@ prepare() {
build() {
cd "$builddir"
- make || return 1
+ make
msg "nt_password_hash"
- make nt_password_hash || return 1
+ make nt_password_hash
}
package() {
@@ -68,7 +63,7 @@ package() {
install -d "$pkgdir"/etc/hostapd
install hostapd.conf hostapd.accept hostapd.deny hostapd.eap_user \
hostapd.radius_clients hostapd.sim_db hostapd.wpa_psk \
- "$pkgdir"/etc/hostapd/ || return 1
+ "$pkgdir"/etc/hostapd/
install -Dm755 hostapd "$pkgdir"/usr/sbin/hostapd \
&& install -Dm755 hostapd_cli "$pkgdir"/usr/bin/hostapd_cli \
@@ -81,20 +76,8 @@ package() {
&& install -Dm644 hostapd.8 \
"$pkgdir"/usr/share/man/man8/hostapd.8 \
&& install -Dm644 hostapd_cli.1 \
- "$pkgdir"/usr/share/man/man1/hostapd_cli \
- || return 1
+ "$pkgdir"/usr/share/man/man1/hostapd_cli
}
-
-md5sums="eaa56dce9bd8f1d195eb62596eab34c7 hostapd-2.6.tar.gz
-0d01d4641e0c33f79c1f4372613655bf CVE-2012-4445.patch
-a4d1949ad55c3cb6c6f774a95ed6a3c8 libressl-compat.patch
-29b561d4ee34dc22a8a0ae0bf1db5c45 hostapd.initd
-c91382209042defa04e79d0ae841a29e hostapd.confd"
-sha256sums="01526b90c1d23bec4b0f052039cc4456c2fd19347b4d830d1d58a0a6aea7117d hostapd-2.6.tar.gz
-06dc7df2159fb0604191f66d35164caa5927963eebe77b5f2c389bd7590e2a49 CVE-2012-4445.patch
-663bf347be3d95650be72ac1b465078bccf77cac879ddff05d3989448229c120 libressl-compat.patch
-cae79127d088c047c1460d5b63eb67da1a830eb725a8c95e50070e516ad02800 hostapd.initd
-6c14e88b14bb9a93d2dca69239d829f435e93180e621319aeed0f3987290dfba hostapd.confd"
sha512sums="e60baaa092786250b8de9935f5417c7626f5d749210cce9f83d776b65c19fc92a8141f41923389f05c16295d482a15ae8d8b744f4667425040c99e3c2f5b1bda hostapd-2.6.tar.gz
619acce84516dead1e03e5da71657ea4c4b6f3ca8271574409773aeb316cbddc88095b50320804f457f001f4f3fe83053e660c008d8409f59bb4d3bfe058b601 CVE-2012-4445.patch
e6428a7fde025550e8d8252a04dd3a9009f95b6cab064c1f76bf4e5c321bc6acba9a21511e25f996fe98f6c9f1c057bc5af7aa9e6dd19e0bbc537b2be67d494f libressl-compat.patch