git: 52e78f89c4a5 - main - net-mgmt/zabbix5-server: Update to 5.0.32

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Tue, 07 Mar 2023 20:04:02 UTC
The branch main has been updated by otis:

URL: https://cgit.FreeBSD.org/ports/commit/?id=52e78f89c4a53786057d310cb2e9a717c0f62844

commit 52e78f89c4a53786057d310cb2e9a717c0f62844
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2023-03-07 18:38:21 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2023-03-07 20:03:45 +0000

    net-mgmt/zabbix5-server: Update to 5.0.32
    
    - Update to 5.0.32
    - Enable SSH by default
    - Make SNMP optional (retain default ON)
    - Move PORTSCOUT to more apropriate place
    
    Release notes: https://www.zabbix.com/rn/rn5.0.32
---
 net-mgmt/zabbix5-server/Makefile  | 20 +++++++++-----------
 net-mgmt/zabbix5-server/distinfo  |  6 +++---
 net-mgmt/zabbix5-server/pkg-plist |  2 ++
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/net-mgmt/zabbix5-server/Makefile b/net-mgmt/zabbix5-server/Makefile
index 1c09f79558b6..669dca6b103c 100644
--- a/net-mgmt/zabbix5-server/Makefile
+++ b/net-mgmt/zabbix5-server/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	zabbix5
-DISTVERSION=	5.0.31
+DISTVERSION=	5.0.32
 PORTREVISION?=	0
 CATEGORIES=	net-mgmt
 MASTER_SITES=	https://cdn.zabbix.com/zabbix/sources/stable/${DISTVERSION:R}/
@@ -17,6 +17,8 @@ LIB_DEPENDS=	libpcre.so:devel/pcre
 
 CONFLICTS_INSTALL=	zabbix[0-9][0-9]${PKGNAMESUFFIX} zabbix[0-46-9]${PKGNAMESUFFIX}
 
+PORTSCOUT=	limit:^5\.0\.
+
 ZABBIX_BUILD=	${PKGNAMESUFFIX:S/^-//}
 
 .if ${ZABBIX_BUILD} != "agent"
@@ -36,12 +38,10 @@ GROUPS=		zabbix
 PLIST_SUB=	PROXY="@comment "
 .else
 PLIST_SUB=	PROXY=""
-PLIST_FILES+=	bin/zabbix_proxy_js
 .endif
 
 .if ${ZABBIX_BUILD} == "server"
 PLIST_SUB+=	SERVER=""
-PLIST_FILES+=	bin/zabbix_js
 .else
 PLIST_SUB+=	SERVER="@comment "
 .endif
@@ -57,25 +57,20 @@ CONFIGURE_ARGS+=	--enable-${ZABBIX_BUILD} \
 			--with-iconv=${ICONV_PREFIX}
 
 .if ${ZABBIX_BUILD} != "agent" && ${ZABBIX_BUILD} != "java"
-LIB_DEPENDS+=	libnetsnmp.so:net-mgmt/net-snmp
-
 CPPFLAGS+=	-I${LOCALBASE}/include
 
-PORTSCOUT=	limit:^5\.0\.
-
 SUB_FILES=	pkg-message
 
-CONFIGURE_ARGS+=	--with-net-snmp
-
-OPTIONS_DEFINE=		IPV6 FPING CURL LDAP IPMI SSH NMAP LIBXML2 UNIXODBC
+OPTIONS_DEFINE=		IPV6 FPING CURL LDAP IPMI SNMP SSH NMAP LIBXML2 UNIXODBC
 
-OPTIONS_DEFAULT=	IPV6 FPING CURL LIBXML2 MYSQL OPENSSL UNIXODBC
+OPTIONS_DEFAULT=	IPV6 FPING CURL SNMP SSH LIBXML2 MYSQL OPENSSL UNIXODBC
 OPTIONS_SUB=		yes
 
 FPING_DESC=		Build/install fping for ping checks
 IPMI_DESC=		Support for IPMI checks
 LDAP_DESC=		Support for LDAP server checks
 NMAP_DESC=		Build/install nmap for o/s detection
+SNMP_DESC=		Support for SNMP checks
 SSH_DESC=		Support for SSH-based checks
 UNIXODBC_DESC=		Support for database checks via ODBC
 LIBXML2_DESC=		Support for libxml2 (required by monitoring VMware)
@@ -90,6 +85,9 @@ MYSQL_USES+=		compiler:c11 mysql
 PGSQL_CONFIGURE_WITH=	postgresql
 PGSQL_USES+=		pgsql
 
+SNMP_LIB_DEPENDS=	libnetsnmp.so:net-mgmt/net-snmp
+SNMP_CONFIGURE_WITH=	net-snmp
+
 SQLITE_CONFIGURE_WITH=	sqlite3
 SQLITE_USES+=		sqlite:3
 
diff --git a/net-mgmt/zabbix5-server/distinfo b/net-mgmt/zabbix5-server/distinfo
index a59f0dc33269..a544217b8c63 100644
--- a/net-mgmt/zabbix5-server/distinfo
+++ b/net-mgmt/zabbix5-server/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1675349395
-SHA256 (zabbix-5.0.31.tar.gz) = 6050e9827bbf41a22d4eb49eab72f2884efa8fe3f8d4d54e230cb1337c874c34
-SIZE (zabbix-5.0.31.tar.gz) = 21567566
+TIMESTAMP = 1678211177
+SHA256 (zabbix-5.0.32.tar.gz) = 5022da65604d214ea912440c7355779a06391d0620e98d50d50a3ca5cfb2ffd3
+SIZE (zabbix-5.0.32.tar.gz) = 21664895
diff --git a/net-mgmt/zabbix5-server/pkg-plist b/net-mgmt/zabbix5-server/pkg-plist
index 22904a2e47b0..3e92c72ac6df 100644
--- a/net-mgmt/zabbix5-server/pkg-plist
+++ b/net-mgmt/zabbix5-server/pkg-plist
@@ -14,7 +14,9 @@
 %%DATADIR%%/%%ZABBIX_BUILD%%/database/sqlite3/data.sql
 %%DATADIR%%/%%ZABBIX_BUILD%%/database/sqlite3/images.sql
 %%DATADIR%%/%%ZABBIX_BUILD%%/database/sqlite3/schema.sql
+%%PROXY%%bin/zabbix_proxy_js
 %%PROXY%%@dir %%ETCDIR%%/zabbix_proxy.conf.d
+%%SERVER%%bin/zabbix_js
 %%SERVER%%@dir %%ETCDIR%%/zabbix_server.conf.d
 %%SERVER%%@dir %%ETCDIR%%/zabbix/alertscripts
 man/man8/zabbix_%%ZABBIX_BUILD%%.8.gz