From 072325a1b16ebdf5a48e134c68af0dcfc6a6d262 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Thu, 6 Jun 2019 11:46:06 +0000 Subject: Put back the php extension installation message, now that it can be shown on installation only. Differential Revision: https://reviews.freebsd.org/D20510 --- Mk/Uses/php.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Mk/Uses') diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk index 27f6433e7f97..685d85a25eb3 100644 --- a/Mk/Uses/php.mk +++ b/Mk/Uses/php.mk @@ -300,6 +300,8 @@ _INCLUDE_USES_PHP_POST_MK=yes . if ${php_ARGS:Mext} || ${php_ARGS:Mzend} PHP_MODNAME?= ${PORTNAME} +PHP_EXT_PKGMESSAGE= ${WRKDIR}/php-ext-pkg-message +_PKGMESSAGES+= ${PHP_EXT_PKGMESSAGE} PHP_HEADER_DIRS+= . # If there is no priority defined, we wing it. . if !defined(PHP_MOD_PRIO) @@ -348,6 +350,25 @@ add-plist-phpext: >> ${TMPPLIST} @${ECHO_CMD} "${PHP_EXT_INI_FILE}" \ >> ${TMPPLIST} + @${ECHO_CMD} "[" > ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} "{" >> ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} " message: <> ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} "****************************************************************************" >> ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} "" >> ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} "The following line has been added to your ${PREFIX}/${PHP_EXT_INI_FILE}" >> ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} "configuration file to automatically load the installed extension:" >> ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} "" >> ${PHP_EXT_PKGMESSAGE} +. if ${php_ARGS:Mzend} + @${ECHO_CMD} "zend_extension=${PHP_MODNAME}.so" >> ${PHP_EXT_PKGMESSAGE} +. else + @${ECHO_CMD} "extension=${PHP_MODNAME}.so" >> ${PHP_EXT_PKGMESSAGE} +. endif + @${ECHO_CMD} "" >> ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} "****************************************************************************" >> ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} "EOD" >> ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} " type: install" >> ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} "}" >> ${PHP_EXT_PKGMESSAGE} + @${ECHO_CMD} "]" >> ${PHP_EXT_PKGMESSAGE} . endif # Extensions -- cgit v1.2.3