aboutsummaryrefslogtreecommitdiff
path: root/www/eaccelerator
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-06-05 15:08:59 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-06-05 15:08:59 +0000
commit90c9e71129ab91b03df5e3da164e67d6e5dbfb74 (patch)
treea14bbc2426da3d7fa57e18f3bb8f3e76a73fd907 /www/eaccelerator
parentab7e87d228dc7cca06867f25d971ba67d5025dfe (diff)
downloadports-90c9e71129ab91b03df5e3da164e67d6e5dbfb74.tar.gz
ports-90c9e71129ab91b03df5e3da164e67d6e5dbfb74.zip
Notes
Diffstat (limited to 'www/eaccelerator')
-rw-r--r--www/eaccelerator/Makefile22
-rw-r--r--www/eaccelerator/distinfo4
-rw-r--r--www/eaccelerator/files/pkg-message.in16
3 files changed, 29 insertions, 13 deletions
diff --git a/www/eaccelerator/Makefile b/www/eaccelerator/Makefile
index e80d15d9f974..2fb7e7b2930a 100644
--- a/www/eaccelerator/Makefile
+++ b/www/eaccelerator/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= eaccelerator
-PORTVERSION= 0.9.2a
+PORTVERSION= 0.9.3
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -17,13 +17,27 @@ COMMENT= An opcode cache for PHP with encoder and loader
USE_PHP= yes
USE_PHPIZE= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}
-
CONFIGURE_ARGS= --enable-eaccelerator=shared
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
+.include <bsd.port.pre.mk>
+
+.if !exists(${LOCALBASE}/lib/php/${PHP_EXT_DIR}/session.so)
+WITHOUT_PHP_SESSION= yes
+CONFIGURE_ARGS+= --without-eaccelerator-sessions
+.endif
+
+pre-everything::
+.if defined(WITHOUT_PHP_SESSION)
+ @${ECHO_MSG} "===>"
+ @${ECHO_MSG} "===> If you use ${PORTNAME} with php session, please"
+ @${ECHO_MSG} "===> press CTRL+C and install www/php${PHP_VER}-session"
+ @${ECHO_MSG} "===>"
+ @sleep 2
+.endif
+
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
@@ -48,4 +62,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/www/eaccelerator/distinfo b/www/eaccelerator/distinfo
index 8dd360f7d2ac..e33bef956e5d 100644
--- a/www/eaccelerator/distinfo
+++ b/www/eaccelerator/distinfo
@@ -1,2 +1,2 @@
-MD5 (eaccelerator-0.9.2a.tar.gz) = e9059ebd49f14835534a1d96a97ababd
-SIZE (eaccelerator-0.9.2a.tar.gz) = 115791
+MD5 (eaccelerator-0.9.3.tar.gz) = b17ddf953f18ee6df5c2c24ffccb37d9
+SIZE (eaccelerator-0.9.3.tar.gz) = 133120
diff --git a/www/eaccelerator/files/pkg-message.in b/www/eaccelerator/files/pkg-message.in
index 4420ec2ee1a0..7b64641c161c 100644
--- a/www/eaccelerator/files/pkg-message.in
+++ b/www/eaccelerator/files/pkg-message.in
@@ -1,16 +1,18 @@
*****************************************************************************
-You have installed the eaccelerator package.
+Edit %%LOCALBASE%%/etc/php/extensions.ini and add:
-Edit %%LOCALBASE%%/etc/php.ini and add:
+extension=eaccelerator.so
-[eaccelerator]
-extension="eaccelerator.so"
+****************************************************
+*** This extension must be loaded after ***
+*** extension=session.so ***
+****************************************************
Then create the cache directory:
- mkdir /tmp/eaccelerator
- chown www /tmp/eaccelerator
- chmod 0700 /tmp/eaccelerator
+mkdir /tmp/eaccelerator
+chown www /tmp/eaccelerator
+chmod 0700 /tmp/eaccelerator
*****************************************************************************