Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: unbound.sh,v 1.2 2009/11/24 01:08:06 roy Exp $
# $NetBSD: unbound.sh,v 1.4 2015/03/19 22:37:06 pettai Exp $
#
# PROVIDE: unbound
# REQUIRE: DAEMON
@@ -12,8 +12,26 @@ name="unbound"
rcvar=${name}
command=@PREFIX@/sbin/${name}
pidfile=/var/run/${name}.pid
pidfile=/var/run/${name}/${name}.pid
required_files="@PKG_SYSCONFDIR@/unbound.conf"
extra_commands="reload"
start_precmd="unbound_precmd"
load_rc_config ${name}
run_rc_command "$1"
unbound_precmd()
{
if [ ! -d @VARBASE@/run/unbound ]; then
@MKDIR@ @VARBASE@/run/unbound
@CHMOD@ 0750 @VARBASE@/run/unbound
@CHOWN@ @UNBOUND_USER@:@UNBOUND_GROUP@ @VARBASE@/run/unbound
fi
}
unbound_flags=${unbound_flags:-""}
if [ -f /etc/rc.subr ]; then
load_rc_config ${name}
run_rc_command "$1"
else
echo -n " ${name}"
${command} ${nsd_flags}
fi