summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2009-05-02 16:14:37 +0000
committerreed <reed@pkgsrc.org>2009-05-02 16:14:37 +0000
commitd547799b004296fcbd3fbfa69fb52c9b7aea87b1 (patch)
treeb8e551d288115ca01aaeaa5aaeda4fb227e85ca5 /mk
parent5282370e78c7b395926c59e5c7ad49d700ff6ddf (diff)
downloadpkgsrc-d547799b004296fcbd3fbfa69fb52c9b7aea87b1.tar.gz
Add new metadata: PREV_PKGPATH and SUPERSEDES.
These will be available from pkg_summary(5) database. To be used to find previous packages when a package is moved or renamed. (Even though that is not recommended.) Documented in pkgsrc Guide and in the pkg_summary(5) manual page. Upcoming commit will have some packages modified to add them.
Diffstat (limited to 'mk')
-rw-r--r--mk/flavor/pkg/metadata.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/flavor/pkg/metadata.mk b/mk/flavor/pkg/metadata.mk
index fb3ecc27c68..e295cde6677 100644
--- a/mk/flavor/pkg/metadata.mk
+++ b/mk/flavor/pkg/metadata.mk
@@ -1,4 +1,4 @@
-# $NetBSD: metadata.mk,v 1.30 2008/05/21 20:39:52 abs Exp $
+# $NetBSD: metadata.mk,v 1.31 2009/05/02 16:14:37 reed Exp $
######################################################################
### The targets below are all PRIVATE.
@@ -47,6 +47,12 @@ ${_BUILD_INFO_FILE}: plist
.if defined(OWNER)
${RUN}${ECHO} "OWNER=${OWNER}" >> ${.TARGET}.tmp
.endif
+.if defined(PREV_PKGPATH)
+ ${RUN}${ECHO} "PREV_PKGPATH=${PREV_PKGPATH}" >> ${.TARGET}.tmp
+.endif
+.if defined(SUPERSEDES)
+ ${RUN}${ECHO} "SUPERSEDES=${SUPERSEDES}" >> ${.TARGET}.tmp
+.endif
${RUN}${ECHO} "BUILD_DATE=${_BUILD_DATE_cmd:sh}" >> ${.TARGET}.tmp
${RUN}${ECHO} "BUILD_HOST=${_BUILD_HOST_cmd:sh}" >> ${.TARGET}.tmp
.if !empty(CHECK_SHLIBS_SUPPORTED:M[yY][eE][sS])