aboutsummaryrefslogtreecommitdiffstats
path: root/config/ipblocklist/8
diff options
context:
space:
mode:
authorThomas Schaefer <tom@tomschaefer.org>2011-10-02 18:56:10 -0400
committerThomas Schaefer <tom@tomschaefer.org>2011-10-02 18:56:10 -0400
commit965b82cb3b15d983da2bfce8db9303085d7122c9 (patch)
tree4f03997db66a08b71c0944338b043408bad66b63 /config/ipblocklist/8
parent111cc64f1edb39d67fcd96a565482588aa8ab64a (diff)
downloadpfsense-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')
-rwxr-xr-xconfig/ipblocklist/8/ipblocklist.inc9
-rwxr-xr-xconfig/ipblocklist/8/ipblocklist.tmp2
2 files changed, 7 insertions, 4 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();
}
diff --git a/config/ipblocklist/8/ipblocklist.tmp b/config/ipblocklist/8/ipblocklist.tmp
index ffbfdc57..02f67c05 100755
--- a/config/ipblocklist/8/ipblocklist.tmp
+++ b/config/ipblocklist/8/ipblocklist.tmp
@@ -62,7 +62,7 @@ if (count($_POST)>0) {
//echo "disabled";
$config['installedpackages']['ipblocklist_settings']['config'][0]['enable'] = 0;
//Clear Lists
- mwexec("ipfw -f flush");
+ //mwexec("ipfw -f flush");
mwexec("pfctl -t ipblocklist -T kill");
mwexec("rm -R /usr/local/www/packages/ipblocklist/lists");
mwexec("sed -i -e '/ipblocklist/d' /tmp/rules.debug");