New package: wpa_actiond-1.4

This commit is contained in:
Andrea Brancaleoni 2017-07-05 10:12:06 +02:00
parent 76d8c6881b
commit 50fbe33085
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,4 @@
#!/bin/sh
[ -r ./conf ] && . ./conf
exec 2>&1
exec wpa_actiond -a ${ACTION_FILE:=/usr/bin/wpa_log} -i ${WPA_INTERFACE:=wlan0} ${OPTS:=-n}

View file

@ -0,0 +1,15 @@
#!/bin/sh
set -e
if [ "$(id -u)" -ne 0 ]; then
echo "$0 runs as root"
exit 1
fi
LOG_FILE=${LOG_FILE:=/var/log/wpa.log}
if [ ! -f ${LOG_FILE} ]; then
echo "interface,ssid,id_str,event,epoch" > ${LOG_FILE}
fi
echo "$1,$2,$3,$4,$(date +%s)" >> ${LOG_FILE}

View file

@ -0,0 +1,20 @@
# Template file for 'wpa_actiond'
pkgname=wpa_actiond
version=1.4
revision=1
build_style=gnu-makefile
hostmakedepends=""
makedepends=""
depends="wpa_supplicant"
short_desc="Daemon that connects to wpa_supplicant and handles connect and disconnect events"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2"
homepage="http://projects.archlinux.org/wpa_actiond.git/"
distfiles="https://sources.archlinux.org/other/wpa_actiond/${pkgname}-${version}.tar.xz"
checksum=e0e65e7c52a32796a0ff855ab18aa0b237d6b9afc87d4008c0380735abcb1a54
do_install() {
vbin wpa_actiond
vbin ${FILESDIR}/wpa_log
vsv wpa_actiond
}