git: 2bd2c3470c7f - main - net-mgmt/zabbix7-java: Fix JAVA version

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Tue, 11 Feb 2025 16:33:59 UTC
The branch main has been updated by otis:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2bd2c3470c7f4b03e8ef0431537d0c4c2581b604

commit 2bd2c3470c7f4b03e8ef0431537d0c4c2581b604
Author:     Einar Bjarni Halldórsson <einar@isnic.is>
AuthorDate: 2025-02-11 16:16:32 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2025-02-11 16:18:47 +0000

    net-mgmt/zabbix7-java: Fix JAVA version
    
    Recent zabbix 7 java components requires OpenJDK 11 or newer
    
    PR:             284565
    Reported by:    Einar Bjarni Halldórsson <einar@isnic.is>
---
 net-mgmt/zabbix7-java/Makefile   | 2 +-
 net-mgmt/zabbix7-server/Makefile | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/net-mgmt/zabbix7-java/Makefile b/net-mgmt/zabbix7-java/Makefile
index 25d81cb33d09..f6a98e312c1c 100644
--- a/net-mgmt/zabbix7-java/Makefile
+++ b/net-mgmt/zabbix7-java/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	zabbix7
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 PKGNAMESUFFIX=	-java
 
diff --git a/net-mgmt/zabbix7-server/Makefile b/net-mgmt/zabbix7-server/Makefile
index e04ab75ce8d1..9ea386d7f457 100644
--- a/net-mgmt/zabbix7-server/Makefile
+++ b/net-mgmt/zabbix7-server/Makefile
@@ -168,6 +168,7 @@ GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
 
 .if ${ZABBIX_BUILD} == "java"
 USES+=         java
+JAVA_VERSION=	11+
 .endif
 
 .include <bsd.port.pre.mk>