Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: puppetd.sh,v 1.3 2013/04/10 21:10:55 tonnerre Exp $
#
# PROVIDE: puppetd
# REQUIRE: DAEMON
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable puppetd:
#
# puppetd="YES"
# puppetd_confdir="@PKG_SYSCONFDIR@"
# puppetd_pid="/var/run/${name}.pid"
# puppetd_flags="agent --confdir $puppetd_confdir --rundir /var/run"
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="puppetd"
rcvar=$name
command="@PREFIX@/bin/puppet"
command_interpreter="@RUBY@"
: ${puppetd_confdir="@PKG_SYSCONFDIR@"}
: ${puppetd_pid="/var/run/${name}.pid"}
: ${puppetd_flags="agent --confdir $puppetd_confdir --rundir /var/run"}
pidfile="$puppetd_pid"
if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
load_rc_config $name
elif [ -f /etc/rc.conf ]; then
. /etc/rc.conf
fi
run_rc_command "$1"
+51
View File
@@ -0,0 +1,51 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: puppetmasterd.sh,v 1.3 2013/04/10 21:10:55 tonnerre Exp $
#
# PROVIDE: puppetmasterd
# REQUIRE: DAEMON
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable puppetmasterd:
#
# puppetmasterd="YES"
# puppetmasterd_confdir: Set to @PKG_SYSCONFDIR@ by default
# puppetmasterd_flags: Set to master --confdir $puppetmasterd_confdir --rundir /var/run" by default
#
if [ -f /etc/rc.subr ]; then
$_rc_subr_loaded . /etc/rc.subr
fi
name="puppetmasterd"
rcvar=$name
command="@PREFIX@/bin/puppet"
command_interpreter="@RUBY@"
start_precmd="puppetmasterd_checkconfig"
restart_precmd="puppetmasterd_checkconfig"
: ${puppetmasterd_confdir="@PKG_SYSCONFDIR@"}
: ${puppetmasterd_pid="/var/run/${name}.pid"}
: ${puppetmasterd_flags="master --confdir $puppetmasterd_confdir --rundir /var/run"}
pidfile="$puppetmasterd_pid"
puppetmasterd_checkconfig() {
echo -n "Performing sanity check of ${name} configuration: "
${command} --parseonly ${puppetmasterd_flags} >/dev/null 2>&1
rv=$?
if [ $rv != 0 ]; then
echo "FAILED, ${name} exited with status ${rv}"
${command} --parseonly ${puppetmasterd_flags}
return 1
else
echo "OK"
fi
}
if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
load_rc_config "$name"
elif [ -f /etc/rc.conf ]; then
. /etc/rc.conf
fi
run_rc_command "$1"