summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBBcan177 <bbcan177@gmail.com>2016-08-21 21:40:34 -0400
committerRenato Botelho <garga@FreeBSD.org>2016-08-23 10:40:34 -0300
commit4d5b39943b990f3192b97449fe53acf48b3ceaab (patch)
tree29c26f6a6a49b2b454256f88bb84cb090002a9e2
parent8fb40445160c18a1545e011112a7c26c96fc47ab (diff)
downloadFreeBSD-ports-4d5b39943b990f3192b97449fe53acf48b3ceaab.zip
FreeBSD-ports-4d5b39943b990f3192b97449fe53acf48b3ceaab.tar.gz
Update pfblockerng_install.inc
* Force MaxMind update if A1_ZW_rep_v4.txt (Anonymous Proxy Represented ISO list) is missing. This will ensure that any previous installations get updated with the new changes. * Remove discontinued pfBlockerNG CRON job (cherry picked from commit 12d059b1ae429d63d16f19506e1ff345a42f8108)
-rw-r--r--net/pfSense-pkg-pfBlockerNG/files/usr/local/pkg/pfblockerng/pfblockerng_install.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/pfSense-pkg-pfBlockerNG/files/usr/local/pkg/pfblockerng/pfblockerng_install.inc b/net/pfSense-pkg-pfBlockerNG/files/usr/local/pkg/pfblockerng/pfblockerng_install.inc
index 951e3db..4551c74 100644
--- a/net/pfSense-pkg-pfBlockerNG/files/usr/local/pkg/pfblockerng/pfblockerng_install.inc
+++ b/net/pfSense-pkg-pfBlockerNG/files/usr/local/pkg/pfblockerng/pfblockerng_install.inc
@@ -47,6 +47,7 @@ $maxmind_verify = 0;
if (!file_exists("{$pfb['geoipshare']}/{$pfb['extras'][0]['file']}") ||
!file_exists("{$pfb['geoipshare']}/{$pfb['extras'][1]['file']}") ||
!file_exists("{$pfb['geoipshare']}/GeoLite2-Country-Blocks-IPv4.csv") ||
+ !file_exists("{$pfb['ccdir']}/A1_ZW_rep_v4.txt") ||
!file_exists("{$pfb['dbdir']}/GeoIP_Locale")) {
update_status("\nDownloading MaxMind GeoIP databases. This may take a minute...\n");
@@ -332,6 +333,9 @@ if (isset($config['installedpackages']['pfblockerngantartica'])) {
unset($config['installedpackages']['pfblockerngantartica']);
}
+// Remove discontinued pfBlockerNG CRON job
+install_cron_job('pfblockerng.php dc >>', false);
+
unset($g['pfblockerng_install']); // Remove 'Install flag'
update_status("Custom commands completed ... ");
return TRUE;
OpenPOWER on IntegriCloud