aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-09-01 20:37:33 +0000
committerErmal <eri@pfsense.org>2011-09-01 20:37:33 +0000
commita6a1a21bab80b525bc5f7bc74277409303b7b605 (patch)
tree4622e099d3936b9e631e8350eaeeea3357129860 /config/snort
parentf23f264ae6430e0a19c8624777eba2dad393b2b4 (diff)
downloadpfsense-packages-a6a1a21bab80b525bc5f7bc74277409303b7b605.tar.gz
pfsense-packages-a6a1a21bab80b525bc5f7bc74277409303b7b605.tar.bz2
pfsense-packages-a6a1a21bab80b525bc5f7bc74277409303b7b605.zip
Until php behaves hardcode barnyard2 with a url for version 8 of repo.
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort.inc8
1 files changed, 3 insertions, 5 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 315dfc44..71b72462 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -55,8 +55,6 @@ if (intval($config['version']) > 6)
else
$snort_pfsense_basever = 'yes';
-$snort_freebsd_ver = php_uname("r");
-$snort_freebsd_ver = $snort_freebsd_ver[0];
/* find out what arch where in x86 , x64 */
$snort_arch_ck = php_uname("m");
if ($snort_arch_ck == 'i386')
@@ -482,7 +480,7 @@ function post_delete_logs()
function snort_postinstall()
{
- global $config, $g, $snort_pfsense_basever, $snort_arch, $snort_freebsd_ver;
+ global $config, $g, $snort_pfsense_basever, $snort_arch;
/* snort -> advanced features */
if (is_array($config['installedpackages']['snortglobal'])) {
@@ -596,9 +594,9 @@ function snort_postinstall()
exec('/usr/bin/fetch -o /usr/local/bin/barnyard2 http://www.pfsense.com/packages/config/snort/bin/7.3.x86/barnyard2');
else if ($snort_pfsense_basever == 'no') {
if ($snort_arch == 'x64')
- exec("/usr/bin/fetch -o /usr/local/bin/barnyard2 http://files.pfsense.org/packages/amd64/{$snort_freebsd_ver}/All/barnyard2");
+ exec("/usr/bin/fetch -o /usr/local/bin/barnyard2 http://files.pfsense.org/packages/amd64/8/All/barnyard2");
else
- exec("/usr/bin/fetch -o /usr/local/bin/barnyard2 http://files.pfsense.org/packages/{$snort_freebsd_ver}/All/barnyard2");
+ exec("/usr/bin/fetch -o /usr/local/bin/barnyard2 http://files.pfsense.org/packages/8/All/barnyard2");
exec('/bin/chmod 0755 /usr/local/bin/barnyard2');
}
update_output_window(gettext("Finnished Installing Barnyard2..."));