Commit 60ea9aa0 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/hostapd: build fix

set CC to gcc if not set already

ref #1040
parent dbf58bdf
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hostapd
pkgver=0.7.3
pkgrel=2
pkgrel=3
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="91a7c8d0f090b7104152d3455a84c112 hostapd-0.7.3.tar.gz
......
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