aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort.inc
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2010-08-26 00:05:33 -0700
committerrobiscool <robrob2626@yahoo.com>2010-08-26 00:14:09 -0700
commit90ef97fb7c7e716ab46c9d187add50a7bd0dbd77 (patch)
tree3af723867bb33b1ca9cb876c9a9fd8ce7cbdf418 /config/snort/snort.inc
parenta78d034277cac946aa0cc70b0fea87f3948252f3 (diff)
downloadpfsense-packages-90ef97fb7c7e716ab46c9d187add50a7bd0dbd77.tar.gz
pfsense-packages-90ef97fb7c7e716ab46c9d187add50a7bd0dbd77.tar.bz2
pfsense-packages-90ef97fb7c7e716ab46c9d187add50a7bd0dbd77.zip
snort, update binaries for 1.2.3 x86, 2.0 x86, x64, update rule files to match.
Diffstat (limited to 'config/snort/snort.inc')
-rw-r--r--config/snort/snort.inc25
1 files changed, 21 insertions, 4 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 55f6c045..2f90f385 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -37,7 +37,7 @@ require_once("functions.inc");
require_once("filter.inc");
/* package version */
-$snort_package_version = 'Snort 2.8.6 pkg v. 1.33';
+$snort_package_version = 'Snort 2.8.6.1 pkg v. 1.33';
/* find out if were in 1.2.3-RELEASE */
$pfsense_ver_chk = exec('/bin/cat /etc/version');
@@ -48,6 +48,18 @@ if ($pfsense_ver_chk == '1.2.3-RELEASE')
$pfsense_stable = 'no';
}
+/* find out what arch where in x86 , x64 */
+/* TODO: should be more clear in this code */
+if ($pfsense_stable == 'no') {
+ $snort_arch_ck = '';
+ exec('uname -m', $snort_arch_ck);
+ if($snort_arch_ck[0] == 'i386') {
+ $snort_arch = 'x86';
+ }else{
+ $snort_arch = 'x64';
+ }
+}
+
/* tell me my theme */
$pfsense_theme_is = $config['theme'];
@@ -627,13 +639,18 @@ function snort_postinstall()
exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort/javascript/sortableTable.js');
exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort/javascript/row_helper.js');
- /* install barnyard2 for 2.0 and 1.2.3 */
+ /* install barnyard2 for 2.0 x86 x64 and 1.2.3 x86 */
chdir ("/usr/local/bin/");
if ($pfsense_stable == 'yes') {
- exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort/bin/7.2.x86/barnyard2');
+ exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort/bin/7.3.x86/barnyard2');
}else{
- exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort/bin/8.0.x86/barnyard2');
+ 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');
+ }
}
+
exec('/bin/chmod 755 /usr/local/bin/barnyard2');
/* back to default */