aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2010-09-10 00:54:52 -0700
committerrobiscool <robrob2626@yahoo.com>2010-09-10 00:54:52 -0700
commit140a7cec4608a4bb68567687641b3a29ba392732 (patch)
tree74502a712cfbfdc0a5db70cd1992bef755e41ab4 /config/snort
parenta514c94a987c0733e502edbe74a0569974e6337e (diff)
downloadpfsense-packages-140a7cec4608a4bb68567687641b3a29ba392732.tar.gz
pfsense-packages-140a7cec4608a4bb68567687641b3a29ba392732.tar.bz2
pfsense-packages-140a7cec4608a4bb68567687641b3a29ba392732.zip
snort, perl-threaded upadte in snort.inc
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort.inc19
1 files changed, 13 insertions, 6 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index ef4e8c51..e50d9019 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -680,8 +680,7 @@ function snort_postinstall()
/* install perl-threaded */
/* TODO: invoke this through pkg_util.inc */
- if(!file_exists('/tmp/pkg_s'))
- {
+ if(!file_exists('/tmp/pkg_s')) {
exec('/bin/mkdir -p /tmp/pkg_s');
}
@@ -701,14 +700,22 @@ function snort_postinstall()
exec('/usr/bin/fetch http://files.pfsense.org/packages/snort/8.1x64/perl-threaded-5.12.1_1.tbz');
}
+ conf_mount_rw();
+ if(!file_exists('/root/pkg_s')) {
+ exec('/bin/mkdir -p /root/pkg_s');
+ }
+
update_output_window(gettext("Please wait Installing..."));
- if(file_exists('/tmp/pkg_s/perl-threaded-5.12.1_1.tbz')){
- exec('/usr/sbin/pkg_add -fv /tmp/pkg_s/perl-threaded-5.12.1_1.tbz');
+ if(file_exists('/tmp/pkg_s/perl-threaded-5.12.1_1.tbz')) {
+ exec('/bin/mv /tmp/pkg_s/perl-threaded-5.12.1_1.tbz /root/pkg_s/perl-threaded-5.12.1_1.tbz');
+ sleep(2);
+ exec('/bin/rm -r /tmp/pkg_s/');
+ exec('/usr/sbin/pkg_add -fv /root/pkg_s/perl-threaded-5.12.1_1.tbz');
}
update_output_window(gettext("Please wait Cleaning Up..."));
- if(file_exists('/tmp/pkg_s/')){
- exec('/bin/rm -r /tmp/pkg_s/');
+ if(file_exists('/root/pkg_s/')){
+ exec('/bin/rm -r /root/pkg_s/');
}
update_output_window(gettext("Finnished Installing perl-threaded..."));