git: 92a030dffd4f - main - databases/p5-DBD-mysql: Fix for MariaDB users

From: Florian Smeets <flo_at_FreeBSD.org>
Date: Sun, 07 Apr 2024 09:36:46 UTC
The branch main has been updated by flo:

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

commit 92a030dffd4fd7c3f5abdd7a85b16086da294fe1
Author:     Florian Smeets <flo@FreeBSD.org>
AuthorDate: 2024-04-06 23:32:10 +0000
Commit:     Florian Smeets <flo@FreeBSD.org>
CommitDate: 2024-04-07 09:36:13 +0000

    databases/p5-DBD-mysql: Fix for MariaDB users
    
    Add a new variable DBD_MYSQL, use that in *_DEPENDS and add mysql to USES
    where required. DBD_MYSQL will automatically set the correct DBD dependency.
    
    In cd16748194e2 databases/p5-DBD-mysql was updated to 5.x, in 5.x the
    support for MariaDB was removed and only MySQL >= 8.0 is supported.
    
    In the 4.x releases MariaDB is still supported, according to upstream 4.x
    will still be supported for a while [1], so use that for now when we detect
    that MYSQL_FLAVOUR is set to mariadb. databases/p5-DBD-mysql4 was added in
    d95f49cb3b54.
    
    DBD:MariaDB would be another alternative, but migrating to it might need
    more analysis than just staying with the 4.x releases of p5-DBD-mysql. This
    thread on the amavis-users mailing list has a very good summary [2] from
    the author of DBD:MariaDB.
    
    This includes ideas and suggestions from vvd and mat. Thanks!
    
    [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277889#c17
    [2] https://lists.amavis.org/pipermail/amavis-users/2024-March/006823.html
    
    PR:             275100, 277889
    Reviewed by:    vvd, mat
    Fixes:  cd16748194e2
    Differential Revision: https://reviews.freebsd.org/D44662
---
 Mk/Uses/mysql.mk                           | 9 +++++++++
 comms/atslog/Makefile                      | 6 +++---
 databases/innotop/Makefile                 | 3 ++-
 databases/mtop/Makefile                    | 6 +++---
 databases/mysqlreport/Makefile             | 6 +++---
 databases/mytop/Makefile                   | 5 +++--
 databases/p5-Class-DBI-mysql/Makefile      | 6 +++---
 databases/p5-DBIx-MySQLSequence/Makefile   | 8 ++++----
 databases/p5-DBIx-TableHash/Makefile       | 6 +++---
 databases/p5-MySQL-Diff/Makefile           | 5 +++--
 databases/p5-Test-mysqld/Makefile          | 5 +++--
 databases/p5-mysql-genocide/Makefile       | 6 +++---
 databases/percona-toolkit/Makefile         | 5 +++--
 deskutils/note/Makefile                    | 4 +++-
 devel/bugzilla44/Makefile                  | 4 ++--
 devel/bugzilla50/Makefile                  | 4 ++--
 mail/assp/Makefile                         | 5 +++--
 mail/exilog/Makefile                       | 4 ++--
 mail/opendmarc/Makefile                    | 6 +++---
 mail/policyd2/Makefile                     | 5 +++--
 mail/ratelimit-policyd/Makefile            | 5 +++--
 mail/spamassassin-devel/Makefile           | 3 ++-
 mail/spamassassin/Makefile                 | 4 +++-
 mail/sqlgrey/Makefile                      | 5 +++--
 mail/sympa/Makefile                        | 5 +++--
 multimedia/mythtv/Makefile                 | 6 ++++--
 multimedia/zoneminder/Makefile             | 4 ++--
 net-mgmt/check_mysql_health/Makefile       | 6 +++---
 net-mgmt/mysql-snmp/Makefile               | 6 +++---
 net-mgmt/nagios-check_mysql_slave/Makefile | 6 +++---
 net-mgmt/netdot/Makefile                   | 4 ++--
 net-mgmt/ocsinventory-server/Makefile      | 3 ++-
 net-mgmt/pandorafms_server/Makefile        | 6 +++---
 net-mgmt/rackmonkey/Makefile               | 4 ++--
 net/p5-Net-Google-SafeBrowsing2/Makefile   | 7 ++++---
 net/prosearch/Makefile                     | 4 ++--
 net/pwhois/Makefile                        | 3 ++-
 net/radiator/Makefile                      | 4 +++-
 net/rtg/Makefile                           | 4 ++--
 security/amavisd-new/Makefile              | 5 +++--
 security/maia/Makefile                     | 6 +++---
 security/p5-openxpki/Makefile              | 1 +
 security/p5-openxpki/files/pkg-message.in  | 2 +-
 sysutils/p5-MogileFS-Server/Makefile       | 5 +++--
 sysutils/watchmen/Makefile                 | 5 ++++-
 textproc/p5-Hailo/Makefile                 | 4 +++-
 www/interchange/Makefile                   | 4 +++-
 www/ljdeps/Makefile                        | 6 +++---
 www/otrs/Makefile                          | 5 +++--
 www/rt44/Makefile                          | 2 ++
 www/rt44/Makefile.cpan                     | 2 +-
 www/rt50/Makefile                          | 2 ++
 www/rt50/Makefile.cpan                     | 2 +-
 www/squid/Makefile                         | 1 +
 www/squid/files/pkg-message.in             | 3 ++-
 55 files changed, 150 insertions(+), 102 deletions(-)

diff --git a/Mk/Uses/mysql.mk b/Mk/Uses/mysql.mk
index 36d6ce454f1c..cf5840131744 100644
--- a/Mk/Uses/mysql.mk
+++ b/Mk/Uses/mysql.mk
@@ -19,6 +19,9 @@
 # MYSQL_VER
 #		Detected MySQL version.
 #
+# DBD_MYSQL
+#		Set compatible p5-DBD-mysql version
+#
 # MAINTAINER:	ports@FreeBSD.org
 
 .if !defined(_INCLUDE_USES_MYSQL_MK)
@@ -142,4 +145,10 @@ LIB_DEPENDS+=	${_MYSQL_SHLIB}.so.${MYSQL${MYSQL_VER}_LIBVER}:${_MYSQL_CLIENT}
 IGNORE=		cannot install: unknown MySQL version: ${MYSQL_VER}
 .  endif # Check for correct libs
 
+.  if ${MYSQL_FLAVOUR} == mariadb
+DBD_MYSQL=	p5-DBD-mysql4>=0:databases/p5-DBD-mysql4
+.  else
+DBD_MYSQL=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+.  endif
+
 .endif
diff --git a/comms/atslog/Makefile b/comms/atslog/Makefile
index 243324ef36e7..a442dffef7e3 100644
--- a/comms/atslog/Makefile
+++ b/comms/atslog/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	atslog
 PORTVERSION=	2.1.1
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	comms
 MASTER_SITES=	BERLIOS
 
@@ -35,8 +35,8 @@ WWW_DESC=	Install web interface
 WWWGD_DESC=	Graphic reports
 
 MYSQL_USES=		mysql
-MYSQL_BUILD_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
-MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+MYSQL_BUILD_DEPENDS=	${DBD_MYSQL}
+MYSQL_RUN_DEPENDS=	${DBD_MYSQL}
 
 PGSQL_USES=		pgsql
 PGSQL_BUILD_DEPENDS=	p5-DBD-Pg>=0:databases/p5-DBD-Pg
diff --git a/databases/innotop/Makefile b/databases/innotop/Makefile
index a0cd61da780d..3baf8a40e885 100644
--- a/databases/innotop/Makefile
+++ b/databases/innotop/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	innotop
 PORTVERSION=	1.13.0
+PORTREVISION=	1
 DISTVERSIONPREFIX=	v
 CATEGORIES=	databases
 
@@ -10,7 +11,7 @@ WWW=		https://github.com/innotop/innotop
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql \
+BUILD_DEPENDS=	${DBD_MYSQL} \
 		p5-DBI>=1.46:databases/p5-DBI \
 		p5-Term-ReadKey>=2.10:devel/p5-Term-ReadKey \
 		p5-Time-HiRes>0:devel/p5-Time-HiRes \
diff --git a/databases/mtop/Makefile b/databases/mtop/Makefile
index 7bb878920f81..b6f9333e4348 100644
--- a/databases/mtop/Makefile
+++ b/databases/mtop/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mtop
 PORTVERSION=	0.6.6
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	databases
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION}
 
