pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/flavor/pkg Record the build host (i.e. the machine ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cfb581bfd1e3
branches: trunk
changeset: 521502:cfb581bfd1e3
user: agc <agc%pkgsrc.org@localhost>
date: Mon Nov 13 18:02:09 2006 +0000
description:
Record the build host (i.e. the machine a package was built on) in the
build information.
Useful for binary package manipulation.
diffstat:
mk/flavor/pkg/metadata.mk | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 0960919317e7 -r cfb581bfd1e3 mk/flavor/pkg/metadata.mk
--- a/mk/flavor/pkg/metadata.mk Mon Nov 13 18:01:29 2006 +0000
+++ b/mk/flavor/pkg/metadata.mk Mon Nov 13 18:02:09 2006 +0000
@@ -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 @@
###
_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 @@
${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 \
Home |
Main Index |
Thread Index |
Old Index