summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo G. Baio (dbaio) <dbaio@bsd.com.br>2016-05-13 10:48:28 -0300
committerRenato Botelho <garga@FreeBSD.org>2016-07-18 11:00:58 -0300
commit981542feafce92f04a1220dce27c2da8fb5c2f51 (patch)
tree675f6b187783a6fa88de946ad22c4a15be1869c7
parent9b6d0cafbcb576f96380029d184219486801e5b0 (diff)
downloadFreeBSD-ports-981542feafce92f04a1220dce27c2da8fb5c2f51.zip
FreeBSD-ports-981542feafce92f04a1220dce27c2da8fb5c2f51.tar.gz
zabbix proxy/agent - rename a function used by both packages
(cherry picked from commit 781db785ed43e546fc5023ad89fe4460bd0c7a5e)
-rw-r--r--net-mgmt/pfSense-pkg-zabbix-agent/files/usr/local/pkg/zabbix-agent-lts.inc12
-rw-r--r--net-mgmt/pfSense-pkg-zabbix-proxy/files/usr/local/pkg/zabbix-proxy-lts.inc12
2 files changed, 12 insertions, 12 deletions
diff --git a/net-mgmt/pfSense-pkg-zabbix-agent/files/usr/local/pkg/zabbix-agent-lts.inc b/net-mgmt/pfSense-pkg-zabbix-agent/files/usr/local/pkg/zabbix-agent-lts.inc
index cfd1761..8f7e95a 100644
--- a/net-mgmt/pfSense-pkg-zabbix-agent/files/usr/local/pkg/zabbix-agent-lts.inc
+++ b/net-mgmt/pfSense-pkg-zabbix-agent/files/usr/local/pkg/zabbix-agent-lts.inc
@@ -141,7 +141,7 @@ function sync_package_zabbix_agent_lts() {
} else {
if ($zbagent_config['tlscafile'] != "none") {
$ca = lookup_ca($zbagent_config['tlscafile']);
- zabbix_add_keyfile($ca['crt'], "ca");
+ zabbix_agent_add_keyfile($ca['crt'], "ca");
$TlsCAfile = "TLSCAFile=/usr/local/etc/zabbix3/zabbix_agentd.ca";
}
}
@@ -149,17 +149,17 @@ function sync_package_zabbix_agent_lts() {
if ($zbagent_config['tlscrlfile'] != "none") {
$crl = lookup_crl($zbagent_config['tlscrlfile']);
crl_update($crl);
- zabbix_add_keyfile($crl['text'], "crl-verify");
+ zabbix_agent_add_keyfile($crl['text'], "crl-verify");
$TlsCRLfile = "TLSCRLFile=/usr/local/etc/zabbix3/zabbix_agentd.crl-verify";
}
if ($zbagent_config['tlscertfile'] != "none") {
$cert = lookup_cert($zbagent_config['tlscertfile']);
- zabbix_add_keyfile($cert['crt'], "cert");
+ zabbix_agent_add_keyfile($cert['crt'], "cert");
$TlsCERTfile = "TLSCertFile=/usr/local/etc/zabbix3/zabbix_agentd.cert";
- zabbix_add_keyfile($cert['prv'], "key");
+ zabbix_agent_add_keyfile($cert['prv'], "key");
$TlsKEYfile = "TLSKeyFile=/usr/local/etc/zabbix3/zabbix_agentd.key";
}
@@ -168,7 +168,7 @@ function sync_package_zabbix_agent_lts() {
}
if (! empty($zbagent_config['tlspskfile']) ) {
- zabbix_add_keyfile($zbagent_config['tlspskfile'], "psk");
+ zabbix_agent_add_keyfile($zbagent_config['tlspskfile'], "psk");
$TLSPSKFile = "TLSPSKFile=/usr/local/etc/zabbix3/zabbix_agentd.psk";
}
@@ -299,7 +299,7 @@ EOF;
}
// Based on openvpn_add_keyfile() function
-function zabbix_add_keyfile(& $data, $directive) {
+function zabbix_agent_add_keyfile(& $data, $directive) {
$fpath = "/usr/local/etc/zabbix3/zabbix_agentd.{$directive}";
diff --git a/net-mgmt/pfSense-pkg-zabbix-proxy/files/usr/local/pkg/zabbix-proxy-lts.inc b/net-mgmt/pfSense-pkg-zabbix-proxy/files/usr/local/pkg/zabbix-proxy-lts.inc
index 9bdb87b..8fd7c95 100644
--- a/net-mgmt/pfSense-pkg-zabbix-proxy/files/usr/local/pkg/zabbix-proxy-lts.inc
+++ b/net-mgmt/pfSense-pkg-zabbix-proxy/files/usr/local/pkg/zabbix-proxy-lts.inc
@@ -93,7 +93,7 @@ function sync_package_zabbix_proxy_lts() {
} else {
if ($zbproxy_config['tlscafile'] != "none") {
$ca = lookup_ca($zbproxy_config['tlscafile']);
- zabbix_add_keyfile($ca['crt'], "ca");
+ zabbix_proxy_add_keyfile($ca['crt'], "ca");
$TlsCAfile = "TLSCAFile=/usr/local/etc/zabbix3/zabbix_proxy.ca";
}
}
@@ -101,17 +101,17 @@ function sync_package_zabbix_proxy_lts() {
if ($zbproxy_config['tlscrlfile'] != "none") {
$crl = lookup_crl($zbproxy_config['tlscrlfile']);
crl_update($crl);
- zabbix_add_keyfile($crl['text'], "crl-verify");
+ zabbix_proxy_add_keyfile($crl['text'], "crl-verify");
$TlsCRLfile = "TLSCRLFile=/usr/local/etc/zabbix3/zabbix_proxy.crl-verify";
}
if ($zbproxy_config['tlscertfile'] != "none") {
$cert = lookup_cert($zbproxy_config['tlscertfile']);
- zabbix_add_keyfile($cert['crt'], "cert");
+ zabbix_proxy_add_keyfile($cert['crt'], "cert");
$TlsCERTfile = "TLSCertFile=/usr/local/etc/zabbix3/zabbix_proxy.cert";
- zabbix_add_keyfile($cert['prv'], "key");
+ zabbix_proxy_add_keyfile($cert['prv'], "key");
$TlsKEYfile = "TLSKeyFile=/usr/local/etc/zabbix3/zabbix_proxy.key";
}
@@ -120,7 +120,7 @@ function sync_package_zabbix_proxy_lts() {
}
if (! empty($zbproxy_config['tlspskfile']) ) {
- zabbix_add_keyfile($zbproxy_config['tlspskfile'], "psk");
+ zabbix_proxy_add_keyfile($zbproxy_config['tlspskfile'], "psk");
$TLSPSKFile = "TLSPSKFile=/usr/local/etc/zabbix3/zabbix_proxy.psk";
}
@@ -266,7 +266,7 @@ EOF;
}
// Based on openvpn_add_keyfile() function
-function zabbix_add_keyfile(& $data, $directive) {
+function zabbix_proxy_add_keyfile(& $data, $directive) {
$fpath = "/usr/local/etc/zabbix3/zabbix_proxy.{$directive}";
OpenPOWER on IntegriCloud