diff options
author | robiscool <robrob2626@yahoo.com> | 2010-09-06 13:23:21 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2010-09-06 13:23:21 -0700 |
commit | bddca0a1e15808909cba7048ab9c4a5e36e1b46d (patch) | |
tree | a053afe8bcd88b1511c3d5cf798a42ae5905826b /config/snort | |
parent | c62acabda85ab74fa05f00e63c1299834a6d3654 (diff) | |
download | pfsense-packages-bddca0a1e15808909cba7048ab9c4a5e36e1b46d.tar.gz pfsense-packages-bddca0a1e15808909cba7048ab9c4a5e36e1b46d.tar.bz2 pfsense-packages-bddca0a1e15808909cba7048ab9c4a5e36e1b46d.zip |
snort, update perl-threaded install
Diffstat (limited to 'config/snort')
-rw-r--r-- | config/snort/snort.inc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 4d54d410..3123a8e1 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -679,12 +679,12 @@ if($snort_arch_ck[0] == 'i386') { /* install perl-threaded */ - if(!file_exists('/root/tmp2')) + if(!file_exists('/tmp/pkg_s')) { - exec('/bin/mkdir -p /root/tmp2'); + exec('/bin/mkdir -p /tmp/pkg_s'); } - chdir ("/root/tmp2"); + chdir ('/tmp/pkg_s'); update_status(gettext("Installing perl-threaded for $snort_arch...")); update_output_window(gettext("Please wait downloading...")); @@ -700,20 +700,20 @@ if($snort_arch_ck[0] == 'i386') { 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('/tmp/pkg_s/perl-threaded-5.12.1_1.tbz')){ + exec('/usr/sbin/pkg_add -f /tmp/pkg_s/perl-threaded-5.12.1_1.tbz'); } - if(file_exists('/root/tmp2/')){ - exec('/bin/rm -r /root/tmp2/'); + update_output_window(gettext("Please wait Cleaning Up...")); + if(file_exists('/tmp/pkg_s/')){ + exec('/bin/rm -r /tmp/pkg_s/'); } update_output_window(gettext("Finnished Installing perl-threaded...")); /* back to default */ - chdir ("/root/"); + chdir ('/root/'); /* make sure snort-old is deinstalled */ /* remove when snort-old is removed */ |