Index: head/Mk/Scripts/create-manifest.sh =================================================================== --- head/Mk/Scripts/create-manifest.sh (revision 554893) +++ head/Mk/Scripts/create-manifest.sh (revision 554894) @@ -1,170 +1,171 @@ #!/bin/sh # $FreeBSD$ # # MAINTAINER: portmgr@FreeBSD.org set -e set -o pipefail . "${dp_SCRIPTSDIR}/functions.sh" validate_env dp_ACTUAL_PACKAGE_DEPENDS dp_CATEGORIES dp_COMMENT \ dp_COMPLETE_OPTIONS_LIST dp_DEPRECATED dp_DESCR dp_EXPIRATION_DATE \ dp_GROUPS dp_LICENSE dp_LICENSE_COMB dp_MAINTAINER dp_METADIR \ dp_NO_ARCH dp_PKGBASE dp_PKGDEINSTALL dp_PKGINSTALL dp_PKGMESSAGES \ dp_PKGORIGIN dp_PKGPOSTDEINSTALL dp_PKGPOSTINSTALL dp_PKGPOSTUPGRADE \ dp_PKGPREDEINSTALL dp_PKGPREINSTALL dp_PKGPREUPGRADE dp_PKGUPGRADE \ dp_PKGVERSION dp_PKG_BIN dp_PKG_IGNORE_DEPENDS dp_PKG_NOTES \ dp_PORT_OPTIONS dp_PREFIX dp_USERS dp_WWW [ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_CREATE_MANIFEST}" ] && set -x set -u listcontains() { local str lst elt str=$1 lst=$2 for elt in ${lst} ; do if [ ${elt} = ${str} ]; then return 0 fi done return 1 } mkdir -p ${dp_METADIR} # Save stdout and redirect it to the manifest file. exec 3>&1 >${dp_METADIR}/+MANIFEST # First, all the required bits cat <> ${output} [ -f "${input}.lua" ] && cp ${input}.lua ${dp_METADIR} done done done # *** STARTING NOW, STDOUT is +DISPLAY *** exec >${dp_METADIR}/+DISPLAY echo '[' for message in ${dp_PKGMESSAGES}; do if [ -f "${message}" ]; then #if if starts with [ then it is ucl and we do drop last and first line if head -1 "${message}" | grep -q '^\['; then sed '1d;$d' "${message}" else echo '{type: install, message=< NOTICE: The ${dp_PKGBASE} port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port EOD }, EOT fi if [ -n "${dp_DEPRECATED}" ]; then cat <<-EOT { message=< NOTICE: This port is deprecated; you may wish to reconsider installing it: ${dp_DEPRECATED}. EOT if [ -n "${dp_EXPIRATION_DATE}" ]; then cat <<-EOT It is scheduled to be removed on or after ${dp_EXPIRATION_DATE}. EOT fi printf 'EOD\n},\n' fi echo ']'