ports/145619: www/eaccelerator: patch for php 5.3.2
Bartosz Stec
bartosz.stec at it4pro.pl
Sun Apr 11 12:20:03 UTC 2010
The following reply was made to PR ports/145619; it has been noted by GNATS.
From: Bartosz Stec <bartosz.stec at it4pro.pl>
To: bug-followup at FreeBSD.org, spil.oss at gmail.com
Cc:
Subject: Re: ports/145619: www/eaccelerator: patch for php 5.3.2
Date: Sun, 11 Apr 2010 14:10:37 +0200
This is a multi-part message in MIME format.
--------------020303040200070403070805
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sorry for html garbage in my previous email.
I did a little more investigation and found that default behaviour in
current eaccelerator version changed a lot, and arguments for
./configure script must be chosen wisely to expect program to work same
way as earlier versions.
Here are details: http://www.eaccelerator.net/wiki/CompileConfiguration
I made an alternative patch to Makefile (based on submitted above) with
adjusted CONFIGURE_ARGS. Everything works fine now.
--
IT4Pro Bartosz Stec
http://www.it4pro.pl
tel: 607041002
e-mail: bartosz.stec at it4pro.pl
--------------020303040200070403070805
Content-Type: text/plain;
name="patch.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="patch.txt"
--- Makefile.orig 2008-06-18 14:26:58.000000000 +0200
+++ Makefile 2010-04-11 13:59:12.353195510 +0200
@@ -2,25 +2,29 @@
# Date created: Sat Mar 1 13:55:55 CET 2003
# Whom: Alex Dupre <sysadmin at alexdupre.com>
#
-# $FreeBSD: ports/www/eaccelerator/Makefile,v 1.39 2008/06/18 12:26:58 ale Exp $
+# $FreeBSD: ports/www/eaccelerator/Makefile,v 1.40 2010/04/11 08:10:38 ale Exp $
#
PORTNAME= eaccelerator
-PORTVERSION= 0.9.5.3
+PORTVERSION= 0.9.6
CATEGORIES= www
-MASTER_SITES= http://bart.eaccelerator.net/source/${PORTVERSION}/
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/eAccelerator%20${PORTVERSION}/ \
+ http://bart.eaccelerator.net/source/${PORTVERSION}/
MAINTAINER= ale at FreeBSD.org
-COMMENT= An opcode cache for PHP with encoder and loader
+COMMENT= A free open-source PHP accelerator & optimizer
-USE_PHP= session
+USE_PHP= yes
USE_PHPIZE= yes
USE_PHP_BUILD= yes
+IGNORE_WITH_PHP=4
CONFIGURE_ARGS= --enable-eaccelerator=shared \
--with-eaccelerator-shared-memory \
--with-eaccelerator-sessions \
--with-eaccelerator-content-caching \
+ --without-eaccelerator-encoder \
+ --without-eaccelerator-loader \
--with-eaccelerator-userid=80
USE_BZIP2= yes
@@ -31,24 +35,10 @@
.include <bsd.port.pre.mk>
-.if ${PHP_VER} == 5
-CONFIGURE_ARGS+= --without-eaccelerator-encoder
-PLIST_SUB+= ENCODER="@comment "
-.else
-PLIST_SUB+= ENCODER=""
-
-post-build:
- @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g; s|0777|0755|g" \
- ${WRKSRC}/encoder.php > ${WRKSRC}/encoder
-.endif
-
do-install:
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}
-.if ${PHP_VER} == 4
- ${INSTALL_SCRIPT} ${WRKSRC}/encoder ${PREFIX}/bin
-.endif
post-install:
.if !defined(NOPORTDOCS)
--------------020303040200070403070805--
More information about the freebsd-ports-bugs
mailing list