diff options
author | tron <tron@pkgsrc.org> | 2001-03-23 16:02:23 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-03-23 16:02:23 +0000 |
commit | f4912b797b48b334ee6e0bc8d5f9ee287dc167b4 (patch) | |
tree | 49aae471684065d7854b7b8e82a1e3439c6ba213 /mk/bsd.pkg.mk | |
parent | 6b715de33b48a4aa5d622e3cae6131943f9bbcb2 (diff) | |
download | pkgsrc-f4912b797b48b334ee6e0bc8d5f9ee287dc167b4.tar.gz |
Add a version check for the installed Zoularis version.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 37402bb2273..a1a81d5ebce 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.694 2001/03/23 14:09:23 tron Exp $ +# $NetBSD: bsd.pkg.mk,v 1.695 2001/03/23 16:02:23 tron Exp $ # # This file is in the public domain. # @@ -697,8 +697,12 @@ uptodate-digest: # Latest version of pkgtools required for this file. PKGTOOLS_REQD= 20010306 -# Check that we're using up-to-date pkg_* tools with this file. +# Check that we are using up-to-date pkg_* tools with this file. +.if defined(ZOULARIS_VERSION) +uptodate-pkgtools: uptodate-zoularis +.else uptodate-pkgtools: +.endif ${_PKG_SILENT}${_PKG_DEBUG} \ if [ ${PKGTOOLS_VERSION} -lt ${PKGTOOLS_REQD} ]; then \ case ${PKGNAME} in \ @@ -712,6 +716,20 @@ uptodate-pkgtools: esac \ fi +# Latest version of Zoularis required for this file. +ZOULARIS_REQD= 20010323 + +# Check that we are using up-to-date Zoularis. +.if defined(ZOULARIS_VERSION) +uptodate-zoularis: + ${_PKG_SILENT}${_PKG_DEBUG} \ + if [ ${ZOULARIS_VERSION} -lt ${ZOULARIS_REQD} ]; then \ + ${ECHO} "Your Zoularis needs to be updated to the ${ZOULARIS_REQD:C|(....)(..)(..)|\1/\2/\3|} version."; \ + ${ECHO} "The installed Zoularis was last updated on ${ZOULARIS_VERSION:C|(....)(..)(..)|\1/\2/\3|}."; \ + ${FALSE}; \ + fi +.endif + # Files to create for versioning and build information BUILD_VERSION_FILE= ${WRKDIR}/.build_version BUILD_INFO_FILE= ${WRKDIR}/.build_info |