From aef5a666706db2a5b97c1cc3d1fcc2ca05b22fcb Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Wed, 3 Aug 2016 12:47:05 +0000 Subject: Don't use extension.ini any more, and have each extension install in its file, so the order remains the same. Every PHP (or Zend) extension now installs its own .ini file in /usr/local/etc/php. A PHP extension will be automatically activated when installed. The order into which extensions are loaded is automatically guessed. In some very rare cases, the guess will be wrong, and PHP_MOD_PRIO will need to be set. Refer to the USES=php section of the Porter's Handbook for more information. Convert ports touching etc/php/extensions.ini manually, or telling the OP to do it. And finally, bump PORTREVISION for all php extensions. PR: 210697 Submitted by: mat Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D7022 --- www/php-templates/Makefile | 3 +++ www/php-templates/files/pkg-message.in | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'www/php-templates') diff --git a/www/php-templates/Makefile b/www/php-templates/Makefile index 15b43ae345a2..f517ee6c0366 100644 --- a/www/php-templates/Makefile +++ b/www/php-templates/Makefile @@ -31,5 +31,8 @@ do-install: ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}-doc/* ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php + @${ECHO_CMD} "extension="${PREFIX}/lib/php/${PHP_EXT_DIR}/templates.so" > \ + ${STAGEDIR}${PREFIX}/etc/php/ext-20-templates.ini .include diff --git a/www/php-templates/files/pkg-message.in b/www/php-templates/files/pkg-message.in index 22b6e4c63123..5564701a3f5f 100644 --- a/www/php-templates/files/pkg-message.in +++ b/www/php-templates/files/pkg-message.in @@ -2,7 +2,8 @@ You have installed the php-templates package. -Edit %%LOCALBASE%%/etc/php.ini and add: +The following line has been added to %%PREFIX%%/etc/php/ext-20-templates.ini, +so that the extension is automatically enabled: extension="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/templates.so" -- cgit v1.2.3