pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add trial check MySQL version between acceptable an...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9048498edaa4
branches: trunk
changeset: 573582:9048498edaa4
user: taca <taca%pkgsrc.org@localhost>
date: Thu Mar 18 14:38:13 2010 +0000
description:
Add trial check MySQL version between acceptable and current installed.
diffstat:
mk/mysql.buildlink3.mk | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (43 lines):
diff -r ce3405e53c90 -r 9048498edaa4 mk/mysql.buildlink3.mk
--- a/mk/mysql.buildlink3.mk Thu Mar 18 12:47:56 2010 +0000
+++ b/mk/mysql.buildlink3.mk Thu Mar 18 14:38:13 2010 +0000
@@ -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 @@
# 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 @@
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
Home |
Main Index |
Thread Index |
Old Index