Skip to content

Commit

Permalink
Merge branch 'joyent/feature/pbulkmulti/trunk' into joyent/release/trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Perkin committed Oct 15, 2021
2 parents 5c98a33 + 47dd32a commit f3e4e13
Show file tree
Hide file tree
Showing 48 changed files with 114 additions and 51 deletions.
2 changes: 1 addition & 1 deletion databases/innotop/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LICENSE= gnu-gpl-v2

DEPENDS+= p5-Term-ReadKey>=2.10:../../devel/p5-Term-ReadKey
DEPENDS+= p5-DBI>=1.13:../../databases/p5-DBI
DEPENDS+= p5-DBD-mysql>=1.0:../../databases/p5-DBD-mysql
DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql

PERL5_PACKLIST= auto/innotop/.packlist
REPLACE_PERL= innotop
Expand Down
4 changes: 2 additions & 2 deletions databases/myodbc/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.45 2021/06/23 20:33:08 nia Exp $

DISTNAME= mysql-connector-odbc-5.3.14-src
PKGNAME= ${DISTNAME:S/mysql-connector-odbc/myodbc/:S/-src$//}
PKGNAME= ${DISTNAME:S/mysql-connector-odbc/${MYSQL_PKG_PREFIX}-odbc/:S/-src$//}
PKGREVISION= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL:=Connector-ODBC/5.3/}
Expand All @@ -14,7 +14,7 @@ LICENSE= gnu-gpl-v2
USE_CMAKE= yes
CMAKE_ARGS= -Wno-dev
#CMAKE_ARGS+= -DMYSQL_DIR=${BUILDLINK_PREFIX.mysql-client}
CMAKE_ARGS+= -DMYSQL_INCLUDE_DIR=${BUILDLINK_PREFIX.mysql-client}/include/mysql
CMAKE_ARGS+= -DMYSQL_INCLUDE_DIR=${BUILDLINK_PREFIX.mysql-client}/${BUILDLINK_INCDIRS.mysql-client}
USE_LANGUAGES= c c++

INSTALLATION_DIRS= share/doc/mysql-connector-odbc
Expand Down
2 changes: 1 addition & 1 deletion databases/mytop/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LICENSE= gnu-gpl-v2
DEPENDS+= p5-DBI-[0-9]*:../../databases/p5-DBI
#DEPENDS+= p5-Term-ANSIColor-[0-9]*:../../devel/p5-Term-ANSIColor
DEPENDS+= p5-Term-ReadKey-[0-9]*:../../devel/p5-Term-ReadKey
DEPENDS+= p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql
DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql

PERL5_PACKLIST= auto/mytop/.packlist
REPLACE_PERL= mytop
Expand Down
2 changes: 1 addition & 1 deletion databases/p5-DBD-mysql/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.82 2021/06/23 20:33:08 nia Exp $

DISTNAME= DBD-mysql-4.050
PKGNAME= p5-${DISTNAME}
PKGNAME= p5-${DISTNAME:S/mysql/${MYSQL_PKG_PREFIX}/}
PKGREVISION= 4
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DBD/}
Expand Down
2 changes: 1 addition & 1 deletion databases/p5-DBIx-Class-Schema-Loader/options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ BUILDLINK_DEPMETHOD.p5-DBI?= full
.endif

.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= p5-DBD-mysql>=4.004:../../databases/p5-DBD-mysql
DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql
BUILDLINK_DEPMETHOD.p5-DBI?= full
.endif

Expand Down
2 changes: 1 addition & 1 deletion databases/pear-MDB2_Driver_pgsql/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ HOMEPAGE= https://pear.php.net/package/MDB2_Driver_pgsql
COMMENT= Pgsql MDB2 driver
LICENSE= modified-bsd

DEPENDS+= ${PHP_PKG_PREFIX}-pgsql-[0-9]*:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql*-[0-9]*:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pear-MDB2>=2.5:../../databases/pear-MDB2

