aboutsummaryrefslogtreecommitdiffstats
path: root/extra/php-apc/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2009-03-27 02:04:16 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2009-03-27 02:04:16 +0000
commite45122f539113858bf3d0e3641586b45f9c8907b (patch)
tree57f77306012c8d063d5f320b175eb10f8b154679 /extra/php-apc/APKBUILD
parentc5ba09ce15edd772b2da9aba4885ed0aa98b6140 (diff)
downloadaports-e45122f539113858bf3d0e3641586b45f9c8907b.tar.bz2
aports-e45122f539113858bf3d0e3641586b45f9c8907b.tar.xz
extra/php-apc: disabled mmap cause uclibc does not (yet) support shm_open in mmap see:
http://www.mail-archive.com/uclibc@uclibc.org/msg03353.html also disabled extra option in apc.ini to let apc select defaults for now.
Diffstat (limited to 'extra/php-apc/APKBUILD')
-rw-r--r--extra/php-apc/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/extra/php-apc/APKBUILD b/extra/php-apc/APKBUILD
new file mode 100644
index 0000000000..d3460aaa56
--- /dev/null
+++ b/extra/php-apc/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
+pkgname=php-apc
+pkgver=3.1.2
+pkgrel=0
+pkgdesc="Alternative PHP Cache"
+url="http://pecl.php.net/package/APC"
+license="PHP"
+depends="php"
+makedepends="php-dev autoconf pcre-dev"
+subpackages=""
+source="http://pecl.php.net/get/APC-${pkgver}.tgz
+apc.ini"
+
+build() {
+ cd "$srcdir/APC-${pkgver}"
+
+ phpize || return 1
+ ./configure --enable-apc \
+ --disable-apc-mmap \
+ --with-php-config=/usr/bin/php-config
+ make || return 1
+ make INSTALL_ROOT=$pkgdir install || return 1
+ install -D -m644 "$srcdir"/apc.ini "$pkgdir"/etc/php/conf.d/apc.ini
+
+}
+
+md5sums="0a18cf164b3e044e27edd4c1d8c3145c APC-3.1.2.tgz
+1be423cbc197a302abd50cfd5834258b apc.ini"