Commit e45122f5 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

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.
parent c5ba09ce
......@@ -8,19 +8,16 @@ url="http://pecl.php.net/package/APC"
license="PHP"
depends="php"
makedepends="php-dev autoconf pcre-dev"
install=
subpackages=""
source="http://pecl.php.net/get/APC-3.1.2.tgz
source="http://pecl.php.net/get/APC-${pkgver}.tgz
apc.ini"
build() {
cd "$srcdir/APC-${pkgver}"
phpize || return 1
./configure --prefix=/usr \
--enable-apc \
--enable-apc-mmap \
--with-apxs \
./configure --enable-apc \
--disable-apc-mmap \
--with-php-config=/usr/bin/php-config
make || return 1
make INSTALL_ROOT=$pkgdir install || return 1
......@@ -29,4 +26,4 @@ build() {
}
md5sums="0a18cf164b3e044e27edd4c1d8c3145c APC-3.1.2.tgz
45224019b659aa60ac540eef08ae8413 apc.ini"
1be423cbc197a302abd50cfd5834258b apc.ini"
;PHP suggest APC settings
extension=apc.so
;apc.enabled=1
;apc.shm_segments=1
;apc.shm_size=128
;apc.ttl=7200
;apc.user_ttl=7200
;apc.num_files_hint=1024
;apc.mmap_file_mask=/tmp/apc.XXXXXX
;apc.enable_cli=1
;PHP suggest APC settings
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment