git: a5baceeb886d - main - net-mgmt/zabbix6-java: Fix JAVA version

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

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

commit a5baceeb886d83daf03e225a78b184619c393772
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2025-02-11 16:22:20 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2025-02-11 16:22:20 +0000

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

diff --git a/net-mgmt/zabbix6-java/Makefile b/net-mgmt/zabbix6-java/Makefile
index 056fae790cb3..9144d14ebd75 100644
--- a/net-mgmt/zabbix6-java/Makefile
+++ b/net-mgmt/zabbix6-java/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	zabbix6
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 PKGNAMESUFFIX=	-java
 
diff --git a/net-mgmt/zabbix6-server/Makefile b/net-mgmt/zabbix6-server/Makefile
index 91f52521cf63..c32e177b305a 100644
--- a/net-mgmt/zabbix6-server/Makefile
+++ b/net-mgmt/zabbix6-server/Makefile
@@ -169,6 +169,7 @@ GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
 
 .if ${ZABBIX_BUILD} == "java"
 USES+=         java
+JAVA_VERSION=	11+
 .endif
 
 .include <bsd.port.pre.mk>