summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2006-11-13 18:02:09 +0000
committeragc <agc@pkgsrc.org>2006-11-13 18:02:09 +0000
commit5f99b98c1c09646fe93316ad54b6eab16782912e (patch)
tree0a2394c1e1afc0887da4f63d3e4e5ee5a09a407f
parenta4167f6f79f5206eff7f582e7e300b25e4ae3ecf (diff)
downloadpkgsrc-5f99b98c1c09646fe93316ad54b6eab16782912e.tar.gz
Record the build host (i.e. the machine a package was built on) in the
build information. Useful for binary package manipulation.
-rw-r--r--mk/flavor/pkg/metadata.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/flavor/pkg/metadata.mk b/mk/flavor/pkg/metadata.mk
index 98c5f701f99..73126b8738a 100644
--- a/mk/flavor/pkg/metadata.mk
+++ b/mk/flavor/pkg/metadata.mk
@@ -1,4 +1,4 @@
-# $NetBSD: metadata.mk,v 1.12 2006/10/09 12:25:44 joerg Exp $
+# $NetBSD: metadata.mk,v 1.13 2006/11/13 18:02:09 agc Exp $
######################################################################
### The targets below are all PRIVATE.
@@ -21,6 +21,7 @@ ${PKG_DB_TMPDIR}:
###
_BUILD_INFO_FILE= ${PKG_DB_TMPDIR}/+BUILD_INFO
_BUILD_DATE_cmd= ${DATE} "+%Y-%m-%d %H:%M:%S %z"
+_BUILD_HOST_cmd= ${UNAME} -a
_METADATA_TARGETS+= ${_BUILD_INFO_FILE}
${_BUILD_INFO_FILE}: plist
@@ -55,6 +56,8 @@ ${_BUILD_INFO_FILE}: plist
${ECHO} "MAINTAINER=${MAINTAINER}" >> ${.TARGET}.tmp
${_PKG_SILENT}${_PKG_DEBUG} \
${ECHO} "BUILD_DATE=${_BUILD_DATE_cmd:sh}" >> ${.TARGET}.tmp
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ ${ECHO} "BUILD_HOST=${_BUILD_HOST_cmd:sh}" >> ${.TARGET}.tmp
.if !empty(CHECK_SHLIBS_SUPPORTED:M[yY][eE][sS])
${_PKG_SILENT}${_PKG_DEBUG} \
case ${LDD:Q}"" in \