summaryrefslogtreecommitdiff
path: root/devel/ioncube
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-08-03 12:47:05 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-08-03 12:47:05 +0000
commitaef5a666706db2a5b97c1cc3d1fcc2ca05b22fcb (patch)
tree0ef0e6e265bc625030daf067c3dd5dc211eab79b /devel/ioncube
parentAdd 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 'devel/ioncube')
-rw-r--r--devel/ioncube/Makefile5
-rw-r--r--devel/ioncube/files/pkg-message.in14
-rw-r--r--devel/ioncube/pkg-plist1
3 files changed, 10 insertions, 10 deletions
diff --git a/devel/ioncube/Makefile b/devel/ioncube/Makefile
index 175e4b2bf2ac..d55953ad39f1 100644
--- a/devel/ioncube/Makefile
+++ b/devel/ioncube/Makefile
@@ -31,5 +31,10 @@ do-install:
${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/ioncube_loader.so
${INSTALL_DATA} ${WRKSRC}/ioncube_loader_fre_${PHP_INSTVER}_ts.so \
${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/ioncube_loader_ts.so
+# Put it before opcache, like the previous pkg-message was saying
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php
+ @${ECHO_CMD} "[Zend]" > ${STAGEDIR}${PREFIX}/etc/php/ext-05-ioncube.ini
+ @${ECHO_CMD} "zend_extension=${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/ioncube_loader.so" >> ${STAGEDIR}${PREFIX}/etc/php/ext-05-ioncube.ini
+ @${ECHO_CMD} "zend_extension_ts=${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/ioncube_loader_ts.so" >> ${STAGEDIR}${PREFIX}/etc/php/ext-05-ioncube.ini
.include <bsd.port.mk>
diff --git a/devel/ioncube/files/pkg-message.in b/devel/ioncube/files/pkg-message.in
index 5bb7f4f2bd2d..d431bfd1ba4c 100644
--- a/devel/ioncube/files/pkg-message.in
+++ b/devel/ioncube/files/pkg-message.in
@@ -1,14 +1,8 @@
-
You have installed the ionCube loader package.
-Edit %%LOCALBASE%%/etc/php.ini or %%LOCALBASE%%/etc/php/extensions.ini
-and add this three lines:
+The following lines have been added to %%PREFIX%%/etc/php/ext-05-ioncube.ini so
+that the extension has been automatically activated.
---------------------------------------------------------------------------------
[Zend]
-zend_extension="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/ioncube/ioncube_loader.so"
-zend_extension_ts="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/ioncube/ioncube_loader_ts.so"
---------------------------------------------------------------------------------
-
-NOTE: If you have any Zend Extension already installed - you need put this before
-existing zend_extension lines.
+zend_extension=%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/ioncube/ioncube_loader.so
+zend_extension_ts=%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/ioncube/ioncube_loader_ts.so
diff --git a/devel/ioncube/pkg-plist b/devel/ioncube/pkg-plist
index 98591e17a5ba..188863ce3056 100644
--- a/devel/ioncube/pkg-plist
+++ b/devel/ioncube/pkg-plist
@@ -1,2 +1,3 @@
+etc/php/ext-05-ioncube.ini
lib/php/%%PHP_EXT_DIR%%/ioncube/ioncube_loader.so
lib/php/%%PHP_EXT_DIR%%/ioncube/ioncube_loader_ts.so