void-packages/srcpkgs/hostapd/template

39 lines
1.2 KiB
Plaintext
Raw Normal View History

2013-01-14 10:59:10 +01:00
# Template file for 'hostapd'
pkgname=hostapd
2014-06-06 13:56:55 +02:00
version=2.2
2014-07-14 12:50:42 +02:00
revision=3
2013-01-14 10:59:10 +01:00
build_wrksrc=${pkgname}
2014-02-14 10:45:23 +01:00
hostmakedepends="pkg-config"
2014-07-14 12:50:42 +02:00
makedepends="libnl3-devel libressl-devel"
2013-01-14 10:59:10 +01:00
short_desc="IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
2013-01-14 10:59:10 +01:00
homepage="http://w1.fi/hostapd/"
distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
2014-06-06 13:56:55 +02:00
checksum=f15b6bcb434378860ea5b88dffed7f54d8cb71fff2146de0f006977a5e25a882
2013-01-14 10:59:10 +01:00
2014-06-06 13:56:55 +02:00
do_configure() {
2013-01-14 10:59:10 +01:00
cp -f ${FILESDIR}/config .config
sed -i 's#/etc/hostapd#/etc/hostapd/hostapd#' hostapd.conf
2014-06-06 13:56:55 +02:00
}
do_build() {
export CFLAGS+=" $(pkg-config --cflags libnl-3.0)"
2013-01-14 10:59:10 +01:00
make ${makejobs}
}
do_install() {
vinstall ${FILESDIR}/hostapd.service 644 usr/lib/systemd/system
vmkdir usr/bin
install -t ${DESTDIR}/usr/bin hostapd hostapd_cli
2014-06-06 13:56:55 +02:00
vmkdir usr/share/examples/hostapd
install -m644 -t ${DESTDIR}/usr/share/examples/hostapd \
2013-01-14 10:59:10 +01:00
hostapd.{accept,conf,deny,eap_user,radius_clients,sim_db,vlan,wpa_psk} \
wired.conf hlr_auc_gw.milenage_db
vinstall hostapd.8 644 usr/share/man/man8
vinstall hostapd_cli.1 644 usr/share/man/man1
2014-06-06 14:06:53 +02:00
vinstall ${wrksrc}/COPYING 644 usr/share/licenses/$pkgname LICENSE
2013-01-14 10:59:10 +01:00
}