From root@corp.grupos.com.br  Fri May 20 17:26:03 2005
Return-Path: <root@corp.grupos.com.br>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id B94A116A4CE; Fri, 20 May 2005 17:26:03 +0000 (GMT)
Received: from gwmail1.grupos.com.br (gwmail1.grupos.com.br [66.90.64.125])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 56F1743D8E; Fri, 20 May 2005 17:26:03 +0000 (GMT)
	(envelope-from root@corp.grupos.com.br)
Received: from corp.grupos.com.br (unknown [150.162.166.55])
	by gwmail1.grupos.com.br (Postfix) with ESMTP id EF1AB3BE65;
	Fri, 20 May 2005 14:26:00 -0300 (BRT)
Received: by corp.grupos.com.br (Postfix, from userid 0)
	id DE57155EB; Fri, 20 May 2005 14:25:39 -0300 (BRT)
Message-Id: <20050520172539.DE57155EB@corp.grupos.com.br>
Date: Fri, 20 May 2005 14:25:39 -0300 (BRT)
From: Marcus Grando <marcus@corp.grupos.com.br>
Reply-To: Marcus Grando <marcus@corp.grupos.com.br>
To: FreeBSD-gnats-submit@freebsd.org
Cc: ale@FreeBSD.org
Subject: Update port: www/eaccelerator to 0.9.3
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         81316
>Category:       ports
>Synopsis:       Update port: www/eaccelerator to 0.9.3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 20 17:30:01 GMT 2005
>Closed-Date:    Sun Jun 05 15:09:14 GMT 2005
>Last-Modified:  Sun Jun 05 15:09:14 GMT 2005
>Originator:     Marcus Grando
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
Grupos Internet S/A
>Environment:
System: FreeBSD corp.grupos.com.br 4.11-STABLE FreeBSD 4.11-STABLE #49: Mon May 9 12:28:47 BRT 2005 root@corp.grupos.com.br:/usr/obj/usr/src/sys/CORP i386


	
>Description:
Update port: www/eaccelerator to 0.9.3

- Update to 0.9.3
- Check if lib/php/${PHP_EXT_DIR}/session.so exists
- files/pkg-message.in

Note: please, close this PR ports/77756

	
>How-To-Repeat:
	
>Fix:

	

--- eaccelerator.patch begins here ---
diff -ruN eaccelerator.orig/Makefile eaccelerator/Makefile
--- eaccelerator.orig/Makefile	Wed Jan 19 05:18:56 2005
+++ eaccelerator/Makefile	Fri May 20 14:14:45 2005
@@ -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 @@
 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 @@
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN eaccelerator.orig/distinfo eaccelerator/distinfo
--- eaccelerator.orig/distinfo	Wed Jan 19 05:18:56 2005
+++ eaccelerator/distinfo	Fri May 20 14:09:30 2005
@@ -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 -ruN eaccelerator.orig/files/pkg-message.in eaccelerator/files/pkg-message.in
--- eaccelerator.orig/files/pkg-message.in	Wed Jan 19 05:18:56 2005
+++ eaccelerator/files/pkg-message.in	Fri May 20 14:08:02 2005
@@ -7,10 +7,30 @@
 [eaccelerator]
 extension="eaccelerator.so"
 
+******************************************************
+*** Do not forget that insert this extension 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
+
+If you need change temporary directory, change this variable in php.ini
+
+eaccelerator.cache_dir="/tmp/eaccelerator"
+                       ^^^^^^^^^^^^^^^^^^^ -> Default value
+
+To enable/disable eaccelerator change this variable:
+
+eaccelerator.enable="1"
+                    ^^^ -> Default value
+
+To change amount memory eaccelerator use, change this variable:
+
+eaccelerator.shm_size="0"
+                      ^^^ -> Default value ("0" means OS default)
 
 *****************************************************************************
--- eaccelerator.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: pav 
Responsible-Changed-When: Fri May 20 17:38:18 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81316 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sun Jun 5 15:09:07 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81316 
>Unformatted:
