X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 76639DC00B8 for ; Thu, 4 Apr 2013 10:49:25 +0000 (UTC) Received: by mail-pd0-f182.google.com with SMTP id 3so1370571pdj.13 for ; Thu, 04 Apr 2013 03:49:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=5IZAwnXNxIAn+Ot94mulQoIvPCNlTRtQlYtEF6JWYl0=; b=XgqnaT3R1NAYJIWc4dp2IYlOFaIp0Xkow2vXpiwYV8NICe/D0oVoVn8hUq9SuOEFua bCTQZX+0aVsBhDAbWsWqn0pcsP8/+i6cvGSmeRzQyHk6moto7aeTtkP1Ennfo42NwjbB pUqHMCEXEcBePR0SfOJkERDj+9QjcC9cVjLPfKu18uoGPk1o3IH62WRLy5z8fkyYeA+r GIXs83u9Qh3PZaM+97n38G4E2Cju0Z6vxlOdnp3fOw7lYxmxzgImuy8CPXX5fQr3U1K6 weK8hYGfkmLmY7idMb9ONZ0RqV7c2oZ11Niv9yNeK/OJlhNquaM6l6ioUeMzRoA1lWua 6y3A== X-Received: by 10.66.179.238 with SMTP id dj14mr8884459pac.68.1365072564266; Thu, 04 Apr 2013 03:49:24 -0700 (PDT) Received: from localhost.localdomain ([117.226.141.100]) by mx.google.com with ESMTPS id oq3sm10979519pac.16.2013.04.04.03.49.18 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Apr 2013 03:49:23 -0700 (PDT) From: "V.Krishn" To: alpine-devel@lists.alpinelinux.org Cc: "V.Krishn" Subject: [alpine-devel] [PATCH] Initial APKBUILD file of php-zend-opcache Date: Thu, 4 Apr 2013 10:41:26 +0000 Message-Id: <1365072086-26886-1-git-send-email-vkrishn4@gmail.com> X-Mailer: git-send-email 1.8.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: From: "V.Krishn" 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. --- testing/php-zend-opcache/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ testing/php-zend-opcache/opcache.ini | 11 +++++++++++ 2 files changed, 46 insertions(+) create mode 100644 testing/php-zend-opcache/APKBUILD create mode 100644 testing/php-zend-opcache/opcache.ini diff --git a/testing/php-zend-opcache/APKBUILD b/testing/php-zend-opcache/APKBUILD new file mode 100644 index 0000000..ff640a3 --- /dev/null +++ b/testing/php-zend-opcache/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: V.Krishn +# 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 0000000..a0f1202 --- /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 + -- 1.8.0 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---