aboutsummaryrefslogtreecommitdiffstats
path: root/main/php/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-10-03 07:56:51 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2013-10-03 07:56:51 +0000
commit77575ac25e1e1c68fe881f2aa0f144703aabc867 (patch)
treebde500b6e5a6cd0178112d4c3bccf52fd3c4ef83 /main/php/APKBUILD
parent84598836a2718ec1673dc7586b98fa0e83c58506 (diff)
downloadaports-77575ac25e1e1c68fe881f2aa0f144703aabc867.tar.bz2
aports-77575ac25e1e1c68fe881f2aa0f144703aabc867.tar.xz
main/php: opcache is part of zend
opcache needs to load as a zend extension
Diffstat (limited to 'main/php/APKBUILD')
-rw-r--r--main/php/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/php/APKBUILD b/main/php/APKBUILD
index 04d45bcc60..3af1f9123a 100644
--- a/main/php/APKBUILD
+++ b/main/php/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=php
pkgver=5.5.4
-pkgrel=0
+pkgrel=1
pkgdesc="The PHP language runtime engine"
url="http://www.php.net/"
arch="all"
@@ -421,7 +421,14 @@ _mv_ext() {
mkdir -p "$subpkgdir"/$_extdir
mv "$pkgdir"/$_extdir/${ext}.so "$subpkgdir"/$_extdir/ || return 1
mkdir -p "$subpkgdir"/etc/php/conf.d
- echo "extension=${ext}.so" > "$subpkgdir"/etc/php/conf.d/$ini
+ case "$1" in
+ opcache)
+ echo "zend_extension=${ext}.so" > "$subpkgdir"/etc/php/conf.d/$ini
+ ;;
+ *)
+ echo "extension=${ext}.so" > "$subpkgdir"/etc/php/conf.d/$ini
+ ;;
+ esac
}
bcmath() { _mv_ext bcmath; }