diff options
author | robiscool <robrob2626@yahoo.com> | 2009-09-11 05:27:22 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-09-11 05:27:22 -0700 |
commit | 0a9500a503e4492b6fd4f5037e24b84ce370dea6 (patch) | |
tree | 8c99c77737eaa7d266cc37d85289730a488dd1a3 /config/snort-dev/snort.inc | |
parent | 199eb9d66fabb649bf8c6fcaa09876dd28d24688 (diff) | |
download | pfsense-packages-0a9500a503e4492b6fd4f5037e24b84ce370dea6.tar.gz pfsense-packages-0a9500a503e4492b6fd4f5037e24b84ce370dea6.tar.bz2 pfsense-packages-0a9500a503e4492b6fd4f5037e24b84ce370dea6.zip |
snort-dev, add final install files snort.xml
Diffstat (limited to 'config/snort-dev/snort.inc')
-rw-r--r-- | config/snort-dev/snort.inc | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc index f09f2804..3f8ccc79 100644 --- a/config/snort-dev/snort.inc +++ b/config/snort-dev/snort.inc @@ -64,7 +64,7 @@ function sync_package_snort_install() { exec("/bin/mkdir -p /var/log/snort"); exec("/bin/mkdir -p /usr/local/etc/snort/rules"); - if(file_exists("/usr/local/etc/snort/unicode.map-sample")) { + if(!file_exists("/usr/local/etc/snort/unicode.map-sample")) exec("/bin/cp /usr/local/etc/snort/unicode.map-sample /usr/local/etc/snort/unicode.map"); exec("/bin/cp /usr/local/etc/snort/classification.config-sample /usr/local/etc/snort/classification.config"); exec("/bin/cp /usr/local/etc/snort/gen-msg.map-sample /usr/local/etc/snort/gen-msg.map"); @@ -76,7 +76,6 @@ function sync_package_snort_install() { exec("/bin/cp /usr/local/etc/snort/unicode.map-sample /usr/local/etc/snort/unicode.map"); exec("/bin/rm -f /usr/local/etc/rc.d/snort"); exec("/bin/rm /usr/local/lib/snort/dynamicrules/*"); - } if(!file_exists("/usr/local/etc/snort/rules/local.rules")) exec("/bin/cp /usr/local/pkg/local.rules /usr/local/etc/snort/rules/local.rules"); @@ -85,30 +84,7 @@ function sync_package_snort_install() { function sync_package_snort() { - global $config, $g; - - /* create a few directories and ensure the sample files are in place */ - exec("/bin/mkdir -p /usr/local/etc/snort_bkup"); - exec("/bin/mkdir -p /usr/local/etc/snort"); - exec("/bin/mkdir -p /var/log/snort"); - exec("/bin/mkdir -p /usr/local/etc/snort/rules"); - - if(file_exists("/usr/local/etc/snort/unicode.map-sample")) { - exec("/bin/cp /usr/local/etc/snort/unicode.map-sample /usr/local/etc/snort/unicode.map"); - exec("/bin/cp /usr/local/etc/snort/classification.config-sample /usr/local/etc/snort/classification.config"); - exec("/bin/cp /usr/local/etc/snort/gen-msg.map-sample /usr/local/etc/snort/gen-msg.map"); - exec("/bin/cp /usr/local/etc/snort/generators-sample /usr/local/etc/snort/generators"); - exec("/bin/cp /usr/local/etc/snort/reference.config-sample /usr/local/etc/snort/reference.config"); - exec("/bin/cp /usr/local/etc/snort/sid-msg.map-sample /usr/local/etc/snort/sid-msg.map"); - exec("/bin/cp /usr/local/etc/snort/sid-sample /usr/local/etc/snort/sid"); - exec("/bin/cp /usr/local/etc/snort/threshold.conf-sample /usr/local/etc/snort/threshold.conf"); - exec("/bin/cp /usr/local/etc/snort/unicode.map-sample /usr/local/etc/snort/unicode.map"); - exec("/bin/rm -f /usr/local/etc/rc.d/snort"); - exec("/bin/rm /usr/local/lib/snort/dynamicrules/*"); - } - - if(!file_exists("/usr/local/etc/snort/rules/local.rules")) - exec("/bin/cp /usr/local/pkg/local.rules /usr/local/etc/snort/rules/local.rules"); + global $config, $g; if(!file_exists("/var/log/snort/alert")) touch("/var/log/snort/alert"); |