aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorV.Krishn <vkrishn4@gmail.com>2013-04-04 10:41:26 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-04-04 12:58:32 +0000
commitc1e94934a318c0e0ab6fbd035dc74ebf37dee41b (patch)
tree1816dd07ec09d19afc1cd87d8e1485f809ca0df3 /testing
parent61bb8b2180c2b79b5d6e2c5ed3181cf33c8c1461 (diff)
downloadaports-c1e94934a318c0e0ab6fbd035dc74ebf37dee41b.tar.bz2
aports-c1e94934a318c0e0ab6fbd035dc74ebf37dee41b.tar.xz
Initial APKBUILD file of php-zend-opcache
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. Signed-off-by: Leonardo Arena <rnalrd@alpinelinux.org>
Diffstat (limited to 'testing')
-rw-r--r--testing/php-zend-opcache/APKBUILD35
-rw-r--r--testing/php-zend-opcache/opcache.ini11
2 files changed, 46 insertions, 0 deletions
diff --git a/testing/php-zend-opcache/APKBUILD b/testing/php-zend-opcache/APKBUILD
new file mode 100644
index 0000000000..ff640a37bf
--- /dev/null
+++ b/testing/php-zend-opcache/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: V.Krishn <vkrishn4@gmail.com>
+# Maintainer:
+pkgname=php-zendopcache
+pkgver=7.0.1
+pkgrel=0
+pkgdesc="Zend OPcache for PHP"
+url="https://github.com/zend-dev/ZendOptimizerPlus"
+arch="all"
+license="PHP"
+depends="php"
+makedepends="php-dev autoconf pcre-dev"
+subpackages=""
+source="saveas-https://github.com/zend-dev/ZendOptimizerPlus/archive/v7.0.1.tar.gz/$pkgname-$pkgver.tar.gz
+opcache.ini"
+_builddir="$srcdir/ZendOptimizerPlus-$pkgver"
+
+build() {
+ cd "$_builddir"
+ phpize || return 1
+ ./configure --enable-opcache \
+ --with-php-config=/usr/bin/php-config
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make INSTALL_ROOT=$pkgdir install || return 1
+ install -D -m644 "$srcdir"/opcache.ini "$pkgdir"/etc/php/conf.d/opcache.ini
+ extension_dir=`grep '^extension_dir' /usr/bin/php-config | awk -F'=' '{print $2}' | replace "'" ""`
+ sed -i -e "s|{{extension_dir}}|$extension_dir|" \
+ "$pkgdir"/etc/php/conf.d/opcache.ini || return 1
+}
+
+md5sums="c5d41c2404916e5aaceff5c7f7d887ce php-zendopcache-7.0.1.tar.gz
+b80548491db141fb5d7a823445ec2ba9 opcache.ini"
diff --git a/testing/php-zend-opcache/opcache.ini b/testing/php-zend-opcache/opcache.ini
new file mode 100644
index 0000000000..a0f12025dd
--- /dev/null
+++ b/testing/php-zend-opcache/opcache.ini
@@ -0,0 +1,11 @@
+[OPcache]
+;Recommended configuration options for best performance.
+;zend_extension="{{extension_dir}}/opcache.so"
+;opcache.enable=1
+;opcache.memory_consumption=128
+;opcache.interned_strings_buffer=8
+;opcache.max_accelerated_files=4000
+;opcache.revalidate_freq=60
+;opcache.fast_shutdown=1
+;opcache.enable_cli=1
+