aboutsummaryrefslogtreecommitdiffstats
path: root/main/hostapd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-30 14:24:56 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-30 14:25:55 +0200
commit12d8fbaf1947587969d5e88154a0bdce4808320c (patch)
treeeeae76087000ea64f22b3b2a78aad042c32aa840 /main/hostapd
parentdb85e2d3773a748e6b74090d3e482e9001949ce0 (diff)
downloadaports-12d8fbaf1947587969d5e88154a0bdce4808320c.tar.bz2
aports-12d8fbaf1947587969d5e88154a0bdce4808320c.tar.xz
main/hostapd: build fix
set CC to gcc if not set already ref #1040
Diffstat (limited to 'main/hostapd')
-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