@@ -12,11 +12,11 @@ LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	p5-Curses>=0:devel/p5-Curses \
-		p5-DBD-mysql>=0:databases/p5-DBD-mysql
+		${DBD_MYSQL}
 RUN_DEPENDS:=	${BUILD_DEPENDS}
 
 NO_ARCH=	yes
-USES=		perl5
+USES=		mysql perl5
 USE_PERL5=	configure
 
 post-patch:
diff --git a/databases/mysqlreport/Makefile b/databases/mysqlreport/Makefile
index 15bba81d2698..86f6915797ca 100644
--- a/databases/mysqlreport/Makefile
+++ b/databases/mysqlreport/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mysqlreport
 PORTVERSION=	3.5
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	databases
 
 MAINTAINER=	ports@FreeBSD.org
@@ -10,13 +10,13 @@ WWW=		https://hackmysql.com/mysqlreport
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql \
+RUN_DEPENDS=	${DBD_MYSQL} \
 		p5-DBI>=0:databases/p5-DBI \
 		p5-Term-ReadKey>=0:devel/p5-Term-ReadKey
 
 NO_ARCH=	yes
 NO_BUILD=	yes
-USES=		perl5 shebangfix
+USES=		mysql perl5 shebangfix
 WRKSRC_SUBDIR=	${PORTNAME}
 
 PLIST_FILES=	bin/mysqlreport
diff --git a/databases/mytop/Makefile b/databases/mytop/Makefile
index 034c056942fd..faee6e334d48 100644
--- a/databases/mytop/Makefile
+++ b/databases/mytop/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mytop
 PORTVERSION=	1.7
+PORTREVISION=	1
 CATEGORIES=	databases
 
 MAINTAINER=	ports@FreeBSD.org
@@ -8,7 +9,7 @@ WWW=		https://jeremy.zawodny.com/mysql/mytop/
 
 LICENSE=	GPLv2
 
-RUN_DEPENDS=	p5-DBD-mysql>1.0:databases/p5-DBD-mysql \
+RUN_DEPENDS=	${DBD_MYSQL} \
 		p5-DBI>=1.13:databases/p5-DBI \
 		p5-Term-ReadKey>=2.10:devel/p5-Term-ReadKey
 
@@ -18,7 +19,7 @@ GH_TAGNAME=	437f2ef
 
 NO_ARCH=	yes
 
-USES+=		perl5
+USES+=		mysql perl5
 USE_PERL5=	configure
 
 PLIST_FILES=	bin/mytop \
diff --git a/databases/p5-Class-DBI-mysql/Makefile b/databases/p5-Class-DBI-mysql/Makefile
index 0711ab8fc1ac..81cb5f360027 100644
--- a/databases/p5-Class-DBI-mysql/Makefile
+++ b/databases/p5-Class-DBI-mysql/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	Class-DBI-mysql
 PORTVERSION=	1.00
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -11,9 +11,9 @@ WWW=		https://metacpan.org/release/Class-DBI-mysql
 
 BUILD_DEPENDS=	${RUN_DEPENDS}
 RUN_DEPENDS=	p5-Class-DBI>=0:databases/p5-Class-DBI \