PEAR_DIRRM_EXCLUDE= lib/php/MDB2
Expand Down
2 changes: 1 addition & 1 deletion databases/percona-toolkit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SUBST_FILES.sh+= blib/script/pt-summary
SUBST_SED.sh+= -e 's|^\#!.*|\#!${TOOLS_PATH.sh}|'
SUBST_NOOP_OK.sh= yes

DEPENDS+= p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql
DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql
#DEPENDS+= {perl>=5.7.3,p5-Time-HiRes-[0-9]*}:../../time/p5-Time-HiRes

PERL5_PACKLIST= auto/percona-toolkit/.packlist
Expand Down
1 change: 1 addition & 0 deletions databases/php-pdo_pgsql/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.19 2016/11/12 15:42:51 taca Exp $

MODNAME= pdo_pgsql
PKGNAME= ${PHP_PKG_PREFIX}-${MODNAME}${PGSQL_VERSION}-${PHP_VERSION}
CATEGORIES+= databases
COMMENT= PHP extension for PHP Data Objects (PostgreSQL)

Expand Down
1 change: 1 addition & 0 deletions databases/php-pgsql/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.19 2016/11/12 15:42:51 taca Exp $

MODNAME= pgsql
PKGNAME= ${PHP_PKG_PREFIX}-${MODNAME}${PGSQL_VERSION}-${PHP_VERSION}
CATEGORIES+= databases
COMMENT= PHP extension for PostgreSQL databases

Expand Down
2 changes: 1 addition & 1 deletion databases/phppgadmin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ HOMEPAGE= https://github.com/phppgadmin/phppgadmin
COMMENT= Set of PHP scripts to administer PostgreSQL over the WWW

DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=7.2.0:../../converters/php-mbstring
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=7.2.0:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql*-[0-9]*:../../databases/php-pgsql

PHP_VERSIONS_INCOMPATIBLE= 56

Expand Down
2 changes: 1 addition & 1 deletion databases/py-mysqlclient/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.7 2021/06/23 20:33:09 nia Exp $

DISTNAME= mysqlclient-1.4.6
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/mysql/${MYSQL_PKG_PREFIX}/}
PKGREVISION= 1
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=m/mysqlclient/}
Expand Down
2 changes: 1 addition & 1 deletion databases/py-mysqldb/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.52 2021/10/06 18:00:12 tron Exp $

DISTNAME= mysqlclient-1.3.10
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/mysqlclient/mysqldb/}
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/mysqlclient/${MYSQL_PKG_PREFIX}db/}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=m/mysqlclient/}

Expand Down
2 changes: 1 addition & 1 deletion devel/bugzilla/options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ PKG_SUGGESTED_OPTIONS= sqlite
### Use mysql or postgresql backend
###
.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= p5-DBD-mysql>=4.000:../../databases/p5-DBD-mysql
DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql
DBDRIVER= mysql
.elif !empty(PKG_OPTIONS:Msqlite)
DEPENDS+= p5-DBD-SQLite>=1.54:../../databases/p5-DBD-SQLite
Expand Down
2 changes: 1 addition & 1 deletion devel/bugzilla3/options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ PKG_SUGGESTED_OPTIONS= mysql
### Use mysql or postgresql backend
###
.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= p5-DBD-mysql>=4.000:../../databases/p5-DBD-mysql
DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql
DBDRIVER= mysql
.elif !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= p5-DBD-postgresql>=1.45:../../databases/p5-DBD-postgresql
Expand Down
2 changes: 1 addition & 1 deletion devel/mantis/options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ DEPENDS+= ${PHP_PKG_PREFIX}-jpgraph-[0-9]*:../../graphics/php-jpgraph
.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= ${PHP_PKG_PREFIX}-mysqli-[0-9]*:../../databases/php-mysqli
.elif !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql-[0-9]*:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql*-[0-9]*:../../databases/php-pgsql
.endif
2 changes: 1 addition & 1 deletion devel/py-trytond/options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DEPENDS+= ${PYPKGPREFIX}-cdecimal-[0-9]*:../../math/py-cdecimal

