aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2010-08-26 02:26:34 -0700
committerrobiscool <robrob2626@yahoo.com>2010-08-26 02:26:34 -0700
commit6b6087d22937052dd8ad257fa122d6cb09d3bb24 (patch)
tree1d70c43213c972eb750674081dcbc30c9cd6e996 /config
parent90ef97fb7c7e716ab46c9d187add50a7bd0dbd77 (diff)
downloadpfsense-packages-6b6087d22937052dd8ad257fa122d6cb09d3bb24.tar.gz
pfsense-packages-6b6087d22937052dd8ad257fa122d6cb09d3bb24.tar.bz2
pfsense-packages-6b6087d22937052dd8ad257fa122d6cb09d3bb24.zip
snort, redo the way barnyard2 is installed
Diffstat (limited to 'config')
-rw-r--r--config/snort/snort.inc14
1 files changed, 8 insertions, 6 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 2f90f385..d8a7ad93 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -643,12 +643,14 @@ function snort_postinstall()
chdir ("/usr/local/bin/");
if ($pfsense_stable == 'yes') {
exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort/bin/7.3.x86/barnyard2');
- }else{
- if ($snort_arch == 'x86') {
- exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort/bin/8.1x86/barnyard2');
- }else{
- exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort/bin/8.1x64/barnyard2');
- }
+ }
+
+ if ($pfsense_stable == 'no' && $snort_arch == 'x86') {
+ exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort/bin/8.1x86/barnyard2');
+ }
+
+ if ($pfsense_stable == 'no' && $snort_arch == 'x64') {
+ exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort/bin/8.1x64/barnyard2');
}
exec('/bin/chmod 755 /usr/local/bin/barnyard2');