hostapd: added runit service.
This commit is contained in:
parent
32ee9349f2
commit
1c72b541e1
2
srcpkgs/hostapd/files/hostapd/run
Normal file
2
srcpkgs/hostapd/files/hostapd/run
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec hostapd -d /etc/hostapd/hostapd.conf 2>&1
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user