diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2014-05-17 02:43:37 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2014-05-17 02:43:37 +0000 |
commit | 1504bf2f9fe1f918aaee4233b4c439cf966896b9 (patch) | |
tree | f714c83697473d76c93f5a808db89c4183660d41 /Mk | |
parent | - Update to 2.0.20140517. (diff) |
Add support for package annotations. PKG_NOTES is a list of
annotation keys. For each key "foo", there should be a variable
PKG_NOTE_foo which contains the corresponding value.
Approved by: portmgr (bdrewery)
Notes
Notes:
svn path=/head/; revision=354276
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.pkgng.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Mk/bsd.pkgng.mk b/Mk/bsd.pkgng.mk index c73c3c47324c..45740ed89ad4 100644 --- a/Mk/bsd.pkgng.mk +++ b/Mk/bsd.pkgng.mk @@ -84,6 +84,13 @@ create-manifest: @[ -z "${PORT_OPTIONS:M${opt}}" ] || match="on" ; ${ECHO_MSG} -n " ${opt}: $${match:-off}," >> ${MANIFESTF} .endfor @${ECHO_CMD} "}" >> ${MANIFESTF} +.if defined(PKG_NOTES) + @${ECHO_CMD} -n "annotations: {" >> ${MANIFESTF} +.for note in ${PKG_NOTES} + @${ECHO_CMD} -n ' ${note}: "${PKG_NOTE_${note}:Q}",' >> ${MANIFESTF} +.endfor + @${ECHO_CMD} " }" >> ${MANIFESTF} +.endif @[ -f ${PKGINSTALL} ] && ${CP} ${PKGINSTALL} ${METADIR}/+INSTALL; \ ${RM} -f ${METADIR}/+PRE_INSTALL ; \ for a in ${PKGPREINSTALL}; do \ |