summaryrefslogtreecommitdiff
path: root/security/pflkm/files/pf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'security/pflkm/files/pf.sh')
-rw-r--r--security/pflkm/files/pf.sh54
1 files changed, 0 insertions, 54 deletions
diff --git a/security/pflkm/files/pf.sh b/security/pflkm/files/pf.sh
deleted file mode 100644
index 61a0cbeedb1..00000000000
--- a/security/pflkm/files/pf.sh
+++ /dev/null
@@ -1,54 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: pf.sh,v 1.2 2005/01/18 17:36:53 peter Exp $
-#
-# PROVIDE: pf
-# REQUIRE: DAEMON
-#
-
-. /etc/rc.subr
-
-name="pf"
-rcvar=$name
-pfctl="@PREFIX@/sbin/pfctl"
-config="@PKG_SYSCONFDIR@/pf.conf"
-start_cmd="pf_start"
-stop_cmd="pf_stop"
-reload_cmd="pf_reload"
-status_cmd="pf_status"
-extra_commands="reload status"
-
-pf_start()
-{
- echo "Enabling pf firewall."
- ${pfctl} -q -e
- if [ -f ${config} ]; then
- ${pfctl} -q -f ${config}
- else
- warn "pf.conf not found; no pf rules loaded."
- fi
-}
-
-pf_stop()
-{
- echo "Disabling pf firewall."
- ${pfctl} -q -Fa -d
-}
-
-pf_reload()
-{
- echo "Reloading pf rules."
- if [ -f ${config} ]; then
- ${pfctl} -q -f ${config}
- else
- warn "pf.conf not found; no pf rules loaded."
- fi
-}
-
-pf_status()
-{
- ${pfctl} -s info
-}
-
-load_rc_config $name
-run_rc_command "$1"