alfred: move configuration to /etc/sv/.../conf
This commit is contained in:
parent
05dbd9e322
commit
33edec1e7e
6 changed files with 8 additions and 23 deletions
1
srcpkgs/alfred/files/alfred/conf
Normal file
1
srcpkgs/alfred/files/alfred/conf
Normal file
|
@ -0,0 +1 @@
|
|||
OPTS="-i bat0 -b bat0"
|
|
@ -1,10 +1,3 @@
|
|||
#!/bin/sh
|
||||
. /etc/conf.d/alfred
|
||||
|
||||
if [ "$MASTER" ]; then
|
||||
master=-m
|
||||
else
|
||||
master=
|
||||
fi
|
||||
|
||||
exec alfred -i "$IF_LIST" -b "$BATMAN_IF" $master
|
||||
[ -r conf ] && . ./conf
|
||||
exec alfred ${OPTS:=-i "bat0" -b "bat0"}
|
||||
|
|
1
srcpkgs/alfred/files/batadv-vis/conf
Normal file
1
srcpkgs/alfred/files/batadv-vis/conf
Normal file
|
@ -0,0 +1 @@
|
|||
OPTS="-si bat0"
|
|
@ -1,4 +1,3 @@
|
|||
#!/bin/sh
|
||||
. /etc/conf.d/alfred
|
||||
|
||||
exec batadv-vis -si "$BATMAN_IF"
|
||||
[ -r conf ] && . ./conf
|
||||
exec batadv-vis ${OPTS:=-si bat0}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
# Run alfred in master mode
|
||||
#MASTER=yes
|
||||
|
||||
# Comma separated list of interfaces for alfred
|
||||
IF_LIST="bat0"
|
||||
|
||||
# Batman interface
|
||||
BATMAN_IF="bat0"
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'alfred'
|
||||
pkgname=alfred
|
||||
version=2014.4.0
|
||||
revision=5
|
||||
revision=6
|
||||
build_style=gnu-makefile
|
||||
short_desc="Daemon for distributing arbitrary information over a batman mesh"
|
||||
maintainer="Enno Boland <eb@s01.de>"
|
||||
|
@ -11,11 +11,10 @@ distfiles="http://downloads.open-mesh.org/batman/stable/sources/alfred/alfred-${
|
|||
checksum=99e6c64e7069b0b7cb861369d5c198bfc7d74d41509b8edd8a17ba78e7c8d034
|
||||
make_build_args="CONFIG_ALFRED_GPSD=n"
|
||||
make_install_args="CONFIG_ALFRED_GPSD=n"
|
||||
conf_files="/etc/conf.d/alfred"
|
||||
conf_files="/etc/sv/alfred/conf /etc/sv/batadv-vis/conf"
|
||||
depends="batman-adv"
|
||||
|
||||
post_install() {
|
||||
vsv alfred
|
||||
vsv batadv-vis
|
||||
vinstall $FILESDIR/conf_alfred 644 etc/conf.d alfred
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue