freebsd-ports/security/fwknop/files/fwknopd.in
Raphael Kubo da Costa 26801e4cf7 Update to 2.0.3.
This new version includes a migration from Perl to C and support for
ipfw and pf.

While here, trim the Makefile headers.

PR:		ports/171951
Submitted by:	Sean Greven <sean.greven@gmail.com> (maintainer)
Feature safe:	yes
2012-11-27 21:41:29 +00:00

42 lines
537 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: fwknopd
# REQUIRE: LOGIN
#
# Add the following lines to /etc/rc.conf to enable fwknopd:
#
# fwknopd_enable="YES"
#
# See fwknopd(8) for flags
#
. /etc/rc.subr
name=fwknopd
rcvar=fwknopd_enable
command=%%PREFIX%%/sbin/fwknopd
required_files=%%PREFIX%%/etc/fwknop/access.conf
start_precmd=start_precmd
stop_postcmd=stop_postcmd
extra_commands="reload"
start_precmd()
{
}
stop_postcmd()
{
}
# read settings, set default values
load_rc_config $name
: ${fwknopd_enable="NO"}
run_rc_command "$1"