.if !empty(PKG_OPTIONS:Mmysql)
PYTHON_VERSIONS_ACCEPTED= 27 # py-mysqldb
DEPENDS+= ${PYPKGPREFIX}-mysqldb-[0-9]*:../../databases/py-mysqldb
DEPENDS+= ${PYPKGPREFIX}-${MYSQL_PKG_PREFIX}db-[0-9]*:../../databases/py-mysqldb
.endif

.if !empty(PKG_OPTIONS:Mpydot)
Expand Down
2 changes: 1 addition & 1 deletion devel/rt-mysql/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ REPLACE_PERL+= tools/insertdata \

.if (${RT_DB_TYPE} == "mysql")
PKGNAME= ${DISTNAME:S/-/./g:S/./-mysql-/}
DEPENDS+= p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql
DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql
RT_DB_HOST?= localhost
RT_DB_PORT?=
RT_DB_PATH?= ${PREFIX}/lib/mysql
Expand Down
2 changes: 1 addition & 1 deletion devel/rt4/options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DEPENDS+= p5-HTML-Mason>=1.36:../../www/p5-HTML-Mason

# Backend database dependencies
.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= p5-DBD-mysql>=2.1018:../../databases/p5-DBD-mysql
DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql
RT_DB_TYPE= mysql
.elif !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= p5-DBD-postgresql>=1.43:../../databases/p5-DBD-postgresql
Expand Down
4 changes: 2 additions & 2 deletions mail/akonadi/options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ MYSQL_VERSIONS_ACCEPTED= 56
.include "../../mk/mysql.buildlink3.mk"
DEPENDS+= qt4-mysql-[0-9]*:../../x11/qt4-mysql
CMAKE_ARGS+= -DAKONADI_BUILD_QSQLITE=off
. if ${_MYSQL_VERSION} == "56"
. if ${MYSQL_VERSION} == "56"
. include "../../databases/mysql56-server/buildlink3.mk"
. else
PKG_FAIL_REASON+= "Unknown MySQL version: ${_MYSQL_VERSION}"
PKG_FAIL_RESASON+= "Unknown MySQL version: ${MYSQL_VERSION}"
. endif
SUBST_CLASSES+= mysql
SUBST_STAGE.mysql= pre-configure
Expand Down
2 changes: 1 addition & 1 deletion mail/opendmarc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COMMENT= Open source DMARC library, MTA filter implementation and tools
LICENSE= modified-bsd

DEPENDS+= p5-DBI-[0-9]*:../../databases/p5-DBI
DEPENDS+= p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql
DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql
#DEPENDS+= {perl>=5.6.1,p5-File-Temp-[0-9]*}:../../devel/p5-File-Temp
DEPENDS+= p5-Switch-[0-9]*:../../lang/p5-Switch
DEPENDS+= p5-HTTP-Message-[0-9]*:../../www/p5-HTTP-Message
Expand Down
2 changes: 1 addition & 1 deletion mail/roundcube/options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql-[0-9]*:../../databases/php-pdo_mysql
### Use postgresql backend.
###
.if !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql-[0-9]*:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql*-[0-9]*:../../databases/php-pdo_pgsql
.endif

###
Expand Down
2 changes: 1 addition & 1 deletion mail/sympa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ RCD_SCRIPTS= archived bounced bulk sympa task_manager
.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= p5-DBD-mysql>=2.0407:../../databases/p5-DBD-mysql
DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql
.endif

