aboutsummaryrefslogtreecommitdiffstats
path: root/main/hostapd/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/hostapd/APKBUILD')
-rw-r--r--main/hostapd/APKBUILD33
1 files changed, 18 insertions, 15 deletions
diff --git a/main/hostapd/APKBUILD b/main/hostapd/APKBUILD
index 0f2f37e772..7b25f79919 100644
--- a/main/hostapd/APKBUILD
+++ b/main/hostapd/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hostapd
pkgver=1.0
-pkgrel=0
+pkgrel=1
pkgdesc="daemon for wireless software access points"
url="http://hostap.epitest.fi/hostapd/"
arch="all"
@@ -25,7 +25,7 @@ prepare() {
hostapd.conf
# toolchain setup
- echo "CC = $CC" > $conf
+ echo "CC = ${CC:-gcc}" > $conf
# EAP authentication methods
echo "CONFIG_EAP=y" >> $conf
@@ -91,19 +91,22 @@ 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/
-
- install -Dm755 hostapd "$pkgdir"/usr/sbin/hostapd
- install -Dm755 hostapd_cli "$pkgdir"/usr/bin/hostapd_cli
-
- install -Dm755 nt_password_hash "$pkgdir"/usr/bin/nt_password_hash
- install -Dm755 hlr_auc_gw "$pkgdir"/usr/bin/hlr_auc_gw
-
- install -Dm755 "$srcdir"/hostapd.initd "$pkgdir"/etc/init.d/hostapd
- install -Dm644 "$srcdir"/hostapd.confd "$pkgdir"/etc/conf.d/hostapd
-
- install -Dm644 hostapd.8 "$pkgdir"/usr/share/man/man8/hostapd.8
- install -Dm644 hostapd_cli.1 "$pkgdir"/usr/share/man/man1/hostapd_cli
+ "$pkgdir"/etc/hostapd/ || return 1
+
+ install -Dm755 hostapd "$pkgdir"/usr/sbin/hostapd \
+ && install -Dm755 hostapd_cli "$pkgdir"/usr/bin/hostapd_cli \
+ && install -Dm755 nt_password_hash \
+ "$pkgdir"/usr/bin/nt_password_hash \
+ && install -Dm755 hlr_auc_gw "$pkgdir"/usr/bin/hlr_auc_gw \
+ && install -Dm755 "$srcdir"/hostapd.initd \
+ "$pkgdir"/etc/init.d/hostapd \
+ && install -Dm644 "$srcdir"/hostapd.confd \
+ "$pkgdir"/etc/conf.d/hostapd \
+ && 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
}
md5sums="236247a7bbd4f60d5fa3e99849d1ffc9 hostapd-1.0.tar.gz