summaryrefslogtreecommitdiff
path: root/Mk/Scripts/create-manifest.sh
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2022-09-07 21:32:54 +0200
committerStefan Eßer <se@FreeBSD.org>2022-09-07 21:32:54 +0200
commitddd0e820c8eb73acef94c72434c382982d0fa329 (patch)
tree5c599de1d7886738dedd8676f81d9c7a958b37d5 /Mk/Scripts/create-manifest.sh
parentdevel/aws-c-io: Update to 0.13.4 (diff)
Mk/bsd.ports.mk: Add suppport for WWW in Makefiles
Expect the project website or other relevant URL of a port to be specified in a WWW macro in its Makefile. This information used to be available in WWW: lines at the end of each port's pkg-descr file. By moving it into the Makefile, this value is easier to access, verify, and maintain. A WWW: line is added to the "desc" element of package manifests based on the WWW macro value by the create-manifest.sh script. This restores the previous contents of this line in the manifest (as e.g. expected by the Freshports website). The ports-mgmt/portlint port has been updated in commit 9800743f0 (version 2.19.13) to support the planned introduction of WWW in port Makefiles. Approved by: portmgr (tcberner) Differential Revision: https://reviews.freebsd.org/D36434
Diffstat (limited to 'Mk/Scripts/create-manifest.sh')
-rw-r--r--Mk/Scripts/create-manifest.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/Scripts/create-manifest.sh b/Mk/Scripts/create-manifest.sh
index 8619a6959cbe..252fcead9103 100644
--- a/Mk/Scripts/create-manifest.sh
+++ b/Mk/Scripts/create-manifest.sh
@@ -87,6 +87,10 @@ fi
# Copy the pkg-descr file
cp ${dp_DESCR} ${dp_METADIR}/+DESC
+if [ -n "${dp_WWW}" ] && ! grep -q '^WWW: ' ${dp_DESCR}; then
+ echo >> ${dp_METADIR}/+DESC
+ echo "WWW: ${dp_WWW}" >> ${dp_METADIR}/+DESC
+fi
# Concatenate all the scripts
output_files=