hostapd: added runit service.

This commit is contained in:
Juan RP 2014-10-27 18:19:27 +01:00
parent 32ee9349f2
commit 1c72b541e1
2 changed files with 12 additions and 4 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec hostapd -d /etc/hostapd/hostapd.conf 2>&1

View File

@ -1,8 +1,9 @@
# Template file for 'hostapd'
pkgname=hostapd
version=2.3
revision=1
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"
@ -21,7 +22,11 @@ do_build() {
make ${makejobs}
}
do_install() {
vinstall ${FILESDIR}/hostapd.service 644 usr/lib/systemd/system
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
@ -30,9 +35,10 @@ do_install() {
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
vinstall ${wrksrc}/COPYING 644 usr/share/licenses/$pkgname LICENSE
vlicense ${wrksrc}/COPYING
}