# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup active_variants 1.1
maintainers {eborisch @eborisch} openmaintainer
license_noconflict openssl
description An open source application and network monitor
long_description Zabbix is the ultimate open source availability and \
performance monitoring solution. Zabbix offers advanced \
monitoring, alerting, and visualization features today \
which are missing in other monitoring systems, even some \
of the best commercial ones.
set zver [regsub -all {[^\d]} ${subport} {}]
version $VERSIONS(${zver})
distname zabbix-${version}
http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/
homepage http://www.zabbix.com/
sourceforge:project/zabbix/ZABBIX%20Latest%20Stable/${version} \
sourceforge:project/zabbix/ZABBIX%20Release%20Candidates/${version}
dist_subdir zabbix${zver}
livecheck.regex "Stable\/(4\.0\.\[0-9\]+)\/"
rmd160 d40e10ec91ec75f426844ad74e9eb2ad5a7f9990 \
sha256 5c5e728a6f2903e20aea5fdd67a14099630725eba7b1c6628f92fd0c3efd8bca \
livecheck.regex "Stable\/(4\.2\.\[0-9\]+)\/"
rmd160 2c9a17a673199d337cc819d411940362ac488018 \
sha256 646b1f29a768e3123a00a9afadf382b4d0dfd54e20fb31023f0d6da066da0864 \
patchfiles log_and_pid_locations.patch
subport zabbix42 {conflicts zabbix4}
subport zabbix4-agent {conflicts zabbix42-agent}
subport zabbix42-agent {conflicts zabbix4-agent}
subport zabbix4-frontend {conflicts zabbix42-frontend}
subport zabbix42-frontend {conflicts zabbix4-frontend}
proc isFlavor {desc subp} {
if {[string first ${desc} ${subp}] >= 0} {
configure.args --bindir=${prefix}/bin/zabbix \
--sbindir=${prefix}/sbin/zabbix \
--libexecdir=${prefix}/libexec/zabbix \
--datadir=${prefix}/share/zabbix \
--sysconfdir=${prefix}/etc/zabbix${zver} \
--localstatedir=${prefix}/var/zabbix \
--with-gnutls=${prefix} \
--with-libevent=${prefix} \
configure.ldflags-append -lresolv
if {![isFlavor frontend ${subport}]} {
depends_lib-append port:libiconv \