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
41 lines
537 B
Bash
41 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"
|