blob: c062f22cb7c3cfeb59509ff8532374a06cd0cb6e (
plain)
1 # Description: FastCGI Process Manager for PHP
2 # URL: http://www.php.net
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: xz libpcre libxml2
5
6 name=php-fpm
7 version=5.4.17
8 release=1
9 source=(http://www.php.net/distributions/php-$version.tar.bz2
10 php-fpm)
11
12 build () {
13 cd php-$version
14
15 local PHP_CONFIG="
16 --prefix=/usr \
17 --sysconfdir=/etc/php \
18 --localstatedir=/var \
19 --with-config-file-path=/etc/php \
20 --with-config-file-scan-dir=/etc/php/conf.d \
21 --with-zlib \
22 --with-pcre-regex=/usr \
23 --disable-static --disable-debug \
24 --without-sqlite3 --without-pdo-sqlite \
25 --without-pear"
26
27 EXTENSION_DIR=/usr/lib/php/extensions \
28 ./configure \
29 $PHP_CONFIG \
30 --enable-fpm \
31 --disable-cli \
32 --with-fpm-user=www \
33 --with-fpm-group=www
34
35 make
36
37 install -d $PKG/{usr/{sbin,man/man8},etc/{rc.d,php}}
38 install -m 755 sapi/fpm/php-fpm $PKG/usr/sbin/
39 install -m 644 sapi/fpm/php-fpm.conf $PKG/etc/php/
40 install -m 644 sapi/fpm/php-fpm.8 $PKG/usr/man/man8/
41 install -m 755 $SRC/php-fpm $PKG/etc/rc.d/
42 }
|