.if !empty(PKG_OPTIONS:Mpgsql)
Expand Down
2 changes: 1 addition & 1 deletion meta-pkgs/bulk-medium/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ BUILD_DEPENDS+= libvorbis-[0-9]*:../../audio/libvorbis
BUILD_DEPENDS+= gdbm-[0-9]*:../../databases/gdbm
BUILD_DEPENDS+= p5-BDB-[0-9]*:../../databases/p5-BDB
BUILD_DEPENDS+= p5-BerkeleyDB-[0-9]*:../../databases/p5-BerkeleyDB
BUILD_DEPENDS+= p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql
BUILD_DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql
BUILD_DEPENDS+= p5-DBD-postgresql-[0-9]*:../../databases/p5-DBD-postgresql
BUILD_DEPENDS+= p5-DBI-[0-9]*:../../databases/p5-DBI
BUILD_DEPENDS+= ${PYPKGPREFIX}-bsddb3-[0-9]*:../../databases/py-bsddb3
Expand Down
4 changes: 2 additions & 2 deletions meta-pkgs/php56-extensions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ DEPENDS+= ${PHP_PKG_PREFIX}-pdo>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php
# freetds seems x86-64 only
# DEPENDS+= ${PHP_PKG_PREFIX}-pdo_dblib>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_dblib
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_mysql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql{13,12,11,10,96,95,94,93}>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_sqlite>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_sqlite
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql{13,12,11,10,96,95,94,93}>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-sqlite3>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-sqlite3
DEPENDS+= ${PHP_PKG_PREFIX}-posix>=${PHP_VERSION}<${NEXT_VERS}:../../devel/php-posix
DEPENDS+= ${PHP_PKG_PREFIX}-pspell>=${PHP_VERSION}<${NEXT_VERS}:../../textproc/php-pspell
Expand Down
4 changes: 2 additions & 2 deletions meta-pkgs/php73-extensions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ DEPENDS+= ${PHP_PKG_PREFIX}-pdo>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php
# DEPENDS+= ${PHP_PKG_PREFIX}-pdo_dblib>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_dblib
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_mysql
DEPENDS+= ${PHP_PKG_PREFIX}-sqlite3>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-sqlite3
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql{13,12,11,10,96,95,94,93}>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_sqlite>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_sqlite
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql{13,12,11,10,96,95,94,93}>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-posix>=${PHP_VERSION}<${NEXT_VERS}:../../devel/php-posix
DEPENDS+= ${PHP_PKG_PREFIX}-pspell>=${PHP_VERSION}<${NEXT_VERS}:../../textproc/php-pspell
DEPENDS+= ${PHP_PKG_PREFIX}-shmop>=${PHP_VERSION}<${NEXT_VERS}:../../devel/php-shmop
Expand Down
4 changes: 2 additions & 2 deletions meta-pkgs/php74-extensions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ DEPENDS+= ${PHP_PKG_PREFIX}-pdo>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php
# DEPENDS+= ${PHP_PKG_PREFIX}-pdo_dblib>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_dblib
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_mysql
DEPENDS+= ${PHP_PKG_PREFIX}-sqlite3>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-sqlite3
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql{13,12,11,10,96,95,94,93}>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_sqlite>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_sqlite
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql{13,12,11,10,96,95,94,93}>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-posix>=${PHP_VERSION}<${NEXT_VERS}:../../devel/php-posix
DEPENDS+= ${PHP_PKG_PREFIX}-pspell>=${PHP_VERSION}<${NEXT_VERS}:../../textproc/php-pspell
DEPENDS+= ${PHP_PKG_PREFIX}-shmop>=${PHP_VERSION}<${NEXT_VERS}:../../devel/php-shmop
Expand Down
4 changes: 2 additions & 2 deletions meta-pkgs/php80-extensions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ DEPENDS+= ${PHP_PKG_PREFIX}-pdo>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php
# DEPENDS+= ${PHP_PKG_PREFIX}-pdo_dblib>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_dblib
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_mysql
DEPENDS+= ${PHP_PKG_PREFIX}-sqlite3>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-sqlite3
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql{13,12,11,10,96,95,94,93}>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_sqlite>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pdo_sqlite
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql{13,12,11,10,96,95,94,93}>=${PHP_VERSION}<${NEXT_VERS}:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-posix>=${PHP_VERSION}<${NEXT_VERS}:../../devel/php-posix
DEPENDS+= ${PHP_PKG_PREFIX}-pspell>=${PHP_VERSION}<${NEXT_VERS}:../../textproc/php-pspell
DEPENDS+= ${PHP_PKG_PREFIX}-shmop>=${PHP_VERSION}<${NEXT_VERS}:../../devel/php-shmop
Expand Down
39 changes: 38 additions & 1 deletion mk/mysql.buildlink3.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,45 +22,77 @@
# Variables set by this file:
#
# MYSQL_VERSION
# MYSQL_PKG_PREFIX