-		p5-DBD-mysql>=0:databases/p5-DBD-mysql
+		${DBD_MYSQL}
 
-USES=		perl5
+USES=		mysql perl5
 USE_PERL5=	configure
 
 .include <bsd.port.mk>
diff --git a/databases/p5-DBIx-MySQLSequence/Makefile b/databases/p5-DBIx-MySQLSequence/Makefile
index 2c726034da4e..b120bb8f6f28 100644
--- a/databases/p5-DBIx-MySQLSequence/Makefile
+++ b/databases/p5-DBIx-MySQLSequence/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	DBIx-MySQLSequence
 PORTVERSION=	1.04
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -9,14 +9,14 @@ MAINTAINER=	perl@FreeBSD.org
 COMMENT=	Proper and correct (emulated) sequence support for MySQL
 WWW=		https://metacpan.org/release/DBIx-MySQLSequence
 
-BUILD_DEPENDS=	p5-DBD-mysql>0:databases/p5-DBD-mysql \
+BUILD_DEPENDS=	${DBD_MYSQL} \
 		p5-DBI>0:databases/p5-DBI \
 		p5-Params-Util>=0.26:devel/p5-Params-Util
-RUN_DEPENDS=	p5-DBD-mysql>0:databases/p5-DBD-mysql \
+RUN_DEPENDS=	${DBD_MYSQL} \
 		p5-DBI>0:databases/p5-DBI \
 		p5-Params-Util>=0.26:devel/p5-Params-Util
 
-USES=		perl5
+USES=		mysql perl5
 USE_PERL5=	configure
 
 post-patch:
diff --git a/databases/p5-DBIx-TableHash/Makefile b/databases/p5-DBIx-TableHash/Makefile
index 92a23b73d85b..9cf9567deeb7 100644
--- a/databases/p5-DBIx-TableHash/Makefile
+++ b/databases/p5-DBIx-TableHash/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	DBIx-TableHash
 CATEGORIES=	databases perl5
 PORTVERSION=	1.05
-PORTREVISION=	1
+PORTREVISION=	2
 MASTER_SITES=	CPAN
 MASTER_SITE_SUBDIR=	CPAN:CHTHORMAN
 PKGNAMEPREFIX=	p5-
@@ -11,9 +11,9 @@ COMMENT=	Tie a hash to a MySQL table plus SQL utilities
 WWW=		https://christhorman.com/projects/perl/DBIx-TableHash/
 
 BUILD_DEPENDS=	${RUN_DEPENDS}
-RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+RUN_DEPENDS=	${DBD_MYSQL}
 
-USES=		perl5
+USES=		mysql perl5
 USE_PERL5=	configure
 
 .include <bsd.port.mk>
diff --git a/databases/p5-MySQL-Diff/Makefile b/databases/p5-MySQL-Diff/Makefile
index 71f66fe38db2..1e62c43ba9cd 100644
--- a/databases/p5-MySQL-Diff/Makefile
+++ b/databases/p5-MySQL-Diff/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	MySQL-Diff
 PORTVERSION=	0.50
+PORTREVISION=	1
 CATEGORIES=	databases perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -13,11 +14,11 @@ LICENSE_COMB=	dual
 
 BUILD_DEPENDS=	${RUN_DEPENDS}
 RUN_DEPENDS=	p5-Class-MakeMethods>=0:devel/p5-Class-MakeMethods \
-		p5-DBD-mysql>=0:databases/p5-DBD-mysql \
+		${DBD_MYSQL} \
 		p5-File-Slurp>=0:devel/p5-File-Slurp \
 		p5-String-ShellQuote>=0:textproc/p5-String-ShellQuote
 
-USES=		perl5 shebangfix
+USES=		mysql perl5 shebangfix
 USE_PERL5=	configure
 
 SHEBANG_FILES=	bin/mysqldiff
diff --git a/databases/p5-Test-mysqld/Makefile b/databases/p5-Test-mysqld/Makefile
index a77739977fc9..789fffbb9579 100644
--- a/databases/p5-Test-mysqld/Makefile
+++ b/databases/p5-Test-mysqld/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	Test-mysqld
 PORTVERSION=	1.0013
+PORTREVISION=	1
 CATEGORIES=	databases perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -14,12 +15,12 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${RUN_DEPENDS}
 RUN_DEPENDS=	p5-Class-Accessor-Lite>=0:devel/p5-Class-Accessor-Lite \
-		p5-DBD-mysql>=0:databases/p5-DBD-mysql \
+		${DBD_MYSQL} \
 		p5-DBI>=0:databases/p5-DBI \
 		p5-File-Copy-Recursive>=0:devel/p5-File-Copy-Recursive
 TEST_DEPENDS=	p5-Test-SharedFork>=0:devel/p5-Test-SharedFork
 
-USES=		perl5
+USES=		mysql perl5
 USE_PERL5=	modbuildtiny
 
 NO_ARCH=	yes
diff --git a/databases/p5-mysql-genocide/Makefile b/databases/p5-mysql-genocide/Makefile
index 566a87d8ba76..11a3c59d46f3 100644
--- a/databases/p5-mysql-genocide/Makefile
+++ b/databases/p5-mysql-genocide/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mysql-genocide
 PORTVERSION=	0.03
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases perl5
 MASTER_SITES=	CPAN
 MASTER_SITE_SUBDIR=	CPAN:RSOLIV
