void-packages/srcpkgs/hostapd/template
2016-03-30 02:03:54 -04:00

39 lines
1.1 KiB
Bash

# Template file for 'hostapd'
pkgname=hostapd
version=2.5
revision=2
build_wrksrc=${pkgname}
conf_files="/etc/hostapd/hostapd.conf"
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@voidlinux.eu>"
license="BSD"
homepage="http://w1.fi/hostapd/"
distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
checksum=8e272d954dc0d7026c264b79b15389ec2b2c555b32970de39f506b9f463ec74a
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() {
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
}