diff options
author | reed <reed> | 2006-04-12 19:28:47 +0000 |
---|---|---|
committer | reed <reed> | 2006-04-12 19:28:47 +0000 |
commit | 329db6bc9d5b16bb4cd660fcc7bac941b7f4d576 (patch) | |
tree | ff26f2e2e17d65104143cf4be2b9f17e72d36ea7 /mk | |
parent | e559b9551a6391ae035bbef06e752225725513f3 (diff) | |
download | pkgsrc-329db6bc9d5b16bb4cd660fcc7bac941b7f4d576.tar.gz |
Rename the _PKGTOOLS_VER variable in the +BUILD_INFO to
PKGTOOLS_VERSION (since that is what it is).
Also add to the +BUILD_INFO the:
HOMEPAGE (also is in DESC)
CATEGORIES
MAINTAINER
DATE (using "+%Y-%m-%d %H:%M:%S %z")
This information will be included in the upcoming
pkg_info -X "summary" output.
(In my own pkgsrc, I have been recording the date and maintainer
for over two years.)
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 6f86d5c8efa..ac9806be601 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1814 2006/04/10 04:47:30 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1815 2006/04/12 19:28:47 reed Exp $ # # This file is in the public domain. # @@ -420,6 +420,10 @@ _PKGSRC_BUILD_TARGETS= build test _PKGSRC_BUILD_TARGETS= build .endif +.if !defined(_THE_DATE) +_THE_DATE!= ${DATE} "+%Y-%m-%d %H:%M:%S %z" +.endif + # The user can override the NO_PACKAGE by specifying this from # the make command line .if defined(FORCE_PACKAGE) @@ -3533,7 +3537,7 @@ pre-install-fake-pkg: @${ECHO} "GMAKE=`${GMAKE} --version | ${GREP} Make`" >> ${BUILD_INFO_FILE} . endif ${_PKG_SILENT}${_PKG_DEBUG} \ - ${ECHO} "_PKGTOOLS_VER=${PKGTOOLS_VERSION}" >> ${BUILD_INFO_FILE} + ${ECHO} "PKGTOOLS_VERSION=${PKGTOOLS_VERSION}" >> ${BUILD_INFO_FILE} .endif .PHONY: post-install-fake-pkg @@ -3611,6 +3615,14 @@ post-install-fake-pkg: ${PLIST} ${DESCR} ${MESSAGE} done . endif ${_PKG_SILENT}${_PKG_DEBUG} \ + ${ECHO} "HOMEPAGE=${HOMEPAGE}" >> ${BUILD_INFO_FILE} + ${_PKG_SILENT}${_PKG_DEBUG} \ + ${ECHO} "CATEGORIES=${CATEGORIES}" >> ${BUILD_INFO_FILE} + ${_PKG_SILENT}${_PKG_DEBUG} \ + ${ECHO} "MAINTAINER=${MAINTAINER}" >> ${BUILD_INFO_FILE} + ${_PKG_SILENT}${_PKG_DEBUG} \ + ${ECHO} "DATE=${_THE_DATE}" >> ${BUILD_INFO_FILE} + ${_PKG_SILENT}${_PKG_DEBUG} \ size_this=`${MAKE} ${MAKEFLAGS} print-pkg-size-this`; \ size_depends=`${MAKE} ${MAKEFLAGS} print-pkg-size-depends`; \ ${ECHO} $$size_this >${SIZE_PKG_FILE}; \ |