pkgsrc/security/isakmpd/files/isakmpd.sh
jmmv 4ab51057d8 Convert to the bsd.pkg.install.mk framework by honouring PKG_SYSCONFDIR and
using RCD_SCRIPTS to handle generation and installation of the rc.d script.
Convert the rc.d script to the rc.subr framework too.
Bump PKGREVISION to 1.
2003-07-31 10:38:32 +00:00

25 lines
477 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: isakmpd.sh,v 1.2 2003/07/31 10:38:33 jmmv Exp $
#
# PROVIDE: isakmpd
# REQUIRE: DAEMON NETWORK
#
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="isakmpd"
rcvar="${name}"
command="@PREFIX@/sbin/isakmpd"
pidfile="/var/run/isakmpd.pid"
required_files="@PKG_SYSCONFDIR@/isakmpd.conf"
if [ -f /etc/rc.subr ]; then
load_rc_config "${name}"
run_rc_command "$1"
else
printf " ${name}"
eval ${command} ${isakmpd_flags} ${command_args}
fi