<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9fd51dbb3611a5468c844fae5422acc345b320f4">https://github.com/macports/macports-ports/commit/9fd51dbb3611a5468c844fae5422acc345b320f4</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 9fd51db zabbix4: Update to 4.0.7. (#4149)
</span>9fd51db is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 9fd51dbb3611a5468c844fae5422acc345b320f4
</span>Author: Eric A. Borisch <eborisch@gmail.com>
AuthorDate: Tue Apr 23 21:56:28 2019 -0500
<span style='display:block; white-space:pre;color:#404040;'> zabbix4: Update to 4.0.7. (#4149)
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Includes patch for an ipmi bug that hasn't been fixed yet (ZBX-15935) in
</span><span style='display:block; white-space:pre;color:#404040;'> the latest release.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Added nls variant to -frontend; significantly reduces size when not
</span><span style='display:block; white-space:pre;color:#404040;'> needed.
</span>---
net/zabbix4/Portfile | 35 +++++++++++++++++++++++++----------
net/zabbix4/files/ZBX-15935.patch | 13 +++++++++++++
2 files changed, 38 insertions(+), 10 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/zabbix4/Portfile b/net/zabbix4/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index af4713b..de8536d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/zabbix4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/zabbix4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,7 +3,7 @@ PortSystem 1.0
</span> PortGroup active_variants 1.1
name zabbix4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 4.0.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 4.0.7
</span> revision 0
categories net
maintainers {eborisch @eborisch} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,7 +22,7 @@ long_description Zabbix is the ultimate open source availability and \
</span>
distname zabbix-${version}
livecheck.name zabbix
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex "Stable\/(4\[0-9.\]+)\/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex "Stable\/(4\.0\.\[0-9\]+)\/"
</span> livecheck.url \
http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/
homepage http://www.zabbix.com/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,11 +32,12 @@ master_sites \
</span> dist_subdir zabbix4
checksums \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 f112fc35d24b169cd0c3c7691df7b04487c7bb1b \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 55e7e218e170dd085ae1d642d4e90dc3576011fa3ce72407425cb73003c31906 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 17098529
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 6fa1b9eb6e4294f40c26348c9dd9ab8aa3296d79 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 c2eadece82865f281015dcd51fda8534d98ff3d80ded76b81368e528b87309e3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 17175571
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles log_and_pid_locations.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles log_and_pid_locations.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ZBX-15935.patch
</span>
universal_variant no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -85,6 +86,9 @@ if { ${subport} eq "zabbix4-agent" } {
</span> supported_archs noarch
depends_run-append port:apache2
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant nls description "Include translation files." {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> foreach php {php56 php70 php71} {
variant ${php} description "Use ${php}" "
depends_run-append port:${php} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -275,9 +279,20 @@ post-destroot {
</span> delete ${destroot}${prefix}/etc/zabbix4/zabbix_agentd.conf
} elseif { ${subport} eq "zabbix4-frontend" } {
# Copy the front end files
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file mkdir ${destroot}${prefix}/share/zabbix/frontends/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file copy ${worksrcpath}/frontends/php/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/share/zabbix/frontends/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set fedir ${destroot}${prefix}/share/zabbix/frontends
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${fedir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${worksrcpath}/frontends/php/ ${fedir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${fedir} "find . -type f -name *.po -delete"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset nls]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${fedir}/php/locale \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "find . -type f -name *.mo ! -path */en_US/* -delete"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "/display/s/true/false/" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${fedir}/php/include/locales.inc.php
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "/en_US/s/false/true/" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${fedir}/php/include/locales.inc.php
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
# Set permissions for etc (protect passwords) and the frontend
system "chown -R www:www ${destroot}${prefix}/share/zabbix/frontends/*"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -334,7 +349,7 @@ if { ${subport} eq "zabbix4-agent" } {
</span> #### End ZABBIX4 agent installation section ####
#### ####
"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-} elseif { ${subport} eq "zabbix4-agent" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif { ${subport} eq "zabbix4-frontend" } {
</span> notes "
#### ####
#### Begin ZABBIX4 frontend installastion section ####
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/zabbix4/files/ZBX-15935.patch b/net/zabbix4/files/ZBX-15935.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..c015834
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/zabbix4/files/ZBX-15935.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/zabbix_server/ipmi/checks_ipmi.c.orig 2019-04-19 09:57:15.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/zabbix_server/ipmi/checks_ipmi.c 2019-04-19 09:58:40.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -783,6 +783,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ start_time = zbx_time();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ // Newer OpenIPMI updates tv with remaining timeout, but this code relies
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ // on it *not* doing this. Get the same effect by re-setting the timeout.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ tv.tv_sec = timeout;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ tv.tv_usec = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ res = os_hnd->perform_one_op(os_hnd, &tv);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* perform_one_op() returns 0 on success, errno on failure (timeout means success) */
</span></pre><pre style='margin:0'>
</pre>