git: 35e739b646c0 - main - net-mgmt/zabbix6-server: Fix mariadb opton

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

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

commit 35e739b646c05e5ee5823f9d411f3e6f0362b2a4
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-05-02 22:10:33 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-05-09 17:48:48 +0000

    net-mgmt/zabbix6-server: Fix mariadb opton
    
    Mariadb option failed to build properly.
    
    PR:             262438
    Fixes:          9d8cb8eb28c5e8f7be50841c27d54cb23db20db1
    MFH:            2022Q2
---
 net-mgmt/zabbix6-server/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/net-mgmt/zabbix6-server/Makefile b/net-mgmt/zabbix6-server/Makefile
index 0e0ada950900..56467ad7a0da 100644
--- a/net-mgmt/zabbix6-server/Makefile
+++ b/net-mgmt/zabbix6-server/Makefile
@@ -79,12 +79,16 @@ UNIXODBC_DESC=		Support for database checks via ODBC
 LIBXML2_DESC=		Support for libxml2 (required by monitoring VMware)
 
 OPTIONS_SINGLE=		DB SSL
-OPTIONS_SINGLE_DB?=	MYSQL PGSQL ORACLE
+OPTIONS_SINGLE_DB?=	MDB MYSQL PGSQL ORACLE
 OPTIONS_SINGLE_SSL=	OPENSSL GNUTLS
 
-MYSQL_CONFIGURE_WITH=	mysql
+MYSQL_CONFIGURE_ON=	--with-mysql
 MYSQL_USES+=		compiler:c11 mysql:80
 
+MDB_CONFIGURE_ON=	--with-mysql=${LOCALBASE}/bin/mysql_config
+MDB_USES+=		compiler:c11 mysql:106m
+MDB_DESC=		Mariadb 10.6 database support
+
 PGSQL_CONFIGURE_WITH=	postgresql
 PGSQL_USES+=		pgsql