@@ -11,9 +11,9 @@ COMMENT=	Parallel operation on MySQL processlist
 WWW=		https://metacpan.org/release/RSOLIV/mysql-genocide-0.03
 
 BUILD_DEPENDS=	${RUN_DEPENDS}
-RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+RUN_DEPENDS=	${DBD_MYSQL}
 
-USES=		perl5
+USES=		mysql perl5
 USE_PERL5=	configure
 
 .include <bsd.port.mk>
diff --git a/databases/percona-toolkit/Makefile b/databases/percona-toolkit/Makefile
index d20d91967c59..bd9f994116d3 100644
--- a/databases/percona-toolkit/Makefile
+++ b/databases/percona-toolkit/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	percona-toolkit
 DISTVERSION=	3.5.2
+PORTREVISION=	1
 CATEGORIES=	databases
 MASTER_SITES=	https://www.percona.com/downloads/${PORTNAME}/${PORTVERSION}/source/tarball/
 
@@ -11,12 +12,12 @@ LICENSE=	ARTPERL10 GPLv2
 LICENSE_COMB=	dual
 
 RUN_DEPENDS=	bash:shells/bash \
-		p5-DBD-mysql>=3:databases/p5-DBD-mysql \
+		${DBD_MYSQL} \
 		p5-DBI>=1.46:databases/p5-DBI \
 		p5-Term-ReadKey>=2.10:devel/p5-Term-ReadKey \
 		pidof:sysutils/pidof
 
-USES=		perl5 shebangfix
+USES=		mysql perl5 shebangfix
 USE_PERL5=	configure
 
 SHEBANG_FILES=	bin/pt-*
diff --git a/deskutils/note/Makefile b/deskutils/note/Makefile
index 9d7ec2bab443..8d0ade1192a5 100644
--- a/deskutils/note/Makefile
+++ b/deskutils/note/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	note
 DISTVERSION=	1.3.26
+PORTREVISION=	1
 CATEGORIES=	deskutils perl5
 MASTER_SITES=	http://www.daemon.de/idisk/Apps/note/
 
@@ -19,8 +20,9 @@ NO_ARCH=	yes
 OPTIONS_DEFINE=		EXAMPLES MYSQL PWSAFE3
 OPTIONS_DEFAULT=	BLOWFISH DES IDEA MYSQL PWSAFE3
 
-MYSQL_RUN_DEPENDS=	p5-DBD-mysql>0:databases/p5-DBD-mysql \
+MYSQL_RUN_DEPENDS=	${DBD_MYSQL} \
 			p5-DBI>0:databases/p5-DBI
+MYSQL_USES=		mysql
 
 PWSAFE3_DESC=		Password Safe v3 backend
 PWSAFE3_RUN_DEPENDS=	p5-Crypt-PWSafe3>0:security/p5-Crypt-PWSafe3
diff --git a/devel/bugzilla44/Makefile b/devel/bugzilla44/Makefile
index 0e88f2107a7d..0b0db38d0440 100644
--- a/devel/bugzilla44/Makefile
+++ b/devel/bugzilla44/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	bugzilla
 PORTVERSION=	4.4.13
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	MOZILLA/webtools MOZILLA/webtools/archived
 
@@ -47,7 +47,7 @@ EMPTY_DIRS_LIST=data graphs contrib lib t xt
 
 MODPERL_USES=		apache:run
 MYSQL_USES=		mysql
-MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=4.0001:databases/p5-DBD-mysql
+MYSQL_RUN_DEPENDS=	${DBD_MYSQL}
 PGSQL_USES=		pgsql
 PGSQL_RUN_DEPENDS=	p5-DBD-Pg>=3.4.2:databases/p5-DBD-Pg
 SQLITE_USES=		sqlite
diff --git a/devel/bugzilla50/Makefile b/devel/bugzilla50/Makefile
index d7886fd857b1..2e1b884f0eea 100644
--- a/devel/bugzilla50/Makefile
+++ b/devel/bugzilla50/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	bugzilla
 PORTVERSION=	5.0.4
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	devel
 MASTER_SITES=	MOZILLA/webtools MOZILLA/webtools/archived
 
@@ -48,7 +48,7 @@ EMPTY_DIRS_LIST=data graphs contrib lib t xt
 
 MODPERL_USES=		apache:run
 MYSQL_USES=		mysql
-MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=4.0001:databases/p5-DBD-mysql
+MYSQL_RUN_DEPENDS=	${DBD_MYSQL}
 PGSQL_USES=		pgsql:11+
 PGSQL_RUN_DEPENDS=	p5-DBD-Pg>=3.4.2:databases/p5-DBD-Pg
 SQLITE_USES=		sqlite
diff --git a/mail/assp/Makefile b/mail/assp/Makefile
index 115ed0933457..39dde5a3e4f4 100644
--- a/mail/assp/Makefile
+++ b/mail/assp/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	assp
 PORTVERSION=	1.9.9.14158
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://www.ringofsaturn.com/distfiles/
@@ -96,7 +96,8 @@ RUN_DEPENDS+=	p5-Net-DNS>=0.68:dns/p5-Net-DNS
 
 .if ${PORT_OPTIONS:MMYSQL}
 RUN_DEPENDS+=	p5-Tie-DBI>=1.05:databases/p5-Tie-DBI
-RUN_DEPENDS+=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+RUN_DEPENDS+=	${DBD_MYSQL}
+USES+=		mysql
 .endif
 
 .if ${PORT_OPTIONS:MMATCHRE}
diff --git a/mail/exilog/Makefile b/mail/exilog/Makefile
index 2cdba1a826db..a6866f4d680e 100644
--- a/mail/exilog/Makefile
+++ b/mail/exilog/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	exilog
 PORTVERSION=	0.5
