ndhc: generalized ndhc service

This commit is contained in:
Andrea Brancaleoni 2015-05-27 23:26:22 +02:00 committed by Christian Neukirchen
parent e3352b7246
commit d42edf208d
4 changed files with 5 additions and 4 deletions

View file

@ -1,2 +0,0 @@
#!/bin/sh
exec ndhc -i eth0 -R /etc/resolv.conf -u ndhc -U ndhc -D ndhc -C /var/lib/ndhc/jail -s /var/lib/ndhc/state 2>&1

3
srcpkgs/ndhc/files/ndhc/run Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec ndhc -R /etc/resolv.conf -u ndhc -U ndhc -D ndhc -C /var/lib/ndhc/jail -s /var/lib/ndhc/state ${OPTS:=-i eth0} 2>&1

View file

@ -1,7 +1,7 @@
# Template file for 'ndhc'
pkgname=ndhc
version=20150527
revision=1
revision=2
build_style=cmake
make_dirs="/var/lib/ndhc/state 0755 root root
/var/lib/ndhc/jail/dev 0755 root root"
@ -36,6 +36,6 @@ do_fetch() {
do_install() {
vbin build/src/ndhc
vman src/ndhc.8
vsv ndhc-eth0
vsv ndhc
vlicense LICENSE
}