.if !defined(MYSQL_VERSION_MK)
MYSQL_VERSION_MK= # defined

BUILD_DEFS+= MYSQL_VERSION_DEFAULT
BUILD_DEFS_EFFECTS+= MYSQL_VERSION
BUILD_DEFS_EFFECTS+= MYSQL_PKG_PREFIX

_VARGROUPS+= mysql
_USER_VARS.mysql= MYSQL_VERSION_DEFAULT
_PKG_VARS.mysql= MYSQL_VERSIONS_ACCEPTED
_SYS_VARS.mysql= MYSQL_VERSION MYSQL_VERSION_REQD MYSQL_VERSIONS_ALL
_SYS_VARS.mysql+= MYSQL_PKG_PREFIX

#
# Set variables for all possible MySQL variants
#
MYSQL_VERSIONS_ALL= 80 57 56 mariadb106 mariadb105 mariadb104
MYSQL_VERSIONS_ALL+= percona80 percona57 percona56
MYSQL_VERSIONS_ALL+= percona80-cluster percona57-cluster

MYSQL_PKGBASE.80= mysql-client-8.0.*
MYSQL_PKGSRCDIR.80= ../../databases/mysql80-client
MYSQL_PKG_PREFIX.80= mysql80

MYSQL_PKGBASE.57= mysql-client-5.7.*
MYSQL_PKGSRCDIR.57= ../../databases/mysql57-client
MYSQL_PKG_PREFIX.57= mysql57

MYSQL_PKGBASE.56= mysql-client-5.6.*
MYSQL_PKGSRCDIR.56= ../../databases/mysql56-client
MYSQL_PKG_PREFIX.56= mysql56

MYSQL_PKGBASE.mariadb104= mariadb-client-10.4.*
MYSQL_PKGSRCDIR.mariadb104= ../../databases/mariadb104-client
MYSQL_PKG_PREFIX.mariadb104= mariadb104

MYSQL_PKGBASE.mariadb105= mariadb-client-10.5.*
MYSQL_PKGSRCDIR.mariadb105= ../../databases/mariadb105-client
MYSQL_PKG_PREFIX.mariadb105= mariadb105

MYSQL_PKGBASE.mariadb106= mariadb-client-10.6.*
MYSQL_PKGSRCDIR.mariadb106= ../../databases/mariadb106-client
MYSQL_PKG_PREFIX.mariadb106= mariadb106

MYSQL_PKGBASE.percona80= percona-client-8.0.*
MYSQL_PKGSRCDIR.percona80= ../../joyent/percona80-client
MYSQL_PKG_PREFIX.percona80= percona80

MYSQL_PKGBASE.percona57= percona-client-5.7.*
MYSQL_PKGSRCDIR.percona57= ../../joyent/percona57-client
MYSQL_PKG_PREFIX.percona57= percona57

MYSQL_PKGBASE.percona56= percona-client-5.6.*
MYSQL_PKGSRCDIR.percona56= ../../joyent/percona56-client
MYSQL_PKG_PREFIX.percona56= percona56

MYSQL_PKGBASE.percona80-cluster= percona-cluster-8.0.*
MYSQL_PKGSRCDIR.percona80-cluster= ../../joyent/percona80-cluster
MYSQL_PKG_PREFIX.percona80-cluster= percona80-cluster

MYSQL_PKGBASE.percona57-cluster= percona-cluster-5.7.*
MYSQL_PKGSRCDIR.percona57-cluster= ../../joyent/percona57-cluster
MYSQL_PKG_PREFIX.percona57-cluster= percona57-cluster

.for ver in ${MYSQL_VERSIONS_ALL}
MYSQL_OK.${ver}= no
MYSQL_INSTALLED.${ver}= no
_SYS_VARS.mysql+= MYSQL_PKGBASE.${ver} MYSQL_PKGSRCDIR.${ver}
_SYS_VARS.mysql+= MYSQL_PKG_PREFIX.${ver}
.endfor

