Index: Mk/bsd.port.mk =================================================================== --- Mk/bsd.port.mk +++ Mk/bsd.port.mk @@ -120,6 +120,8 @@ # ALLFILES - All of ${DISTFILES} and ${PATCHFILES}. # EXTRACT_ONLY - If set, a subset of ${DISTFILES} you want to # actually extract. +# WWW - URL users can get more information on the provided package +# was previously part of pkg-descr # # (NOTE: by convention, the MAINTAINER entry (see above) should go here.) # @@ -3647,12 +3649,11 @@ ! ${AWK} -v audit="$${PORTS_AUDIT}" -f ${SCRIPTSDIR}/security-check.awk \ ${WRKDIR}/.PLIST.flattened ${WRKDIR}/.PLIST.readelf ${WRKDIR}/.PLIST.setuid ${WRKDIR}/.PLIST.writable; \ then \ - www_site=$$(cd ${.CURDIR} && ${MAKE} www-site); \ - if [ ! -z "$${www_site}" ]; then \ + if [ ! -z "${_WWW}" ]; then \ ${ECHO_MSG}; \ ${ECHO_MSG} " For more information, and contact details about the security"; \ ${ECHO_MSG} " status of this software, see the following webpage: "; \ - ${ECHO_MSG} "$${www_site}"; \ + ${ECHO_MSG} "${_WWW}"; \ fi; \ fi .endif @@ -3707,10 +3708,9 @@ .if !target(pretty-print-www-site) pretty-print-www-site: - @www_site=$$(cd ${.CURDIR} && ${MAKE} www-site); \ - if [ -n "$${www_site}" ]; then \ + if [ -n "${_WWW}" ]; then \ ${ECHO_MSG} -n " and/or visit the "; \ - ${ECHO_MSG} -n "web site"; \ + ${ECHO_MSG} -n "web site"; \ ${ECHO_MSG} " for further information"; \ fi .endif @@ -4337,7 +4337,7 @@ dp_PORT_OPTIONS='${PORT_OPTIONS}' \ dp_PREFIX='${PREFIX}' \ dp_USERS='${USERS:u:S/$/,/}' \ - dp_WWW='${WWW}' \ + dp_WWW='${_WWW}' \ ${PKG_NOTES_ENV} \ ${SH} ${SCRIPTSDIR}/create-manifest.sh @@ -4401,6 +4401,7 @@ _LIB_DEPENDS=${LIB_DEPENDS:C/^[^ :]+:([^ :@]+)(@[^ :]+)?(:[^ :]+)?/\1/:O:u:C,(^[^/]),${PORTSDIR}/\1,} _BUILD_DEPENDS=${BUILD_DEPENDS:C/^[^ :]+:([^ :@]+)(@[^ :]+)?(:[^ :]+)?/\1/:O:u:C,(^[^/]),${PORTSDIR}/\1,} ${_LIB_DEPENDS} _RUN_DEPENDS=${RUN_DEPENDS:C/^[^ :]+:([^ :@]+)(@[^ :]+)?(:[^ :]+)?/\1/:O:u:C,(^[^/]),${PORTSDIR}/\1,} ${_LIB_DEPENDS} +_WWW= ${WWW:U${MASTER_SITES:[1]}} . if exists(${DESCR}) _DESCR=${DESCR} . else @@ -4415,19 +4416,7 @@ . if empty(FLAVORS) || defined(_DESCRIBE_WITH_FLAVOR) describe: - @(${ECHO_CMD} -n "${PKGNAME}|${.CURDIR}|${PREFIX}|"; \ - ${ECHO_CMD} -n ${COMMENT:Q}; \ - ${ECHO_CMD} -n "|${_DESCR}|${MAINTAINER}|${CATEGORIES}|${_EXTRACT_DEPENDS}|${_PATCH_DEPENDS}|${_FETCH_DEPENDS}|${_BUILD_DEPENDS:O:u}|${_RUN_DEPENDS:O:u}|"; \ - while read one two discard; do \ - case "$$one" in \ - WWW:) case "$$two" in \ - https://*|http://*|ftp://*) ${ECHO_CMD} -n "$$two" ;; \ - *) ${ECHO_CMD} -n "http://$$two" ;; \ - esac; \ - break; \ - ;; \ - esac; \ - done < ${DESCR}; ${ECHO_CMD}) >>${INDEX_OUT} + @(${ECHO_CMD} "${PKGNAME}|${.CURDIR}|${PREFIX}|${COMMENT:Q}|${_DESCR}|${MAINTAINER}|${CATEGORIES}|${_EXTRACT_DEPENDS}|${_PATCH_DEPENDS}|${_FETCH_DEPENDS}|${_BUILD_DEPENDS:O:u}|${_RUN_DEPENDS:O:u}|${_WWW}" >> ${INDEX_OUT}) . else # empty(FLAVORS) describe: ${FLAVORS:S/^/describe-/} . for f in ${FLAVORS} @@ -4437,13 +4426,6 @@ . endif # empty(FLAVORS) . endif -www-site: -.if exists(${DESCR}) - @${AWK} '$$1 ~ /^WWW:/ {print $$2}' ${DESCR} | ${HEAD} -1 -.else - @${ECHO_CMD} -.endif - .if !target(readmes) readmes: readme .endif