diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-08-03 12:47:05 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-08-03 12:47:05 +0000 |
commit | aef5a666706db2a5b97c1cc3d1fcc2ca05b22fcb (patch) | |
tree | 0ef0e6e265bc625030daf067c3dd5dc211eab79b /www/php-screw | |
parent | Add a PKGMESSAGES variable that allows the framework to have more than (diff) |
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
Notes
Notes:
svn path=/head/; revision=419514
Diffstat (limited to 'www/php-screw')
-rw-r--r-- | www/php-screw/Makefile | 6 | ||||
-rw-r--r-- | www/php-screw/files/pkg-message.in | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/www/php-screw/Makefile b/www/php-screw/Makefile index 1fa740c15dfa..7e784622a92b 100644 --- a/www/php-screw/Makefile +++ b/www/php-screw/Makefile @@ -40,9 +40,11 @@ do-build: do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR} - @${INSTALL_DATA} ${WRKSRC}/modules/php_screw.so \ + @${INSTALL_LIB} ${WRKSRC}/modules/php_screw.so \ ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR} @${INSTALL_PROGRAM} ${WRKSRC}/tools/screw ${STAGEDIR}${PREFIX}/bin - @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/php_screw.so + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php + @${ECHO_CMD} "extension="${PREFIX}/lib/php/${PHP_EXT_DIR}/php_screw.so" > \ + ${STAGEDIR}${PREFIX}/etc/php/ext-30-screw.ini .include <bsd.port.mk> diff --git a/www/php-screw/files/pkg-message.in b/www/php-screw/files/pkg-message.in index d55d343ff0e3..9da44833d26e 100644 --- a/www/php-screw/files/pkg-message.in +++ b/www/php-screw/files/pkg-message.in @@ -2,7 +2,8 @@ You have installed the php-screw package. -Edit %%LOCALBASE%%/etc/php.ini and add: +The following line has been added to %%PREFIX%%/etc/php/ext-30-screw.ini, +so that the extension is automatically enabled: extension="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/php_screw.so" |