1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Import pecl-zendoptimizerplus to replace ZendOptimizer. It supports all PHP

releases we have in ports tree.

The Zend Optimizer+ provides faster PHP execution through opcode caching and
optimization. It improves PHP performance by storing precompiled script
bytecode in the shared memory. This eliminates the stages of reading code from
the disk and compiling it on future access. In addition, it applies a few
bytecode optimization patterns that make code execution faster.

WWW: https://github.com/zend-dev/ZendOptimizerPlus
This commit is contained in:
Alex Dupre 2013-03-07 09:31:55 +00:00
parent bf1934e1bc
commit c0825b809f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313570
11 changed files with 43 additions and 104 deletions

1
MOVED
View File

@ -4132,3 +4132,4 @@ sysutils/udesc_dump||2013-03-06|Has expired: Broken for more than 6 month
textproc/gxditview||2013-03-06|Has expired: Broken for more than 6 month
x11/powershell||2013-03-06|Has expired: Broken for more then 6 month
devel/py-setuptools|devel/py-distribute|2013-03-06|Replaced with distribute
devel/ZendOptimizer|www/pecl-zendoptimizerplus|2013-03-07|Replaced with supported open-source release

View File

@ -28,7 +28,6 @@
SUBDIR += R-cran-reshape
SUBDIR += R-cran-reshape2
SUBDIR += SpecTcl
SUBDIR += ZendOptimizer
SUBDIR += aap
SUBDIR += abi-compliance-checker
SUBDIR += ace

View File

@ -1,65 +0,0 @@
# New ports collection makefile for: ZendOptimizer
# Date created: Thu Apr 24 00:23:22 CET 2003
# Whom: Alex Dupre <sysadmin@alexdupre.com>
#
# $FreeBSD$
#
PORTNAME= ZendOptimizer
DISTVERSION= 3.3.0a
CATEGORIES= devel
MASTER_SITES= http://downloads.zend.com/optimizer/${DISTVERSION}/
DISTNAME= ${PORTNAME}-${DISTVERSION}-freebsd${VER}-${ARCH}
MAINTAINER= ale@FreeBSD.org
COMMENT= An optimizer for PHP code
ONLY_FOR_ARCHS= i386 amd64
NO_BUILD= yes
USE_PHP= yes
DEFAULT_PHP_VER=52
IGNORE_WITH_PHP=5
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
# Check for FreeBSD version
VER= 6.0
.if ${OSVERSION} >= 700043
LIB_DEPENDS+= m.4:${PORTSDIR}/misc/compat6x
.endif
.if ${PHP_VER} == 4
ZEND_PATH= 4.4.x
.else
ZEND_PATH= 5.2.x
.endif
PLIST_SUB+= ZEND_PATH=${ZEND_PATH}
PORTDOCS= *
do-install:
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}/Optimizer/php-${ZEND_PATH}
${INSTALL_DATA} ${WRKSRC}/data/${ZEND_PATH:S/./_/g}_comp/ZendOptimizer.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}/Optimizer/php-${ZEND_PATH}/ZendOptimizer.so
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}/Optimizer_TS/php-${ZEND_PATH}
${INSTALL_DATA} ${WRKSRC}/data/${ZEND_PATH:S/./_/g}_comp/TS/ZendOptimizer.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}/Optimizer_TS/php-${ZEND_PATH}/ZendOptimizer.so
${INSTALL_DATA} ${WRKSRC}/data/ZendExtensionManager.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}
${INSTALL_DATA} ${WRKSRC}/data/ZendExtensionManager_TS.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/EULA-ZendOptimizer ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README-ZendOptimizer ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/data/doc/* ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View File

@ -1,4 +0,0 @@
SHA256 (ZendOptimizer-3.3.0a-freebsd6.0-i386.tar.gz) = 5670b73057b5fdbccfdb09ecf1b7280f9a6014b5bb353d3d7b9ec0eaea079796
SIZE (ZendOptimizer-3.3.0a-freebsd6.0-i386.tar.gz) = 9353326
SHA256 (ZendOptimizer-3.3.0a-freebsd6.0-amd64.tar.gz) = 24f8c4f7a5a47e371ee4f5f3288c93e5e33f1977f71f0b3a1887915703dbc180
SIZE (ZendOptimizer-3.3.0a-freebsd6.0-amd64.tar.gz) = 9979608

View File

@ -1,16 +0,0 @@
********************************************************************************
You have installed the ZendOptimizer package.
Edit %%LOCALBASE%%/etc/php.ini and add:
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/Optimizer"
zend_extension_manager.optimizer_ts="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/Optimizer_TS"
zend_extension="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/ZendExtensionManager.so"
zend_extension_ts="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/ZendExtensionManager_TS.so"
NOTE: PHP should be compiled in non-debug mode (default).
********************************************************************************

View File

@ -1,9 +0,0 @@
The Zend Optimizer is a free application that runs the files
encoded by the Zend Encoder and Zend SafeGuard Suite, while
enhancing the running speed of PHP applications.
Benefits:
- Enables users to run files encoded by the Zend Encoder
- Increases runtime performance up to 40%.
WWW: http://www.zend.com/store/products/zend-optimizer.php

View File

@ -1,9 +0,0 @@
lib/php/%%PHP_EXT_DIR%%/ZendExtensionManager_TS.so
lib/php/%%PHP_EXT_DIR%%/ZendExtensionManager.so
lib/php/%%PHP_EXT_DIR%%/Optimizer/php-%%ZEND_PATH%%/ZendOptimizer.so
lib/php/%%PHP_EXT_DIR%%/Optimizer_TS/php-%%ZEND_PATH%%/ZendOptimizer.so
@dirrm lib/php/%%PHP_EXT_DIR%%/Optimizer_TS/php-%%ZEND_PATH%%
@dirrm lib/php/%%PHP_EXT_DIR%%/Optimizer_TS
@dirrm lib/php/%%PHP_EXT_DIR%%/Optimizer/php-%%ZEND_PATH%%
@dirrm lib/php/%%PHP_EXT_DIR%%/Optimizer
@dirrmtry lib/php/%%PHP_EXT_DIR%%

View File

@ -1392,6 +1392,7 @@
SUBDIR += pecl-sphinx
SUBDIR += pecl-swish
SUBDIR += pecl-yaf
SUBDIR += pecl-zendoptimizerplus
SUBDIR += pelican
SUBDIR += perlbal
SUBDIR += pglogd

View File

@ -0,0 +1,32 @@
# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD$
PORTNAME= zendoptimizerplus
PORTVERSION= 7.0.0
CATEGORIES= www
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
EXTRACT_SUFX= .tgz
DIST_SUBDIR= PECL
MAINTAINER= ale@FreeBSD.org
COMMENT= Opcode cacher and optimizer for PHP
LICENSE= PHP301
USE_PHP= yes
USE_PHP_BUILD= yes
USE_ZENDEXT= yes
PHP_MODNAME= ZendOptimizerPlus
PORTDOCS= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (PECL/zendoptimizerplus-7.0.0.tgz) = c32aa8c75434f8f64d116694612adf6d2b40864feabbd8466b9561869ba97cfa
SIZE (PECL/zendoptimizerplus-7.0.0.tgz) = 82376

View File

@ -0,0 +1,7 @@
The Zend Optimizer+ provides faster PHP execution through opcode caching and
optimization. It improves PHP performance by storing precompiled script
bytecode in the shared memory. This eliminates the stages of reading code from
the disk and compiling it on future access. In addition, it applies a few
bytecode optimization patterns that make code execution faster.
WWW: https://github.com/zend-dev/ZendOptimizerPlus