<pre style='margin:0'>
Eric A. Borisch (eborisch) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/50db13c06e1de533d1e2249382fbed77708f43ba">https://github.com/macports/macports-ports/commit/50db13c06e1de533d1e2249382fbed77708f43ba</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 50db13c zabbix4: Add zabbix42 sub-ports.
</span>50db13c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 50db13c06e1de533d1e2249382fbed77708f43ba
</span>Author: Eric A. Borisch <eborisch@macports.org>
AuthorDate: Fri Aug 16 08:44:10 2019 -0500
<span style='display:block; white-space:pre;color:#404040;'> zabbix4: Add zabbix42 sub-ports.
</span>---
net/zabbix4/Portfile | 177 ++++++++++++++++++++++++++++++---------------------
1 file changed, 104 insertions(+), 73 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 0bf48ed..361c5de 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,6 @@ PortSystem 1.0
</span> PortGroup active_variants 1.1
name zabbix4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 4.0.11
</span> revision 0
categories net
maintainers {eborisch @eborisch} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -20,34 +19,65 @@ long_description Zabbix is the ultimate open source availability and \
</span> which are missing in other monitoring systems, even some \
of the best commercial ones.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+array set VERSIONS {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 4 4.0.11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 42 4.2.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set zver [regsub -all {[^\d]} ${subport} {}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version $VERSIONS(${zver})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> distname zabbix-${version}
livecheck.name zabbix
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex "Stable\/(4\.0\.\[0-9\]+)\/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> livecheck.url \
http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/
homepage http://www.zabbix.com/
master_sites \
sourceforge:project/zabbix/ZABBIX%20Latest%20Stable/${version} \
sourceforge:project/zabbix/ZABBIX%20Release%20Candidates/${version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-dist_subdir zabbix4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 4b752d23438cfea41f04878a1e6f4a039104c146 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 b0af25c31c622d14cb7780db5941d76579b9f9a6ee449613d847b0b505628409 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 17174772
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+dist_subdir zabbix${zver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {$zver == 4} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.regex "Stable\/(4\.0\.\[0-9\]+)\/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 4b752d23438cfea41f04878a1e6f4a039104c146 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 b0af25c31c622d14cb7780db5941d76579b9f9a6ee449613d847b0b505628409 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 17174772
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {$zver == 42} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.regex "Stable\/(4\.2\.\[0-9\]+)\/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 0c07b785840825ea05a7b1400331218d23862049 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 4dba94cc8c5f1d97b596e636ff9346c3bdea59ac04a97f1236a6d5e69d72ab8c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 18301157
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
patchfiles log_and_pid_locations.patch
universal_variant no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-subport zabbix4-agent {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-subport zabbix4-frontend {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport zabbix42 {conflicts zabbix4}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport zabbix4-agent {conflicts zabbix42-agent}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport zabbix42-agent {conflicts zabbix4-agent}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport zabbix4-frontend {conflicts zabbix42-frontend}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport zabbix42-frontend {conflicts zabbix4-frontend}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc isFlavor {desc subp} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[string first ${desc} ${subp}] >= 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
configure.args --bindir=${prefix}/bin/zabbix \
--sbindir=${prefix}/sbin/zabbix \
--libexecdir=${prefix}/libexec/zabbix \
--datadir=${prefix}/share/zabbix \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --sysconfdir=${prefix}/etc/zabbix4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --sysconfdir=${prefix}/etc/zabbix${zver} \
</span> --localstatedir=${prefix}/var/zabbix \
--with-gnutls=${prefix} \
--enable-ipv6 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -56,7 +86,7 @@ configure.args --bindir=${prefix}/bin/zabbix \
</span>
configure.ldflags-append -lresolv
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ${subport} ne "zabbix4-frontend" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![isFlavor frontend ${subport}]} {
</span> startupitem.create yes
depends_lib-append port:libiconv \
port:gnutls \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,24 +94,24 @@ if { ${subport} ne "zabbix4-frontend" } {
</span> port:libevent
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ${subport} eq "zabbix4-agent" } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- long_description-append "This port provides the local monitoring agent."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- conflicts zabbix2-agent zabbix3-agent
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.name zabbix4-agentd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[isFlavor agent ${subport}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description-append "\n * ${subport} provides a local monitoring agent."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts-append zabbix2-agent zabbix3-agent
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ startupitem.name zabbix${zver}-agentd
</span> startupitem.executable \
${prefix}/sbin/zabbix/zabbix_agentd \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -c ${prefix}/etc/zabbix4/zabbix_agentd.conf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -c ${prefix}/etc/zabbix${zver}/zabbix_agentd.conf
</span> startupitem.pidfile auto ${prefix}/var/run/zabbix/zabbix_agentd.pid
startupitem.logfile ${prefix}/var/log/zabbix/zabbix_agentd.launch
configure.args-append --enable-agent
destroot.keepdirs \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/zabbix4/zabbix_agentd.conf.d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/zabbix${zver}/zabbix_agentd.conf.d \
</span> ${destroot}${prefix}/var/run/zabbix \
${destroot}${prefix}/var/log/zabbix
<span style='display:block; white-space:pre;background:#ffe0e0;'>-} elseif { ${subport} eq "zabbix4-frontend" } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- long_description-append "This port provides the web (PHP) frontend."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {[isFlavor frontend ${subport}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description-append "\n * ${subport} provides the web (PHP) frontend."
</span> supported_archs noarch
depends_run-append port:apache2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -111,7 +141,7 @@ if { ${subport} eq "zabbix4-agent" } {
</span> destroot {}
} else {
long_description-append "This port provides the central server component."
<span style='display:block; white-space:pre;background:#ffe0e0;'>- conflicts zabbix zabbix2 zabbix3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts-append zabbix zabbix2 zabbix3
</span>
depends_lib-append port:curl \
port:OpenIPMI \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -131,7 +161,7 @@ if { ${subport} eq "zabbix4-agent" } {
</span> --with-libxml2=${prefix}/bin/xml2-config\
--with-zlib=${prefix}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- startupitem.name zabbix4-server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ startupitem.name zabbix${zver}-server
</span> startupitem.start ${prefix}/sbin/zabbix/zabbix_server
set pidfile ${prefix}/var/run/zabbix/zabbix_server.pid
# Gracefully wait up to two minutes for zabbix to shut down / clean up
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -142,8 +172,8 @@ if { ${subport} eq "zabbix4-agent" } {
</span> startupitem.netchange yes
destroot.keepdirs \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/zabbix4/zabbix_server.conf.d \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/var/run/zabbix4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/zabbix${zver}/zabbix_server.conf.d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/run/zabbix${zver} \
</span> ${destroot}${prefix}/var/log/zabbix
variant full_server description {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -151,13 +181,13 @@ if { ${subport} eq "zabbix4-agent" } {
</span> } {}
variant frontend description {Include frontend PHP files / deps} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_run-append port:zabbix4-frontend
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append port:zabbix${zver}-frontend
</span> }
default_variants-append +frontend
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ${subport} ne "zabbix4-agent" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![isFlavor agent ${subport}]} {
</span> # Logic for database backends. Needed for -frontend and -server
# Items are "display name" "port name" "config arg" "php interface"
array set DBLIST {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -201,7 +231,7 @@ if { ${subport} ne "zabbix4-agent" } {
</span> set ::MYSQL_MODE [string equal [lindex ${prms} 3] mysql]
configure.args-append --with-[lindex ${prms} 2]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if { \"${subport}\" eq {zabbix4-frontend} } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[isFlavor frontend ${subport}]} {
</span> if {[variant_isset php56]} {
depends_run-append \
port:php56-[lindex ${prms} 3]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -228,7 +258,7 @@ if { ${subport} ne "zabbix4-agent" } {
</span> }
} else {
depends_lib-append port:[lindex ${prms} 1]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- require_active_variants port:zabbix4-agent ${dbitem}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants port:zabbix${zver}-agent ${dbitem}
</span> }
if {[string compare ${dbitem} sqlite3] && \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -255,7 +285,7 @@ if { ${subport} ne "zabbix4-agent" } {
</span> }
post-extract {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if { ${name} == ${subport} } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[string first - ${subport}] == -1} {
</span> if { ${MYSQL_MODE} == 1 &&
[variant_isset full_server] } {
set repstr "s|# DBSocket=|"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -271,24 +301,24 @@ post-extract {
</span> post-patch {
reinplace "s|%%PREFIX%%|${prefix}|" \
conf/zabbix_agentd.conf conf/zabbix_server.conf
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|/usr/local/etc|${prefix}/etc/zabbix4|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/usr/local/etc|${prefix}/etc/zabbix${zver}|" \
</span> conf/zabbix_agentd.conf conf/zabbix_server.conf
}
add_users zabbix group=zabbix
post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if { ${subport} eq "zabbix4-agent" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[isFlavor agent ${subport}]} {
</span> ####### AGENT #######
# Copy sample agent .conf files
xinstall -m 755 -d \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/zabbix4/zabbix_agentd.conf.d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/zabbix${zver}/zabbix_agentd.conf.d
</span> xinstall -m 755 ${worksrcpath}/conf/zabbix_agentd.conf \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/zabbix4/zabbix_agentd.conf.sample
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/zabbix${zver}/zabbix_agentd.conf.sample
</span>
# Don't overwrite user settings on each install
<span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${destroot}${prefix}/etc/zabbix4/zabbix_agentd.conf
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif { ${subport} eq "zabbix4-frontend" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${destroot}${prefix}/etc/zabbix${zver}/zabbix_agentd.conf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[isFlavor frontend ${subport}]} {
</span> # Copy the front end files
set fedir ${destroot}${prefix}/share/zabbix/frontends
file mkdir ${fedir}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -311,11 +341,11 @@ post-destroot {
</span> ####### SERVER #######
# Copy sample server and agent .conf files
xinstall -m 755 -d \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/zabbix4/zabbix_server.conf.d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/zabbix${zver}/zabbix_server.conf.d
</span>
# Don't overwrite user settings on each install
<span style='display:block; white-space:pre;background:#ffe0e0;'>- move ${destroot}${prefix}/etc/zabbix4/zabbix_server.conf \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/etc/zabbix4/zabbix_server.conf.sample
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/etc/zabbix${zver}/zabbix_server.conf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/zabbix${zver}/zabbix_server.conf.sample
</span>
# Copy database data and schemas
xinstall -m 755 -d ${destroot}${prefix}/share/zabbix/scripts
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -328,8 +358,8 @@ post-destroot {
</span> # ${destroot}${prefix}/share/zabbix/
# Set permissions for etc (protect passwords)
<span style='display:block; white-space:pre;background:#ffe0e0;'>- system "chmod ug+rwX,o-rwx ${destroot}${prefix}/etc/zabbix4/*"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "chown -R zabbix:zabbix ${destroot}${prefix}/etc/zabbix4"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "chmod ug+rwX,o-rwx ${destroot}${prefix}/etc/zabbix${zver}/*"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "chown -R zabbix:zabbix ${destroot}${prefix}/etc/zabbix${zver}"
</span> }
foreach dname {run log} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -339,12 +369,12 @@ post-destroot {
</span>
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ${subport} eq "zabbix4-agent" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[isFlavor agent ${subport}]} {
</span> notes "
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#### ####
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#### ZABBIX4 agent installation section ####
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+####
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#### ZABBIX${zver} agent installation section
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-1) Edit the sample .conf file ${prefix}/etc/zabbix4/zabbix_agentd.conf.sample
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+1) Edit the sample .conf file ${prefix}/etc/zabbix${zver}/zabbix_agentd.conf.sample
</span> (rename & omit .sample)
Set the following variable to the ip address of your ZABBIX server to\
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -355,15 +385,15 @@ if { ${subport} eq "zabbix4-agent" } {
</span>
2) Set zabbix_agentd to run at system boot
<span style='display:block; white-space:pre;background:#ffe0e0;'>- sudo port load zabbix4-agent
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo port load zabbix${zver}-agent
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#### End ZABBIX4 agent installation section ####
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#### ####
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#### End ZABBIX${zver} agent installation section ####
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+####
</span> "
<span style='display:block; white-space:pre;background:#ffe0e0;'>-} elseif { ${subport} eq "zabbix4-frontend" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {[isFlavor frontend ${subport}]} {
</span> notes "
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#### ####
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#### Begin ZABBIX4 frontend installastion section ####
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+####
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#### Begin ZABBIX${zver} frontend installastion section ####
</span>
1) Set a symbolic link in your Apache document root pointing to the PHP
frontend files
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -389,13 +419,14 @@ if { ${subport} eq "zabbix4-agent" } {
</span>
4) Read the fine manual at http://www.zabbix.com/documentation/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#### End ZABBIX4 frontend installation section ####
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#### ####
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#### End ZABBIX${zver} frontend installation section ####
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+####
</span> "
} else {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set shortver [regsub {\.\d+$} ${version} {}]
</span> notes "
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#### ####
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#### Begin ZABBIX4 local server installation section ####
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+####
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#### Begin ZABBIX${zver} local server installation section ####
</span>
(Installing with +full_server will add all of the dependants; configuration
will still be required.)
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -409,13 +440,13 @@ if { ${subport} eq "zabbix4-agent" } {
</span>
Follow the directions at :
<span style='display:block; white-space:pre;background:#ffe0e0;'>- https://www.zabbix.com/documentation/4.0/manual/appendix/install/db_scripts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ https://www.zabbix.com/documentation/${shortver}/manual/appendix/install/db_scripts
</span>
The *.sql files it refers to are in ${prefix}/share/zabbix/scripts/
** NOTE THAT THESE ARE FOR YOUR SELECTED DATABASE VARIANT!!! **
<span style='display:block; white-space:pre;background:#ffe0e0;'>-3) Edit the sample .conf file ${prefix}/etc/zabbix4/zabbix_server.conf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+3) Edit the sample .conf file ${prefix}/etc/zabbix${zver}/zabbix_server.conf
</span> (rename & omit .sample)
Modify these variables at the very least:
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -429,33 +460,33 @@ if { ${subport} eq "zabbix4-agent" } {
</span>
4) Set zabbix_server to run at system boot (also starts it immediately):
<span style='display:block; white-space:pre;background:#ffe0e0;'>- sudo port load zabbix4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo port load zabbix${zver}
</span>
5) Read the fine manual at http://www.zabbix.com/documentation/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#### End ZABBIX4 local server installation section ####
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#### End ZABBIX${zver} local server installation section ####
</span> #### ####
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<span style='display:block; white-space:pre;background:#ffe0e0;'>-!! ZABBIX3 -> ZABBIX4 Server Upgrade process !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!! ZABBIX${zver} Server Version Upgrade process
</span> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<span style='display:block; white-space:pre;background:#ffe0e0;'>-!! 0) Be sure to use 'sudo port unload zabbix3' to stop the background !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! server before deactivating zabbix3. !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! 1) BACK UP YOUR DATABASE !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! 2) Create/edit ${prefix}/etc/zabbix4/zabbix_server.conf !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! zabbix_server.conf.sample is available for reference. !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! There are new features to consider. !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! ** NOTE conf dir is etc/zabbix4 ** !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! 3) 'sudo port load zabbix4' after installing. !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! For complete upgrade directions, please see: !!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-!! http://www.zabbix.com/documentation/4.0/manual/installation/upgrade !!
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!! 0) Be sure to use 'sudo port unload zabbixN' to stop the background
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!! server before deactivating zabbixN. (Whatever version you are running.)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!!
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!! 1) BACK UP YOUR DATABASE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!!
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!! 2) Create/edit ${prefix}/etc/zabbix${zver}/zabbix_server.conf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!! zabbix_server.conf.sample is available for reference.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!! There are new features to consider.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!! ** NOTE conf dir is etc/zabbix${zver} **
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!!
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!! 3) 'sudo port load zabbix${zver}' after installing.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!!
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!! For complete upgrade directions, please see:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!! http://www.zabbix.com/documentation/${shortver}/manual/installation/upgrade
</span> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
</pre><pre style='margin:0'>
</pre>