aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2007-06-14 02:51:01 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2007-06-14 02:51:01 +0000
commit9da0f9fbc8935b04c755ac729fdf83296ca42c5d (patch)
tree9fb16bdb8fbfb9ec6db0b8321d83b50995ed98e9 /security
parent74f223bdab17e6918b4f5148eb2202f59ed2aac2 (diff)
downloadports-9da0f9fbc8935b04c755ac729fdf83296ca42c5d.tar.gz
ports-9da0f9fbc8935b04c755ac729fdf83296ca42c5d.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/snort/Makefile2
-rw-r--r--security/snort/files/snort.sh.in7
2 files changed, 8 insertions, 1 deletions
diff --git a/security/snort/Makefile b/security/snort/Makefile
index b4ebc9c5e89a..09767ba977db 100644
--- a/security/snort/Makefile
+++ b/security/snort/Makefile
@@ -7,7 +7,7 @@
PORTNAME= snort
PORTVERSION= 2.6.1.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://www.snort.org/dl/current/
diff --git a/security/snort/files/snort.sh.in b/security/snort/files/snort.sh.in
index 583595cd6f61..ac28ce84315c 100644
--- a/security/snort/files/snort.sh.in
+++ b/security/snort/files/snort.sh.in
@@ -15,6 +15,12 @@
# Default: ""
# snort_conf (str): Snort configuration file
# Default: ${PREFIX}/etc/snort/snort.conf
+# snort_expression (str): filter expression
+# If your expression is very long, set
+# kern.ps_arg_cache_limit sysctl variable
+# to large value. Otherwise, snort won't
+# restart!
+# Default: ""
#
. %%RC_SUBR%%
@@ -33,5 +39,6 @@ load_rc_config $name
[ -n "$snort_interface" ] && snort_flags="$snort_flags -i $snort_interface" \
&& pidfile="/var/run/snort_${snort_interface}.pid"
[ -n "$snort_conf" ] && snort_flags="$snort_flags -c $snort_conf"
+[ -n "$snort_expression" ] && snort_flags="$snort_flags $snort_expression"
run_rc_command "$1"