void-packages/srcpkgs/hostapd/template
2014-10-27 18:19:27 +01:00

45 lines
1.2 KiB
Plaintext

# Template file for 'hostapd'
pkgname=hostapd
version=2.3
revision=2
build_wrksrc=${pkgname}
build_options="systemd"
hostmakedepends="pkg-config"
makedepends="libnl3-devel libressl-devel"
short_desc="IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="http://w1.fi/hostapd/"
distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
checksum=c94c2b76876fad4c80a1063a06f958a2189ba5003475016fa7658a1ca49bb4df
do_configure() {
cp -f ${FILESDIR}/config .config
sed -i 's#/etc/hostapd#/etc/hostapd/hostapd#' hostapd.conf
}
do_build() {
export CFLAGS+=" $(pkg-config --cflags libnl-3.0)"
make ${makejobs}
}
do_install() {
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/hostapd.service 644 usr/lib/systemd/system
fi
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
vinstall hostapd.8 644 usr/share/man/man8
vinstall hostapd_cli.1 644 usr/share/man/man1
vlicense ${wrksrc}/COPYING
}