diff --git a/www/php-zendopcache/DESCR b/www/php-zendopcache/DESCR new file mode 100644 index 0000000000000..911b5f437c3c0 --- /dev/null +++ b/www/php-zendopcache/DESCR @@ -0,0 +1,5 @@ +The Zend OPcache 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. diff --git a/www/php-zendopcache/MESSAGE b/www/php-zendopcache/MESSAGE new file mode 100644 index 0000000000000..63aa16bb411ad --- /dev/null +++ b/www/php-zendopcache/MESSAGE @@ -0,0 +1,9 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1 2015/03/09 13:33:18 imil Exp $ + +To enable this module, add the following to ${PKG_SYSCONFDIR}/php.ini: + + zend_extension=${PREFIX}/${PHP_EXTENSION_DIR}/${MODNAME}.so + +Then restart your ${PKG_PHP}-enabled HTTP server to load this module. +=========================================================================== diff --git a/www/php-zendopcache/Makefile b/www/php-zendopcache/Makefile new file mode 100644 index 0000000000000..208d97405d357 --- /dev/null +++ b/www/php-zendopcache/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2015/03/09 13:33:18 imil Exp $ + +MODNAME= zendopcache +PKGMODNAME= opcache +CATEGORIES+= www +PECL_VERSION= 7.0.4 +PECL_LEGACY_VERSION_SCHEME= yes + +HOMEPAGE= https://github.com/zend-dev/ZendOptimizerPlus +MAINTAINER= imil@NetBSD.org +COMMENT= Zend opcode cache and optimizer for PHP +LICENSE= php + +SUPERSEDES= ${PHP_PKG_PREFIX}-zendoptimizerplus-[0-9]* +PREV_PKGPATH= www/zendoptimizerplus + +REPLACE_BASH= configure # cheaper than patching configure +USE_TOOLS+= bash + +PLIST_SRC+= ${.CURDIR}/PLIST.extras +PLIST_SUBST+= PKGBASE=${PKGBASE:Q} + +DOCDIR= ${PREFIX}/share/doc/${PKGBASE} + +INSTALLATION_DIRS= ${DOCDIR} + +.include "../../lang/php/ext.mk" + +# this is not an usual extension, override MESSAGE.module +MESSAGE_SRC= ${.CURDIR}/MESSAGE + +post-install: + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR} + +.include "../../mk/bsd.pkg.mk" diff --git a/www/php-zendopcache/PLIST.extras b/www/php-zendopcache/PLIST.extras new file mode 100644 index 0000000000000..5e7b3a06d7edf --- /dev/null +++ b/www/php-zendopcache/PLIST.extras @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST.extras,v 1.1 2015/03/09 13:33:18 imil Exp $ +share/doc/${PKGBASE}/README diff --git a/www/php-zendopcache/distinfo b/www/php-zendopcache/distinfo new file mode 100644 index 0000000000000..72b160c6339b4 --- /dev/null +++ b/www/php-zendopcache/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2015/03/09 13:33:18 imil Exp $ + +SHA1 (php-zendopcache/zendopcache-7.0.4.tgz) = 42e67f02d76113f9e9ec947aea49d36a95642d3c +RMD160 (php-zendopcache/zendopcache-7.0.4.tgz) = 84c46a4bac9cefb31a5be91e5524d16d68ed0553 +Size (php-zendopcache/zendopcache-7.0.4.tgz) = 96340 bytes