diff options
author | robiscool <robrob2626@yahoo.com> | 2009-11-30 23:24:13 -0800 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-11-30 23:24:13 -0800 |
commit | 121a4e5af35799f63a9e5e36b45492f6996cff21 (patch) | |
tree | 8ede4eee6c559e2ebbc34617b283b2ec9d471a96 /config/snort-dev/snort.inc | |
parent | 84f9461274f2d25c1e0a4da0557158a6bb36d817 (diff) | |
download | pfsense-packages-121a4e5af35799f63a9e5e36b45492f6996cff21.tar.gz pfsense-packages-121a4e5af35799f63a9e5e36b45492f6996cff21.tar.bz2 pfsense-packages-121a4e5af35799f63a9e5e36b45492f6996cff21.zip |
snort-dev, main gui update, remove example files
Diffstat (limited to 'config/snort-dev/snort.inc')
-rw-r--r-- | config/snort-dev/snort.inc | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc index b1300e1a..6fae43ab 100644 --- a/config/snort-dev/snort.inc +++ b/config/snort-dev/snort.inc @@ -93,18 +93,27 @@ function sync_package_snort() exec("/bin/mkdir -p /usr/local/etc/snort/rules"); if(file_exists("/usr/local/etc/snort/snort.conf-sample")) { - exec("/bin/rm /usr/local/etc/snort/snort.conf-sample"); - exec("/bin/rm /usr/local/etc/snort/threshold.conf-sample"); - exec("/bin/rm /usr/local/etc/snort/sid-msg.map-sample"); - exec("/bin/rm /usr/local/etc/snort/unicode.map-sample"); - exec("/bin/rm /usr/local/etc/snort/classification.config-sample"); - exec("/bin/rm /usr/local/etc/snort/generators-sample"); - exec("/bin/rm /usr/local/etc/snort/reference.config-sample"); - exec("/bin/rm /usr/local/etc/snort/gen-msg.map-sample"); - exec("/bin/rm /usr/local/etc/snort/sid"); - exec("/bin/rm -f /usr/local/etc/rc.d/snort"); + exec("/bin/rm /usr/local/etc/snort/snort.conf-sample"); + exec("/bin/rm /usr/local/etc/snort/threshold.conf-sample"); + exec("/bin/rm /usr/local/etc/snort/sid-msg.map-sample"); + exec("/bin/rm /usr/local/etc/snort/unicode.map-sample"); + exec("/bin/rm /usr/local/etc/snort/classification.config-sample"); + exec("/bin/rm /usr/local/etc/snort/generators-sample"); + exec("/bin/rm /usr/local/etc/snort/reference.config-sample"); + exec("/bin/rm /usr/local/etc/snort/gen-msg.map-sample"); + exec("/bin/rm /usr/local/etc/snort/sid"); + exec("/bin/rm -f /usr/local/etc/rc.d/snort"); } - + + /* remove example files */ + /* TODO: remove these filese during binary builds */ + if(file_exists("/usr/local/lib/snort/dynamicrules/lib_sfdynamic_example_rule.so.0")) { + exec('/bin/rm /usr/local/lib/snort/dynamicrules/lib_sfdynamic_example*'); + } + if(file_exists("/usr/local/lib/snort/dynamicpreprocessor/lib_sfdynamic_preprocessor_example.so")) { + exec('/bin/rm /usr/local/lib/snort/dynamicpreprocessor/lib_sfdynamic_preprocessor_example*'); + } + /* snort advanced features - bpf tuning */ // if($bpfbufsize) // $start .= "sysctl net.bpf.bufsize={$bpfbufsize}\n"; |