Merge pull request #1201 from bougyman/feature/wpa_supplicant_service

wpa_supplicant: add service directory
This commit is contained in:
bougyman 2015-03-26 15:55:08 -05:00
commit a9c25d112b
4 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,3 @@
WPA_INTERFACE=wlan0
# Log to syslog by default
OPTS="-s"

View file

@ -0,0 +1,4 @@
#!/bin/sh
install -d -m0750 -o root -g wheel /var/log/wpa_supplicant
echo "Logging to /var/log/wpa_supplicant/current"
exec chpst -u root:daemon svlogd -t /var/log/wpa_supplicant

View file

@ -0,0 +1,5 @@
#!/bin/sh
[ -r ./conf ] && . ./conf
: ${WPA_INTERFACE:=wlan0}
exec 2>&1
exec wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i ${WPA_INTERFACE} ${OPTS}

View file

@ -1,7 +1,7 @@
# Template file for 'wpa_supplicant'
pkgname=wpa_supplicant
version=2.4
revision=1
revision=2
build_wrksrc=$pkgname
short_desc="WPA/WPA2/IEEE 802.1X Supplicant"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -13,7 +13,7 @@ checksum=058dc832c096139a059e6df814080f50251a8d313c21b13364c54a1e70109122
build_pie=yes
hostmakedepends="pkg-config"
makedepends="libnl3-devel libressl-devel>=2.1.4 dbus-devel readline-devel>=6.3"
conf_files="/etc/${pkgname}/${pkgname}.conf"
conf_files="/etc/sv/wpa_supplicant/conf /etc/sv/wpa_supplicant/log/run /etc/${pkgname}/${pkgname}.conf"
build_options="systemd"
pre_build() {
@ -54,4 +54,5 @@ do_install() {
fi
vlicense README
vsv wpa_supplicant
}