diff options
author | Thomas Schaefer <tom@tomschaefer.org> | 2011-10-02 18:56:10 -0400 |
---|---|---|
committer | Thomas Schaefer <tom@tomschaefer.org> | 2011-10-02 18:56:10 -0400 |
commit | 965b82cb3b15d983da2bfce8db9303085d7122c9 (patch) | |
tree | 4f03997db66a08b71c0944338b043408bad66b63 /config/ipblocklist/8/ipblocklist.inc | |
parent | 111cc64f1edb39d67fcd96a565482588aa8ab64a (diff) | |
download | pfsense-packages-965b82cb3b15d983da2bfce8db9303085d7122c9.tar.gz pfsense-packages-965b82cb3b15d983da2bfce8db9303085d7122c9.tar.bz2 pfsense-packages-965b82cb3b15d983da2bfce8db9303085d7122c9.zip |
fix pkg_add location to 8 stable and fix other issues
Diffstat (limited to 'config/ipblocklist/8/ipblocklist.inc')
-rwxr-xr-x | config/ipblocklist/8/ipblocklist.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config/ipblocklist/8/ipblocklist.inc b/config/ipblocklist/8/ipblocklist.inc index 003f28bf..d3d5e1cd 100755 --- a/config/ipblocklist/8/ipblocklist.inc +++ b/config/ipblocklist/8/ipblocklist.inc @@ -55,10 +55,12 @@ function php_install_command_ip() //install PERL + exec("setenv PACKAGESITE \"ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Latest/\""); exec("pkg_add -r perl"); exec("pkg_add -r p5-Net-CIDR"); - exec("pkg_add -r compat7x-i386.tbz"); - exec("pkg_add -r compat6x-i386.tbz"); + //exec("pkg_add -r compat7x-i386.tbz"); + //exec("pkg_add -r compat6x-i386.tbz"); + exec("rehash"); //rename PHP files from .tmp to .php exec("cp /tmp/lists.txt /usr/local/www/packages/ipblocklist/lists.txt"); @@ -121,11 +123,12 @@ function deinstall_command_ip() $handle = popen("/usr/local/etc/rc.d/ipblocklist.sh stop", "r"); unlink_if_exists("/usr/local/pkg/ipblocklist.xml"); unlink_if_exists("/usr/local/pkg/ipblocklist.inc"); + unlink_if_exists("/usr/local/pkg/pf/IP-Blocklist.sh"); exec("rm -R /usr/local/www/packages/ipblocklist/ipblocklists"); exec("rm -R /usr/local/www/packages/ipblocklist"); exec("rm /usr/local/etc/rc.d/IP-Blocklist.sh"); exec("pfctl -t ipblocklist -T kill"); - exec("ipfw -f flush"); + //exec("ipfw -f flush"); conf_mount_ro(); } |