aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort.inc
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2010-09-06 07:34:49 -0700
committerrobiscool <robrob2626@yahoo.com>2010-09-06 07:34:49 -0700
commit1626d9ef29b4ef4b48f4ec9ec065cfe71795e9f7 (patch)
tree47cb3182f8bfefd301132e8377b6db18743cf521 /config/snort/snort.inc
parente18f1052895b64ad8f225763801c3004894437c0 (diff)
downloadpfsense-packages-1626d9ef29b4ef4b48f4ec9ec065cfe71795e9f7.tar.gz
pfsense-packages-1626d9ef29b4ef4b48f4ec9ec065cfe71795e9f7.tar.bz2
pfsense-packages-1626d9ef29b4ef4b48f4ec9ec065cfe71795e9f7.zip
snort, remove perl-threaded from basic install
Diffstat (limited to 'config/snort/snort.inc')
-rw-r--r--config/snort/snort.inc36
1 files changed, 36 insertions, 0 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index a52d9df3..9f3cf53f 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -677,6 +677,41 @@ if($snort_arch_ck[0] == 'i386') {
exec('/bin/chmod 755 /usr/local/bin/barnyard2');
+
+ /* install perl-threaded */
+ if(!file_exists('/root/tmp2'))
+ {
+ exec('/bin/mkdir -p /root/tmp2');
+ }
+
+ chdir ("/root/tmp2");
+
+ update_status(gettext("Installing perl-threaded for $snort_arch..."));
+ update_output_window(gettext("Please wait downloading..."));
+ if ($pfsense_stable == 'yes') {
+ exec('/usr/bin/fetch http://files.pfsense.org/packages/snort/7.3x86/perl-threaded-5.12.1_1.tbz');
+ }
+
+ if ($pfsense_stable == 'no' && $snort_arch == 'x86') {
+ exec('/usr/bin/fetch http://files.pfsense.org/packages/snort//8.1x86/perl-threaded-5.12.1_1.tbz');
+ }
+
+ if ($pfsense_stable == 'no' && $snort_arch == 'x64') {
+ exec('/usr/bin/fetch http://files.pfsense.org/packages/snort/8.1x64/perl-threaded-5.12.1_1.tbz');
+ }
+
+ update_status(gettext("Installing perl-threaded for $snort_arch..."));
+ update_output_window(gettext("Please wait Installing..."));
+ if(!file_exists('/root/tmp2/perl-threaded-5.12.1_1.tbz')){
+ exec('/usr/sbin/pkg_add /root/tmp2/perl-threaded-5.12.1_1.tbz');
+ }
+
+ if(!file_exists('/root/tmp2/')){
+ exec('/bin/rm -r /root/tmp2/');
+ }
+
+ update_output_window(gettext("Finnished Installing perl-threaded..."));
+
/* back to default */
chdir ("/root/");
@@ -1755,6 +1790,7 @@ function snort_deinstall()
exec('rm -rf /usr/local/pkg/pf/snort*');
exec("cd /var/db/pkg && pkg_delete `ls | grep snort`");
+ exec("cd /var/db/pkg && pkg_delete `ls | grep perl-threaded`");
exec("cd /var/db/pkg && pkg_delete `ls | grep mysql-client-5.1.50_1`");
exec('rm -r /usr/local/bin/barnyard2');