-PORTREVISION=	11
+PORTREVISION=	12
 CATEGORIES=	mail
 MASTER_SITES=	http://duncanthrax.net/exilog/
 
@@ -30,7 +30,7 @@ OPTIONS_DEFAULT=		AGENT DOCS MYSQL
 OPTIONS_SUB=			YES
 AGENT_DESC=			Include exilog agent
 
-MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+MYSQL_RUN_DEPENDS=	${DBD_MYSQL}
 MYSQL_USES=		mysql
 
 PGSQL_RUN_DEPENDS=	p5-DBD-Pg>=0:databases/p5-DBD-Pg
diff --git a/mail/opendmarc/Makefile b/mail/opendmarc/Makefile
index 114c2b74a2fe..e7636444a181 100644
--- a/mail/opendmarc/Makefile
+++ b/mail/opendmarc/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	opendmarc
 PORTVERSION=	1.4.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	mail security
 MASTER_SITES=	GH
 
@@ -13,10 +13,10 @@ LICENSE_COMB=	multi
 
 RUN_DEPENDS=	p5-Switch>=0:lang/p5-Switch \
 		p5-DBI>=0:databases/p5-DBI \
-		p5-DBD-mysql>=0:databases/p5-DBD-mysql \
+		${DBD_MYSQL} \
 		p5-HTTP-Message>=0:www/p5-HTTP-Message
 
-USES=		cpe libtool perl5 shebangfix autoreconf
+USES=		cpe libtool mysql perl5 shebangfix autoreconf
 LICENSE_FILE_SENDMAIL=	${WRKSRC}/LICENSE.Sendmail
 LICENSE_GROUPS_SENDMAIL=	FSF OSI
 LICENSE_NAME_SENDMAIL=	Sendmail Open Source License
diff --git a/mail/policyd2/Makefile b/mail/policyd2/Makefile
index c31d36e2aa39..f4147f5a9083 100644
--- a/mail/policyd2/Makefile
+++ b/mail/policyd2/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	policyd2
 PORTVERSION=	2.0.14
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	mail
 MASTER_SITES=	https://download.policyd.org/v${PORTVERSION}/
 DISTNAME=	cluebringer-v${PORTVERSION}
@@ -39,7 +39,8 @@ PGSQL_DESC=		Add a dependency on DBD::Pg
 SQLITE_DESC=		Add a dependency on DBD:SQLite
 WEBUI_DESC=		Add a dependency on the corresponding PHP pdo driver
 
-MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+MYSQL_RUN_DEPENDS=	${DBD_MYSQL}
+MYSQL_USES=		mysql
 PGSQL_RUN_DEPENDS=	p5-DBD-Pg>=0:databases/p5-DBD-Pg
 SQLITE_RUN_DEPENDS=	p5-DBD-SQLite>=0:databases/p5-DBD-SQLite
 
diff --git a/mail/ratelimit-policyd/Makefile b/mail/ratelimit-policyd/Makefile
index dfd58c973b4e..7e5efab5217d 100644
--- a/mail/ratelimit-policyd/Makefile
+++ b/mail/ratelimit-policyd/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	ratelimit-policyd
 PORTVERSION=	1.0.4
+PORTREVISION=	1
 CATEGORIES=	mail
 
 MAINTAINER=	000.fbsd@quip.cz
@@ -8,13 +9,13 @@ WWW=		https://github.com/MirLach/ratelimit-policyd
 
 LICENSE=	NONE
 
-USES+=		perl5 shebangfix
+USES+=		mysql perl5 shebangfix
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	MirLach
 #GH_TAGNAME=	65154a2
 
-RUN_DEPENDS+=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+RUN_DEPENDS+=	${DBD_MYSQL}
 
 SHEBANG_FILES=	ratelimit-policyd.pl
 
diff --git a/mail/spamassassin-devel/Makefile b/mail/spamassassin-devel/Makefile
index ce9e36451e06..b144aa58ff2d 100644
--- a/mail/spamassassin-devel/Makefile
+++ b/mail/spamassassin-devel/Makefile
@@ -123,7 +123,8 @@ DMARC_RUN_DEPENDS=	p5-Mail-DMARC>=0:mail/p5-Mail-DMARC \
 			p5-URI>=0:net/p5-URI
 GNUPG_RUN_DEPENDS=	gnupg1>=1.4.7:security/gnupg1
 GNUPG2_RUN_DEPENDS=	gpg2:security/gnupg
-MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+MYSQL_RUN_DEPENDS=	${DBD_MYSQL}
+MYSQL_USES=		mysql
 PGSQL_RUN_DEPENDS=	p5-DBD-Pg>=0:databases/p5-DBD-Pg
 PYZOR_RUN_DEPENDS=	pyzor:mail/pyzor
 RAZOR_RUN_DEPENDS=	razor-agents>=2.84:mail/razor-agents \
diff --git a/mail/spamassassin/Makefile b/mail/spamassassin/Makefile
index 06993c0e624f..63058355b9a2 100644
--- a/mail/spamassassin/Makefile
+++ b/mail/spamassassin/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	spamassassin
 PORTVERSION=	4.0.1
+PORTREVISION=	1
 CATEGORIES?=	mail perl5
 MASTER_SITES=	https://archive.apache.org/dist/${PORTNAME}/source/ CPAN/Mail
 DISTNAME=	Mail-SpamAssassin-${PORTVERSION}
@@ -119,7 +120,8 @@ DMARC_RUN_DEPENDS=	p5-Mail-DMARC>=0:mail/p5-Mail-DMARC \
 			p5-URI>=0:net/p5-URI
 GNUPG_RUN_DEPENDS=	gnupg1>=1.4.7:security/gnupg1
 GNUPG2_RUN_DEPENDS=	gpg2:security/gnupg
-MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+MYSQL_RUN_DEPENDS=	${DBD_MYSQL}
+MYSQL_USES=		mysql
 PGSQL_RUN_DEPENDS=	p5-DBD-Pg>=0:databases/p5-DBD-Pg
 PYZOR_RUN_DEPENDS=	pyzor:mail/pyzor
 RAZOR_RUN_DEPENDS=	razor-agents>=2.84:mail/razor-agents \
diff --git a/mail/sqlgrey/Makefile b/mail/sqlgrey/Makefile
index 0e08bd7d3f9c..29dd55de1b02 100644
--- a/mail/sqlgrey/Makefile
+++ b/mail/sqlgrey/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	sqlgrey
 PORTVERSION=	1.8.0
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	mail
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-1.8%20%28stable%29
 
@@ -38,7 +38,8 @@ OPTIONS_DEFAULT=PGSQL
 STATS_DESC=	Depend on Date::Calc for logstats.pl script
 
 PGSQL_RUN_DEPENDS=	p5-DBD-Pg>=0:databases/p5-DBD-Pg
-MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+MYSQL_RUN_DEPENDS=	${DBD_MYSQL}
+MYSQL_USES=		mysql
 SQLITE_RUN_DEPENDS=	p5-DBD-SQLite>=0:databases/p5-DBD-SQLite
 STATS_RUN_DEPENDS=	p5-Date-Calc>=0:devel/p5-Date-Calc
 
diff --git a/mail/sympa/Makefile b/mail/sympa/Makefile
index 55719a5614a3..02f2c7ff9196 100644
--- a/mail/sympa/Makefile
+++ b/mail/sympa/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	sympa
 DISTVERSION=	6.2.72
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	mail
 
 MAINTAINER=	dgeo@centrale-med.fr
@@ -110,9 +110,10 @@ APACHE_RUN_DEPENDS=	${LOCALBASE}/${APACHEMODDIR}/mod_fastcgi.so:www/mod_fastcgi
 APACHE_USES=		apache:run
 FASTCGI_RUN_DEPENDS=	p5-CGI-Fast>=1.08:www/p5-CGI-Fast \
 			p5-FCGI>=0.67:www/p5-FCGI
-MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+MYSQL_RUN_DEPENDS=	${DBD_MYSQL}
 MYSQL_SUB_LIST=		REQ_MYSQL=mysql
 MYSQL_SUB_LIST_OFF=	REQ_MYSQL=""
+MYSQL_USES=		mysql
 PGSQL_RUN_DEPENDS=	p5-DBD-Pg>=2.00:databases/p5-DBD-Pg
 PGSQL_SUB_LIST=		REQ_PGSQL=postgresql
 PGSQL_SUB_LIST_OFF=	REQ_PGSQL=""
diff --git a/multimedia/mythtv/Makefile b/multimedia/mythtv/Makefile
index 5733489accc8..8af625e9eaeb 100644
--- a/multimedia/mythtv/Makefile
+++ b/multimedia/mythtv/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	mythtv
 DISTVERSIONPREFIX=	v
 DISTVERSION=	34.0
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	multimedia
 
@@ -110,7 +111,7 @@ BINDINGS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mysqlclient>=0:databases/py-mysql
 			${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}simplejson>=0:devel/py-simplejson@${PY_FLAVOR} \
 			p5-DBI>=0:databases/p5-DBI \
-			p5-DBD-mysql>0:databases/p5-DBD-mysql \
+			${DBD_MYSQL} \
 			p5-Net-UPnP>=0:multimedia/p5-Net-UPnP \
 			p5-IO-Socket-INET6>=2.51:net/p5-IO-Socket-INET6 \
 			p5-XML-Simple>=0:textproc/p5-XML-Simple \
@@ -123,7 +124,7 @@ BINDINGS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mysqlclient>=1.2.2:databases/py-mys
 			${PYTHON_PKGNAMEPREFIX}requests-cache>0:www/py-requests-cache@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}simplejson>=3:devel/py-simplejson@${PY_FLAVOR} \
 			p5-DBI>=0:databases/p5-DBI \
-			p5-DBD-mysql>0:databases/p5-DBD-mysql \
+			${DBD_MYSQL} \
 			p5-Net-UPnP>=0:multimedia/p5-Net-UPnP \
 			p5-IO-Socket-INET6>=2.51:net/p5-IO-Socket-INET6 \
 			p5-XML-Simple>=0:textproc/p5-XML-Simple \
@@ -131,6 +132,7 @@ BINDINGS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mysqlclient>=1.2.2:databases/py-mys
 			p5-LWP-UserAgent-Determined>=0:www/p5-LWP-UserAgent-Determined
 BINDINGS_CONFIGURE_ON=	--python="${PYTHON_CMD}" --with-bindings=perl,python
 BINDINGS_CONFIGURE_OFF=	--without-bindings=perl,python
+BINDINGS_USES=		mysql
 
 HDHOMERUN_DESC=		Native support for HDHomeRun network tuners
 HDHOMERUN_LIB_DEPENDS=	libhdhomerun.so:multimedia/libhdhomerun
diff --git a/multimedia/zoneminder/Makefile b/multimedia/zoneminder/Makefile
index 28e74abdf046..69a34e271d9a 100644
--- a/multimedia/zoneminder/Makefile
+++ b/multimedia/zoneminder/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	zoneminder
 DISTVERSION=	1.36.33
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	multimedia
 
 MAINTAINER=	bsd@abinet.ru