.include "../../mk/bsd.prefs.mk"
Expand All @@ -71,7 +103,9 @@ _SYS_VARS.mysql+= MYSQL_PKGBASE.${ver} MYSQL_PKGSRCDIR.${ver}
# be chosen.
#
MYSQL_VERSION_DEFAULT?= mariadb106
MYSQL_VERSIONS_ACCEPTED?= 57 56 80 mariadb106 mariadb105 mariadb104
MYSQL_VERSIONS_ACCEPTED?= 57 56 80 mariadb106 mariadb105 mariadb104 \
percona80 percona57 percona56 \
percona80-cluster percona57-cluster

#
# Previous versions of this file used shouty caps in the version names. We
Expand Down Expand Up @@ -131,4 +165,7 @@ MYSQL_VERSION= ${MYSQL_VERSIONS_ACCEPTED:[1]}
PKG_FAIL_REASON+= "[mysql.buildlink3.mk] Invalid MySQL version '${MYSQL_VERSION}'."
.endif

MYSQL_PKG_PREFIX= ${MYSQL_PKG_PREFIX.${MYSQL_VERSION}}
MULTI+= MYSQL_VERSION=${MYSQL_VERSION}

.endif # MYSQL_VERSION_MK
2 changes: 1 addition & 1 deletion net/dnscheck/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ DEPENDS+= p5-Socket6>=0.19:../../net/p5-Socket6
DEPENDS+= p5-IO-Socket-INET6>=2.51:../../net/p5-IO-Socket-INET6
DEPENDS+= p5-Mail-RFC822-Address-[0-9]*:../../mail/p5-Mail-RFC822-Address
DEPENDS+= p5-DBI-[0-9]*:../../databases/p5-DBI
DEPENDS+= p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql
DEPENDS+= p5-DBD-{mysql,percona}*-[0-9]*:../../databases/p5-DBD-mysql
DEPENDS+= p5-Config-Any-[0-9]*:../../devel/p5-Config-Any
DEPENDS+= p5-File-ShareDir-[0-9]*:../../devel/p5-File-ShareDir
DEPENDS+= p5-File-ShareDir-Install-[0-9]*:../../devel/p5-File-ShareDir-Install
Expand Down
2 changes: 1 addition & 1 deletion net/icingaweb2/options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql-[0-9]*:../../databases/php-pdo_mysql

.if !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= ${PHP_PKG_PREFIX}-pdo-[0-9]*:../../databases/php-pdo
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql-[0-9]*:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql*-[0-9]*:../../databases/php-pdo_pgsql
.endif
2 changes: 1 addition & 1 deletion net/proftpd-mysql/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.include "../../net/proftpd/Makefile.module"

PROFTPD_MOD= mysql
PKGNAME= ${DISTNAME:S/proftpd/proftpd-${PROFTPD_MOD}/}
PKGNAME= ${DISTNAME:S/proftpd/proftpd-${MYSQL_PKG_PREFIX}/}
PKGREVISION= 1
COMMENT= MySQL module for proftpd

Expand Down
5 changes: 5 additions & 0 deletions net/proftpd/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ BUILD_DEFS+= VARBASE
CHECK_SHLIBS_SKIP= libexec/proftpd/*.a
CHECK_SSP_SKIP= ${CHECK_SHLIBS_SKIP}

SUBST_CLASSES+= libs
SUBST_STAGE.libs= pre-build
SUBST_FILES.libs= modules/mod_sql_mysql.c
SUBST_SED.libs= -e 's|^\(.\*\ \$$Libraries:\ \).* \$$|\1'"`mysql_config --libs`"'\ \$$|'

pre-configure:
cd ${WRKSRC} && ${TOOLS_CMD.autoconf} &&\
cd contrib/mod_load && ${TOOLS_CMD.autoconf}
Expand Down
Loading

0 comments on commit f3e4e13

Please sign in to comment.