1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

- Update to 0.9.5-beta2 (PHP 5.1 compatible)

- Show ${INSTALL_*} command

PR:		95628
Approved by:	ale
This commit is contained in:
Marcus Alves Grando 2006-04-12 16:41:08 +00:00
parent bb45daf86e
commit fe78a4273a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159382
4 changed files with 20 additions and 37 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= eaccelerator
DISTVERSION= 0.9.5-beta1
DISTVERSION= 0.9.5-beta2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -18,7 +18,7 @@ USE_PHP= session
USE_PHPIZE= yes
USE_PHP_BUILD= yes
CONFIGURE_ARGS= --enable-eaccelerator=shared
CONFIGURE_ARGS= --enable-eaccelerator=shared --with-eaccelerator-sessions
USE_BZIP2= yes
SUB_FILES= pkg-message
@ -29,10 +29,10 @@ PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${PHP_VER} == 5
CONFIGURE_ARGS+=--without-eaccelerator-encoder
PLIST_SUB+= ENCODER="@comment "
CONFIGURE_ARGS+= --without-eaccelerator-encoder
PLIST_SUB+= ENCODER="@comment "
.else
PLIST_SUB+= ENCODER=""
PLIST_SUB+= ENCODER=""
post-build:
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g; s|0777|0755|g" \
@ -41,21 +41,21 @@ post-build:
do-install:
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
@${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \
${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}
.if ${PHP_VER} == 4
@${INSTALL_SCRIPT} ${WRKSRC}/encoder ${PREFIX}/bin
.endif
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ini ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.php ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}_password.php ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_SCRIPT} ${WRKSRC}/encoder ${PREFIX}/bin
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ini ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/control.php ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/dasm.php ${EXAMPLESDIR}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (eaccelerator-0.9.5-beta1.tar.bz2) = 29f68a5975c1a09dbd72c9e8ddd534a7
SHA256 (eaccelerator-0.9.5-beta1.tar.bz2) = f55781080ca48ba6d907c8101cf188987844a86d776c95b4f12dff2842d3f9d2
SIZE (eaccelerator-0.9.5-beta1.tar.bz2) = 109878
MD5 (eaccelerator-0.9.5-beta2.tar.bz2) = 2516b680ce372765d24e7b64003f1e64
SHA256 (eaccelerator-0.9.5-beta2.tar.bz2) = b04234714fa8ff9753ccbcafeb499718af8c064c18a5b245fa2f60e98eeae8a2
SIZE (eaccelerator-0.9.5-beta2.tar.bz2) = 113387

View File

@ -1,17 +0,0 @@
--- ea_restore.c.orig Sun Mar 19 18:42:48 2006
+++ ea_restore.c Sun Mar 19 18:45:26 2006
@@ -718,12 +718,13 @@
void restore_class_parent(char *parent, int len,
zend_class_entry * to TSRMLS_DC)
{
- DBG(ea_debug_printf, (EA_DEBUG, "restore_class_parent: restoring parent class %s of class %s\n", (char *) parent, to->name));
#ifdef ZEND_ENGINE_2
zend_class_entry** parent_ptr = NULL;
+ DBG(ea_debug_printf, (EA_DEBUG, "restore_class_parent: restoring parent class %s of class %s\n", (char *) parent, to->name));
if (zend_lookup_class(parent, len, &parent_ptr TSRMLS_CC) != SUCCESS)
#else
char *name_lc = estrndup(parent, len);
+ DBG(ea_debug_printf, (EA_DEBUG, "restore_class_parent: restoring parent class %s of class %s\n", (char *) parent, to->name));
zend_str_tolower(name_lc, len);
if (zend_hash_find(CG(class_table), (void *) name_lc, len + 1, (void **) &to->parent) != SUCCESS)
#endif

View File

@ -1,7 +1,7 @@
%%ENCODER%%bin/encoder
lib/php/%%PHP_EXT_DIR%%/eaccelerator.so
@dirrmtry lib/php/%%PHP_EXT_DIR%%
%%EXAMPLESDIR%%/control.php
%%EXAMPLESDIR%%/dasm.php
%%EXAMPLESDIR%%/eaccelerator.ini
%%EXAMPLESDIR%%/eaccelerator.php
%%EXAMPLESDIR%%/eaccelerator_password.php
@dirrm %%EXAMPLESDIR%%