diff options
author | robiscool <robrob2626@yahoo.com> | 2010-03-26 18:30:53 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2010-03-26 18:30:53 -0700 |
commit | 4c2edcf6a53678cb5935a486ae58b5084c059a14 (patch) | |
tree | 483b036fa96e9899b50f502b1e3a3df9d237b916 | |
parent | 99f575d42eed225405233af5cc0231ca874dce50 (diff) | |
download | pfsense-packages-4c2edcf6a53678cb5935a486ae58b5084c059a14.tar.gz pfsense-packages-4c2edcf6a53678cb5935a486ae58b5084c059a14.tar.bz2 pfsense-packages-4c2edcf6a53678cb5935a486ae58b5084c059a14.zip |
snort-dev, add download code for barnyard
-rw-r--r-- | config/snort-dev/snort.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc index 9c3d3294..18a817bf 100644 --- a/config/snort-dev/snort.inc +++ b/config/snort-dev/snort.inc @@ -286,6 +286,15 @@ function snort_postinstall() exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/javascript/sortableTable.js'); exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/javascript/tabs.js'); + /* install barnyard2 for 2.0 and 1.2.3 */ + chdir ("/usr/local/bin/"); + if ($pfsense_stable == 'yes') { + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/bin/7.2.x86/barnyard2'); + }else{ + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/bin/8.0.x86/barnyard2'); + } + exec('/bin/chmod 077 /usr/local/bin/barnyard2'); + /* back to default */ chdir ("/root/"); |