aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-14 09:41:31 -0300
committerRenato Botelho <renato@netgate.com>2015-09-14 09:41:31 -0300
commit2b0207dc94e61142fcb09bdd0defa8918624e827 (patch)
treebd6d0da2c458136c821975c38650fde6074c36e2 /config
parent8598a2bf8f1809214f924806f589f01c02cab2d3 (diff)
parentf78d8f684d8bd839d47bc1230d2086eaadbe1bd0 (diff)
downloadpfsense-packages-2b0207dc94e61142fcb09bdd0defa8918624e827.tar.gz
pfsense-packages-2b0207dc94e61142fcb09bdd0defa8918624e827.tar.bz2
pfsense-packages-2b0207dc94e61142fcb09bdd0defa8918624e827.zip
Merge pull request #1062 from doktornotor/patch-2
Diffstat (limited to 'config')
-rw-r--r--config/havp/havp.inc13
-rw-r--r--config/havp/havp.xml4
2 files changed, 12 insertions, 5 deletions
diff --git a/config/havp/havp.inc b/config/havp/havp.inc
index 38412f31..9e931a95 100644
--- a/config/havp/havp.inc
+++ b/config/havp/havp.inc
@@ -87,9 +87,13 @@ define('HVDEF_PID_FILE', '/var/run/havp.pid');
$pf_version=substr(trim(file_get_contents("/etc/version")), 0, 3);
if ($pf_version == "2.1" || $pf_version == "2.2") {
- define("HVDEF_WORK_DIR", "/usr/pbi/havp-" . php_uname("m") . "/local/etc");
+ define("HVDEF_WORK_DIR", "/usr/pbi/havp-" . php_uname("m") . "/local/etc");
+ define('HVDEF_TEMPLATES', "/usr/pbi/havp-" . php_uname("m") . "/local/share/examples/havp/templates");
+ define('HVDEF_TEMPLATES_EX', HVDEF_TEMPLATES . '_ex');
} else {
- define("HVDEF_WORK_DIR", "/usr/local/etc/havp");
+ define("HVDEF_WORK_DIR", "/usr/local/etc/havp");
+ define('HVDEF_TEMPLATES', '/usr/local/share/examples/havp/templates');
+ define('HVDEF_TEMPLATES_EX', HVDEF_TEMPLATES . '_ex');
}
define('HVDEF_LOG_DIR', '/var/log/havp');
@@ -97,8 +101,6 @@ define('HVDEF_TEMP_DIR', '/var/tmp');
define('HVDEF_HAVPTEMP_DIR', HVDEF_TEMP_DIR . '/havp');
define('HVDEF_RAMTEMP_DIR', HVDEF_TEMP_DIR . '/havpRAM');
define('HVDEF_SCANTEMPFILE', '/havp-XXXXXX');
-define('HVDEF_TEMPLATES', '/usr/local/share/examples/havp/templates');
-define('HVDEF_TEMPLATES_EX', HVDEF_TEMPLATES . '_ex');
define('HVDEF_FILTER_RULES', '/tmp/rules.havp');
define('HVDEF_HAVP_CONFIG', HVDEF_WORK_DIR . '/havp.config');
define('HVDEF_HAVP_XMLCONF', HVDEF_WORK_DIR . '/havp_conf.xml');
@@ -238,6 +240,9 @@ function havp_deinstall() {
// unlink_if_exists(HVDEF_AVUPD_SCRIPT);
// unlink_if_exists(HVDEF_CLAM_PID);
// unlink_if_exists(HVDEF_CLAM_SOCKET);
+ if (is_dir("/usr/local/share/examples/havp/")) {
+ mwexec("/bin/rm -rf /usr/local/share/examples/havp/");
+ }
umountRAMDisk();
}
/*
diff --git a/config/havp/havp.xml b/config/havp/havp.xml
index c99bf8c4..a1484a59 100644
--- a/config/havp/havp.xml
+++ b/config/havp/havp.xml
@@ -212,9 +212,11 @@
<option><value>es</value><name>Spanish</name></option>
<option><value>fr</value><name>French</name></option>
<option><value>it</value><name>Italian</name></option>
- <option><value>nf</value><name>Norf'k</name></option>
+ <option><value>nl</value><name>Dutch</name></option>
+ <option><value>pf</value><name>Norf'k</name></option>
<option><value>pl</value><name>Polish</name></option>
<option><value>ru</value><name>Russian</name></option>
+ <option><value>sv</value><name>Swedish</name></option>
</options>
</field>
<field>