diff options
author | Tom Schaefer <tom@tomschaefer.org> | 2010-11-21 11:03:19 -0500 |
---|---|---|
committer | Tom Schaefer <tom@tomschaefer.org> | 2010-11-21 11:03:19 -0500 |
commit | ae0d47554b5a8a0c0c5d8bab70e4334840edae89 (patch) | |
tree | 9418e9a3df111e0f2a57265f90a2eae429e6609d /config/ipblocklist/ipblocklist.inc | |
parent | 8608438108be0c8c9523fca5cfa45291d9c6cb2f (diff) | |
download | pfsense-packages-ae0d47554b5a8a0c0c5d8bab70e4334840edae89.tar.gz pfsense-packages-ae0d47554b5a8a0c0c5d8bab70e4334840edae89.tar.bz2 pfsense-packages-ae0d47554b5a8a0c0c5d8bab70e4334840edae89.zip |
IP-Blocklist 3.0 fix for BETA2.0 and 1.2.3
Diffstat (limited to 'config/ipblocklist/ipblocklist.inc')
-rw-r--r--[-rwxr-xr-x] | config/ipblocklist/ipblocklist.inc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config/ipblocklist/ipblocklist.inc b/config/ipblocklist/ipblocklist.inc index 0bb7bfb1..bc834a85 100755..100644 --- a/config/ipblocklist/ipblocklist.inc +++ b/config/ipblocklist/ipblocklist.inc @@ -57,8 +57,24 @@ function php_install_command_ip() //install PERL exec("pkg_add -r http://www.pfsense.org/packages/config/ipblocklist/perl-5.8.9_2.tbz"); exec("pkg_add -r http://www.pfsense.org/packages/config/ipblocklist/p5-Net-CIDR-0.13.tbz"); + exec("pkg_add -r http://www.pfsense.org/packages/config/ipblocklist/compat7x.tbz"); //rename PHP files from .tmp to .php + exec("cp /tmp/class.phpmailer.tmp /usr/local/www/packages/ipblocklist/class.phpmailer.php"); + unlink_if_exists("/tmp/class.phpmailer.tmp "); + exec("cp /tmp/class.smtp.tmp /usr/local/www/packages/ipblocklist/class.smtp.php"); + unlink_if_exists("/tmp/class.smtp.tmp"); + exec("cp /tmp/email.tmp /usr/local/www/packages/ipblocklist/email.php"); + unlink_if_exists("/tmp/email.tmp"); + exec("cp /tmp/ipblocklist_if.tmp /usr/local/www/packages/ipblocklist/ipblocklist_if.php"); + unlink_if_exists("/tmp/ipblocklist_if.tmp"); + exec("cp /tmp/settings.tmp /usr/local/www/packages/ipblocklist/settings.php"); + unlink_if_exists("/tmp/settings.tmp"); + exec("cp /tmp/interfaces.txt /usr/local/www/packages/ipblocklist/interfaces.txt"); + unlink_if_exists("/tmp/interfaces.txt"); + exec("cp /tmp/firewall_shaper.tmp /usr/local/www/packages/ipblocklist/firewall_shaper.php"); + unlink_if_exists("/tmp/firewall_shaper.tmp"); + exec("cp /tmp/ipblocklist.tmp /usr/local/www/packages/ipblocklist/ipblocklist.php"); unlink_if_exists("/tmp/ipblocklist.tmp"); exec("cp /tmp/ipblocklist_list.tmp /usr/local/www/packages/ipblocklist/ipblocklist_list.php"); |