freebsd-ports/net-mgmt/pftabled/files/pftabled.in
Martin Wilke aec6dd3dc7 The pftabled daemon is a small helper to make your pf
tables reachable from other hosts. You can add/delete/flush
IP addresses to/from a remote table with a single UDP
datagram. A simple client program is included to do this
from the command line.

WWW:	http://wolfermann.org/pftabled.html

PR:		ports/105713
Submitted by:	Bartlomiej Rutkowski <r at robakdesign.com>
2006-11-23 12:02:29 +00:00

29 lines
567 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: pftabled
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable pftabled:
# pftabled_enable (bool): Set it to "YES" to enable pftabled.
# Default is "NO".
# pftabled_flags (flags): Set flags to alter default behaviour of pftabled.
# Consult with the man page for more info.
#
. %%RC_SUBR%%
name="pftabled"
rcvar=${name}_enable
load_rc_config $name
: ${pftabled_enable="NO"}
: ${pftabled_flags=""}
command="%%PREFIX%%/sbin/${name}"
run_rc_command "$1"