@@ -10,7 +10,7 @@ WWW=		https://www.zoneminder.com/
 LICENSE=	GPLv2
 
 ZM_DEPENDS=	p5-DBI>=0:databases/p5-DBI \
-		p5-DBD-mysql>=0:databases/p5-DBD-mysql \
+		${DBD_MYSQL} \
 		p5-Date-Manip>=0:devel/p5-Date-Manip \
 		p5-Test-LWP-UserAgent>=0:www/p5-Test-LWP-UserAgent \
 		p5-Sys-Mmap>=0:devel/p5-Sys-Mmap \
diff --git a/net-mgmt/check_mysql_health/Makefile b/net-mgmt/check_mysql_health/Makefile
index 07c912678ae1..6cbb22ccdcb3 100644
--- a/net-mgmt/check_mysql_health/Makefile
+++ b/net-mgmt/check_mysql_health/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	check_mysql_health
 DISTVERSION=	3.0.0.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt
 MASTER_SITES=	https://labs.consol.de/assets/downloads/nagios/
 
@@ -11,9 +11,9 @@ WWW=		https://labs.consol.de/de/nagios/check_mysql_health/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+RUN_DEPENDS=	${DBD_MYSQL}
 
-USES=		autoreconf perl5 gmake
+USES=		autoreconf mysql perl5 gmake
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-statefiles-dir=${NAGIOSDIR} \
diff --git a/net-mgmt/mysql-snmp/Makefile b/net-mgmt/mysql-snmp/Makefile
index e0d8c51969c9..c97b32321e58 100644
--- a/net-mgmt/mysql-snmp/Makefile
+++ b/net-mgmt/mysql-snmp/Makefile
@@ -2,7 +2,7 @@ PORTNAME=	mysql-snmp
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.2-17
 DISTVERSIONSUFFIX=	-g1d0b409
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt perl5
 
 MAINTAINER=	0mp@FreeBSD.org
@@ -13,13 +13,13 @@ LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 RUN_DEPENDS=	net-snmp>=0:net-mgmt/net-snmp \
-		p5-DBD-mysql>=0:databases/p5-DBD-mysql \
+		${DBD_MYSQL} \
 		p5-DBI>=0:databases/p5-DBI \
 		p5-Math-BigInt-GMP>=0:math/p5-Math-BigInt-GMP \
 		p5-Net-SNMP>=5.4.3:net-mgmt/p5-Net-SNMP \
 		p5-Unix-Syslog>=0:sysutils/p5-Unix-Syslog
 
-USES=		perl5 shebangfix
+USES=		mysql perl5 shebangfix
 USE_GITHUB=	yes
 GH_ACCOUNT=	masterzen
 USE_PERL5=	run test
diff --git a/net-mgmt/nagios-check_mysql_slave/Makefile b/net-mgmt/nagios-check_mysql_slave/Makefile
index d0103111d32e..74f559c7ee3c 100644
--- a/net-mgmt/nagios-check_mysql_slave/Makefile
+++ b/net-mgmt/nagios-check_mysql_slave/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	check_mysql_slave
 PORTVERSION=	0.1.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://buhacoff.net/2009/products/check_mysql_slave/archive/ \
 		ZI
@@ -14,13 +14,13 @@ LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	p5-DBI>=1.60.7:databases/p5-DBI \
-		p5-DBD-mysql>0:databases/p5-DBD-mysql
+		${DBD_MYSQL}
 
 PORTSCOUT=	ignore:1
 
 NO_BUILD=	yes
 NO_ARCH=	yes
-USES=		perl5 shebangfix
+USES=		mysql perl5 shebangfix
 SHEBANG_FILES=	check_mysql_slave check_mysql_slave_epn
 USE_PERL5=	run
 DOC_FILES=	check_mysql_slave.html check_mysql_slave.pod
diff --git a/net-mgmt/netdot/Makefile b/net-mgmt/netdot/Makefile
index e3bdac514e39..78e2f68ea0e2 100644
--- a/net-mgmt/netdot/Makefile
+++ b/net-mgmt/netdot/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	netdot
 PORTVERSION=	1.0.7
 DISTVERSIONPREFIX=	${PORTNAME}-
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	nick@foobar.org
@@ -16,7 +16,7 @@ RUN_DEPENDS=	p5-libapreq2>=0:www/p5-libapreq2 \
 		p5-Apache-AuthCookie>=0:www/p5-Apache-AuthCookie \
 		p5-Apache2-SiteControl>=1.0:www/p5-Apache2-SiteControl \
 		p5-URI>=0:net/p5-URI \
-		p5-DBD-mysql>=0:databases/p5-DBD-mysql \
+		${DBD_MYSQL} \
 		p5-SQL-Translator>=0.07:databases/p5-SQL-Translator \
 		p5-Class-DBI>=3.0.17:databases/p5-Class-DBI \
 		p5-Class-DBI-AbstractSearch>=0:databases/p5-Class-DBI-AbstractSearch \
diff --git a/net-mgmt/ocsinventory-server/Makefile b/net-mgmt/ocsinventory-server/Makefile
index 6023742136ad..3a119c78caac 100644
--- a/net-mgmt/ocsinventory-server/Makefile
+++ b/net-mgmt/ocsinventory-server/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	ocsinventory-server
 PORTVERSION=	2.12.1
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	dgeo@centrale-med.fr
@@ -11,7 +12,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	p5-XML-Simple>=2.12:textproc/p5-XML-Simple \
 		p5-DBI>=1.40:databases/p5-DBI \
