git: 8ae553cadb16 - main - net-mgmt/zabbix6-server: A don't override DEFAULT_VERSIONS= option

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 09 May 2022 22:12:25 UTC
The branch main has been updated by cy:

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

commit 8ae553cadb16129ea48c2de8e912254804e39224
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-05-09 22:01:59 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-05-09 22:12:18 +0000

    net-mgmt/zabbix6-server: A don't override DEFAULT_VERSIONS= option
    
    Some DIY poudriere users prefer to specify $DEFAULT_VERSIONS in their
    make.conf. Such users should be aware that Zabbix 6 supports only
    mysql 8.0 and mariadb 10.5 and 10.6. (Though some have made it to work
    with mysql 5.7 when they ignore the warning message.) Provide these users
    with an option to remove the default allowing them to "responsibly"
    specify the version in their poudriere make.conf.
    
    Reported by:    otis, egresh@egresh.sk
    Tested by:      egresh@egresh.sk
---
 net-mgmt/zabbix6-server/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/net-mgmt/zabbix6-server/Makefile b/net-mgmt/zabbix6-server/Makefile
index bc1e5df2b6b3..866fca404884 100644
--- a/net-mgmt/zabbix6-server/Makefile
+++ b/net-mgmt/zabbix6-server/Makefile
@@ -78,14 +78,18 @@ SSH_DESC=		Support for SSH-based checks
 UNIXODBC_DESC=		Support for database checks via ODBC
 LIBXML2_DESC=		Support for libxml2 (required by monitoring VMware)
 MYSQL_DESC=		MySQL 8.0 database support
+MYSQLDV_DESC=		MYSQL DEFAULT_VERSIONS= (poudriere)
 
 OPTIONS_SINGLE=		DB SSL
-OPTIONS_SINGLE_DB?=	MDB5 MDB6 MYSQL PGSQL ORACLE
+OPTIONS_SINGLE_DB?=	MDB5 MDB6 MYSQL MYSQLDV PGSQL ORACLE
 OPTIONS_SINGLE_SSL=	OPENSSL GNUTLS
 
 MYSQL_CONFIGURE_ON=	--with-mysql
 MYSQL_USES+=		compiler:c11 mysql:80
 
+MYSQLDV_CONFIGURE_ON=	--with-mysql
+MYSQLDV_USES+=		compiler:c11 mysql
+
 MDB5_CONFIGURE_ON=	--with-mysql=${LOCALBASE}/bin/mysql_config
 MDB5_USES+=		compiler:c11 mysql:105m
 MDB5_DESC=		Mariadb 10.5 database support