45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Template file for 'hostapd'
|
|
pkgname=hostapd
|
|
version=2.11
|
|
revision=1
|
|
build_wrksrc="$pkgname"
|
|
conf_files="/etc/hostapd/hostapd.conf"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libnl3-devel openssl-devel"
|
|
short_desc="IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://w1.fi/hostapd/"
|
|
distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
|
|
checksum=2b3facb632fd4f65e32f4bf82a76b4b72c501f995a4f62e330219fe7aed1747a
|
|
|
|
do_configure() {
|
|
sed -i 's#/etc/hostapd#/etc/hostapd/hostapd#' hostapd.conf
|
|
for c in RADIUS_SERVER DRIVER_WIRED DRIVER_NONE IEEE80211R \
|
|
IEEE80211AC IEEE80211AX FULL_DYNAMIC_VLAN ACS WEP SAE \
|
|
ELOOP_EPOLL FST MBO WPA_CLI_EDIT AIRTIME_POLICY ; do
|
|
vsed -e "/^#CONFIG_${c}/s/^#//" -i defconfig
|
|
done
|
|
cp defconfig .config
|
|
}
|
|
do_build() {
|
|
export CFLAGS+=" $(pkg-config --cflags libnl-3.0)"
|
|
make ${makejobs}
|
|
}
|
|
do_install() {
|
|
vsv hostapd
|
|
|
|
vmkdir usr/bin
|
|
install -t ${DESTDIR}/usr/bin hostapd hostapd_cli
|
|
|
|
vmkdir usr/share/examples/hostapd
|
|
install -m644 -t ${DESTDIR}/usr/share/examples/hostapd \
|
|
hostapd.{accept,conf,deny,eap_user,radius_clients,sim_db,vlan,wpa_psk} \
|
|
wired.conf hlr_auc_gw.milenage_db
|
|
|
|
vinstall hostapd.conf 644 etc/hostapd
|
|
vman hostapd.8
|
|
vman hostapd_cli.1
|
|
vlicense ${wrksrc}/COPYING
|
|
}
|