From 1524e0b7ecbadb1a4f992b49d63d903a1dd8db8c Mon Sep 17 00:00:00 2001 From: marcelloc Date: Wed, 26 Oct 2011 00:53:31 -0200 Subject: countryblock-dev - more fixes --- config/countryblock-dev/countryblock.inc | 11 +++++++---- config/countryblock-dev/countryblock.php | 7 +++---- config/countryblock-dev/countryblock.xml | 4 +--- pkg_config.8.xml | 2 +- pkg_config.8.xml.amd64 | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/config/countryblock-dev/countryblock.inc b/config/countryblock-dev/countryblock.inc index 68105ec1..7f526895 100755 --- a/config/countryblock-dev/countryblock.inc +++ b/config/countryblock-dev/countryblock.inc @@ -306,10 +306,13 @@ function countryblock_do_xmlrpc_sync($sync_to_ip, $password) { /* xml will hold the sections to sync */ $xml = array(); $xml['countryblock'] = $config['installedpackages']['countryblock']; - $xml['countryblockacl'] = $config['installedpackages']['countryblockacl']; - $xml['countryblockrecipients'] = $config['installedpackages']['countryblockrecipients']; - $xml['countryblockantispam'] = $config['installedpackages']['countryblockantispam']; - + $xml['countryblockafrica'] = $config['installedpackages']['countryblockafrica']; + $xml['countryblockantartica'] = $config['installedpackages']['countryblockantartica']; + $xml['countryblockasia'] = $config['installedpackages']['countryblockasia']; + $xml['countryblockeurope'] = $config['installedpackages']['countryblockeurope']; + $xml['countryblocknorthamerica'] = $config['installedpackages']['countryblocknorthamerica']; + $xml['countryblockoceania'] = $config['installedpackages']['countryblockoceania']; + $xml['countryblocksouthamerica'] = $config['installedpackages']['countryblocksouthamerica']; /* assemble xmlrpc payload */ $params = array( XML_RPC_encode($password), diff --git a/config/countryblock-dev/countryblock.php b/config/countryblock-dev/countryblock.php index 6df5f2bd..96822e12 100644 --- a/config/countryblock-dev/countryblock.php +++ b/config/countryblock-dev/countryblock.php @@ -50,6 +50,7 @@ foreach ($files as $cont => $file){ } } $cont_name= preg_replace("/ /","",$cont); +$cont_name_lower= strtolower($cont_name); #file_put_contents($cdir.'/'.$cont_name.'.txt',$ips,LOCK_EX); $xml= << @@ -95,8 +96,8 @@ $xml= <<Describe your package here Describe your package requirements here Currently there are no FAQ items provided. - countryblock_{$cont_name} - 1.0 + countryblock{$cont_name_lower} + 1.0.1 Firewall: Countryblock /usr/local/pkg/countryblock.inc @@ -187,8 +188,6 @@ $xml= <<Firewall: Countryblock /usr/local/pkg/countryblock.inc - Countryblock + Country Block Configure Countryblock
Firewall
pkg_edit.php?xml=countryblock.xml&id=0 @@ -171,7 +171,6 @@ If you want to create custom inbound rules for blocked countries based on Countryblock firewall alias, leave this list empty.]]> interfaces_selection - wan @@ -181,7 +180,6 @@ If you want to create custom outbound rules for blocked countries based on Countryblock firewall alias, leave this list empty.]]> interfaces_selection - lan diff --git a/pkg_config.8.xml b/pkg_config.8.xml index 746a3bd4..b4aa88f7 100644 --- a/pkg_config.8.xml +++ b/pkg_config.8.xml @@ -66,7 +66,7 @@ http://forum.pfsense.org/index.php/topic,25732.0.html http://pfsense.org/packages/config/countryblock-dev/countryblock.xml http://files.pfsense.org/packages/8/All/ - 0.4.0 + 0.4.1 Beta 2.0 tom@tomschaefer.org diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64 index 1301413c..ca11e3c2 100644 --- a/pkg_config.8.xml.amd64 +++ b/pkg_config.8.xml.amd64 @@ -140,7 +140,7 @@ http://forum.pfsense.org/index.php/topic,25732.0.html http://pfsense.org/packages/config/countryblock-dev/countryblock.xml http://files.pfsense.org/packages/amd64/8/All/ - 0.4.0 + 0.4.1 Beta 2.0 tom@tomschaefer.org -- cgit v1.2.3