diff options
author | taca <taca> | 2010-03-18 14:38:13 +0000 |
---|---|---|
committer | taca <taca> | 2010-03-18 14:38:13 +0000 |
commit | b66c1035183db676fa65fac3cb0a3370372ab589 (patch) | |
tree | 52dd46c613b2a5d0a0f740f5eb5c6ca2cdc7c704 /mk | |
parent | d8b3118fb3ed79a45aa275dbea7b951f6c4b1e19 (diff) | |
download | pkgsrc-b66c1035183db676fa65fac3cb0a3370372ab589.tar.gz |
Add trial check MySQL version between acceptable and current installed.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/mysql.buildlink3.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mk/mysql.buildlink3.mk b/mk/mysql.buildlink3.mk index 1c563b2c88f..e5c800427fd 100644 --- a/mk/mysql.buildlink3.mk +++ b/mk/mysql.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: mysql.buildlink3.mk,v 1.10 2010/03/05 13:47:06 taca Exp $ +# $NetBSD: mysql.buildlink3.mk,v 1.11 2010/03/18 14:38:13 taca Exp $ # # This file is included by packages that require some version of the # MySQL database client. @@ -41,14 +41,17 @@ _MYSQL_VERSION_${mv}_OK= yes # check what is installed .if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.16) _MYSQL_VERSION_51_INSTALLED= yes +_MYSQL_VERSION_INSTALLED= 51 .endif .if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.15) _MYSQL_VERSION_50_INSTALLED= yes +_MYSQL_VERSION_INSTALLED= 50 .endif .if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.14) _MYSQL_VERSION_41_INSTALLED= yes +_MYSQL_VERSION_INSTALLED= 41 .endif # if a version is explicitely required, take it @@ -99,6 +102,15 @@ MYSQL_PKGSRCDIR= ../../databases/mysql4-client PKG_FAIL_REASON+= "[mysql.buildlink3.mk] ${_MYSQL_VERSION} is not a valid mysql package." .endif +# +# check installed version aginst required: +# +.if defined(_MYSQL_VERSION_INSTALLED) +.if ${_MYSQL_VERSION} != ${_MYSQL_VERSION_INSTALLED} +PKG_SKIP_REASON+= "${PKGBASE} requires mysql-${_MYSQL_VERSION}, but mysql-${_MYSQL_VERSION_INSTALLED} is already installed." +.endif +.endif + .include "${MYSQL_PKGSRCDIR}/buildlink3.mk" .endif # MYSQL_VERSION_MK |