2013-01-14 10:59:10 +01:00
|
|
|
# Template file for 'hostapd'
|
|
|
|
pkgname=hostapd
|
2015-03-16 07:57:10 +01:00
|
|
|
version=2.4
|
2015-07-19 11:04:22 +02:00
|
|
|
revision=4
|
2013-01-14 10:59:10 +01:00
|
|
|
build_wrksrc=${pkgname}
|
2015-07-03 09:56:35 +02:00
|
|
|
conf_files="/etc/hostapd/hostapd.conf"
|
2014-02-14 10:45:23 +01:00
|
|
|
hostmakedepends="pkg-config"
|
2015-03-27 10:50:40 +01: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"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-06-06 14:05:57 +02:00
|
|
|
license="BSD"
|
2013-01-14 10:59:10 +01:00
|
|
|
homepage="http://w1.fi/hostapd/"
|
|
|
|
distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
|
2015-03-16 07:57:10 +01:00
|
|
|
checksum=6fe0eb6bd1c9cbd24952ece8586b6f7bd14ab358edfda99794e79b9b9dbd657f
|
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() {
|
2014-10-27 18:19:27 +01:00
|
|
|
vsv hostapd
|
2013-01-14 10:59:10 +01:00
|
|
|
|
|
|
|
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
|
2014-10-27 18:19:27 +01:00
|
|
|
|
|
|
|
vinstall hostapd.conf 644 etc/hostapd
|
2015-07-03 10:24:46 +02:00
|
|
|
vman hostapd.8
|
|
|
|
vman hostapd_cli.1
|
2014-10-27 18:19:27 +01:00
|
|
|
vlicense ${wrksrc}/COPYING
|
2013-01-14 10:59:10 +01:00
|
|
|
}
|