aboutsummaryrefslogtreecommitdiff
path: root/security/snortsam/files/snortsam.in
diff options
context:
space:
mode:
Diffstat (limited to 'security/snortsam/files/snortsam.in')
-rw-r--r--security/snortsam/files/snortsam.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/security/snortsam/files/snortsam.in b/security/snortsam/files/snortsam.in
new file mode 100644
index 000000000000..bc78d1fc7e4e
--- /dev/null
+++ b/security/snortsam/files/snortsam.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+# $FreeBSD$
+
+# PROVIDE: snortsam
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following line to /etc/rc.conf to enable snortsam:
+#
+# snortsam_enable="YES"
+#
+# # optional Snortsam configuration file:
+# snortsam_conf="%%ETCDIR%%/snortsam.conf"
+#
+# DO NOT CHANGE THE DEFAULT VALUES HERE
+#
+. /etc/rc.subr
+
+name="snortsam"
+rcvar=snortsam_enable
+load_rc_config snortsam
+
+# defaults
+command="%%PREFIX%%/sbin/snortsam"
+snortsam_enable=${snortsam_enable:-"NO"}
+snortsam_flags=${snortsam_conf:-"%%ETCDIR%%/snortsam.conf"}
+
+run_rc_command "$1"