-		p5-DBD-mysql>=2.9004:databases/p5-DBD-mysql \
+		${DBD_MYSQL} \
 		p5-Apache-DBI>=0.93:www/p5-Apache-DBI \
 		p5-Net-IP>=1.21:net-mgmt/p5-Net-IP \
 		p5-SOAP-Lite>=0.66:net/p5-SOAP-Lite \
diff --git a/net-mgmt/pandorafms_server/Makefile b/net-mgmt/pandorafms_server/Makefile
index 64bbd745a1e8..3fe6264ca00c 100644
--- a/net-mgmt/pandorafms_server/Makefile
+++ b/net-mgmt/pandorafms_server/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	pandora_server
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	koichiro@rworks.jp
@@ -20,7 +20,7 @@ PANDORA_DEPS=	p5-DBI>=0:databases/p5-DBI \
 		p5-JSON>=0:converters/p5-JSON
 BUILD_DEPENDS=	${PANDORA_DEPS}
 RUN_DEPENDS=	p5-libwww>=0:www/p5-libwww \
-		p5-DBD-mysql>=4:databases/p5-DBD-mysql \
+		${DBD_MYSQL} \
 		wmic:net-mgmt/wmi-client \
 		nmap:security/nmap \
 		p5-Encode-Locale>=0:converters/p5-Encode-Locale \
@@ -34,7 +34,7 @@ XPROBE_DESC=	Install xprobe
 PGSQL_DESC=	Use PostgreSQL backend (experimental)
 EXTRAS_DESC=	Extra dependencies for util scripts
 
-USES=		perl5 shebangfix
+USES=		mysql perl5 shebangfix
 SHEBANG_FILES=	FreeBSD/pandora_server \
 		bin/pandora_server \
 		util/integrity_check \
diff --git a/net-mgmt/rackmonkey/Makefile b/net-mgmt/rackmonkey/Makefile
index d9147cf8982f..3394822c3861 100644
--- a/net-mgmt/rackmonkey/Makefile
+++ b/net-mgmt/rackmonkey/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	rackmonkey
 PORTVERSION=	1.2.5
 DISTVERSIONSUFFIX=	-1
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	net-mgmt www
 MASTER_SITES=	SF \
 		ftp://ftp.secure-computing.net/pub/FreeBSD/ports/${PORTNAME}/ \
@@ -39,7 +39,7 @@ RUN_DEPENDS+=	p5-DBD-SQLite>=0:databases/p5-DBD-SQLite
 .endif
 .if ${PORT_OPTIONS:MMYSQL}
 USES+=		mysql
-RUN_DEPENDS+=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+RUN_DEPENDS+=	${DBD_MYSQL}
 .endif
 .if ${PORT_OPTIONS:MPGSQL}
 USES+=		pgsql
diff --git a/net/p5-Net-Google-SafeBrowsing2/Makefile b/net/p5-Net-Google-SafeBrowsing2/Makefile
index 726bcc27ca06..b53138988ef3 100644
--- a/net/p5-Net-Google-SafeBrowsing2/Makefile
+++ b/net/p5-Net-Google-SafeBrowsing2/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	Net-Google-SafeBrowsing2
 PORTVERSION=	1.09
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -31,8 +31,9 @@ NO_ARCH=	yes
 USES=		perl5
 USE_PERL5=	configure
 
-MYSQL_BUILD_DEPENDS=	p5-DBD-mysql>=4:databases/p5-DBD-mysql
-MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=4:databases/p5-DBD-mysql
+MYSQL_BUILD_DEPENDS=	${DBD_MYSQL}
+MYSQL_RUN_DEPENDS=	${DBD_MYSQL}
+MYSQL_USES=		mysql
 POSTGRES_BUILD_DEPENDS=	p5-DBD-Pg>=2:databases/p5-DBD-Pg
 POSTGRES_RUN_DEPENDS=	p5-DBD-Pg>=2:databases/p5-DBD-Pg
 SQLITE_BUILD_DEPENDS=	p5-DBD-SQLite>=1:databases/p5-DBD-SQLite
diff --git a/net/prosearch/Makefile b/net/prosearch/Makefile
index 6b2f3d2f2661..7cacbf95b109 100644
--- a/net/prosearch/Makefile
+++ b/net/prosearch/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	prosearch
 PORTVERSION=	0.19.4
-PORTREVISION=	10
+PORTREVISION=	11
 CATEGORIES=	net www
 MASTER_SITES=	http://pro.setun.net/search/download/ SF/pro-search/pro-search/${PORTVERSION}
 
@@ -80,7 +80,7 @@ p5-FCGI>=0:www/p5-FCGI
 .if ${PORT_OPTIONS:MMYSQL}
 USES+=	mysql
 RUN_DEPENDS+=\
-p5-DBD-mysql>=0:databases/p5-DBD-mysql
+${DBD_MYSQL}
 .endif
 
 .if ${PORT_OPTIONS:MDB} && ${PORT_OPTIONS:MMYSQL}
diff --git a/net/pwhois/Makefile b/net/pwhois/Makefile
index ea84ca8eec80..7484b2c25e3c 100644
--- a/net/pwhois/Makefile
+++ b/net/pwhois/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pwhois
 PORTVERSION=	2.2.1.0
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	http://pwhois.org/get/ \
 		ZI
@@ -15,7 +16,7 @@ RUN_DEPENDS=	p5-DBI>0:databases/p5-DBI \
 		p5-Net-Telnet>0:net/p5-Net-Telnet \
 		p5-Net-CIDR>0:net-mgmt/p5-Net-CIDR \
 		p5-RPSL-Parser>0:devel/p5-RPSL-Parser \
-		p5-DBD-mysql>=0:databases/p5-DBD-mysql
+		${DBD_MYSQL}
 
 FETCH_ARGS=	-p
 
*** 356 LINES SKIPPED ***