aboutsummaryrefslogtreecommitdiffstats
path: root/www/eaccelerator
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2005-11-22 21:17:16 +0800
committeredwin <edwin@FreeBSD.org>2005-11-22 21:17:16 +0800
commita9f772a744a6ee9cb18b44ffaec8deb38e439754 (patch)
tree2d6179d0c5c0bd084be9d4854f91948e69e76b01 /www/eaccelerator
parentb7b6a5282879791b770b1228899c7dcd77728d75 (diff)
downloadfreebsd-ports-gnome-a9f772a744a6ee9cb18b44ffaec8deb38e439754.tar.gz
freebsd-ports-gnome-a9f772a744a6ee9cb18b44ffaec8deb38e439754.tar.zst
freebsd-ports-gnome-a9f772a744a6ee9cb18b44ffaec8deb38e439754.zip
[PATCH] www/eaccelerator: security issue & provide more installation instructions
- Fix some security issue(s/0777/0755) - Provide more installation instructions PR: ports/85872 Submitted by: chinsan <chinsan.tw@gmail.com> Approved by: maintainer timeout
Diffstat (limited to 'www/eaccelerator')
-rw-r--r--www/eaccelerator/Makefile3
-rw-r--r--www/eaccelerator/files/pkg-message.in38
2 files changed, 33 insertions, 8 deletions
diff --git a/www/eaccelerator/Makefile b/www/eaccelerator/Makefile
index d3f7e236bb22..18388740a6b7 100644
--- a/www/eaccelerator/Makefile
+++ b/www/eaccelerator/Makefile
@@ -29,7 +29,8 @@ PORTDOCS= *
.endif
post-build:
- @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/encoder.php > ${WRKSRC}/encoder
+ @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g; s|0777|0755|g" \
+ ${WRKSRC}/encoder.php > ${WRKSRC}/encoder
do-install:
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
diff --git a/www/eaccelerator/files/pkg-message.in b/www/eaccelerator/files/pkg-message.in
index 6c5ca5bdfd2e..4c6f79691328 100644
--- a/www/eaccelerator/files/pkg-message.in
+++ b/www/eaccelerator/files/pkg-message.in
@@ -2,14 +2,38 @@
You have installed the eaccelerator package.
-Edit %%LOCALBASE%%/etc/php.ini and add:
+1. Edit %%LOCALBASE%%/etc/php.ini and add:
-zend_extension="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/eaccelerator.so"
+ zend_extension="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/eaccelerator.so"
-Then create the cache directory:
+ ****************************************************
+ *** This extension must be loaded after ***
+ *** extension=session.so ***
+ ****************************************************
-mkdir /tmp/eaccelerator
-chown www /tmp/eaccelerator
-chmod 0700 /tmp/eaccelerator
+2. Then create the cache directory:
-*****************************************************************************
+ # mkdir /tmp/eaccelerator
+ # chown www /tmp/eaccelerator
+ # chmod 0700 /tmp/eaccelerator
+
+3. Finally, edit %%LOCALBASE%%/etc/php.ini to fit your need:
+ ; For example
+ eaccelerator.shm_size="16"
+ eaccelerator.cache_dir="/tmp/eaccelerator"
+ eaccelerator.enable="1"
+ eaccelerator.optimizer="1"
+ eaccelerator.check_mtime="1"
+ eaccelerator.debug="0"
+ eaccelerator.filter=""
+ eaccelerator.shm_max="0"
+ eaccelerator.shm_ttl="0"
+ eaccelerator.shm_prune_period="0"
+ eaccelerator.shm_only="0"
+ eaccelerator.compress="1"
+ eaccelerator.compress_level="9"
+
+ For more detailed information, please take a look at
+ http://eaccelerator.net/IniSettingsUk
+
+****************************************************************************