blob: 5f7351a192bfa8d88a43e198c1abd7df76f634a4 (
plain)
1 # Description: CGI/FastCGI version of the PHP interpreter
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-fcgi
7 version=5.6.22
8 release=1
9 source=(http://php.net/distributions/php-$version.tar.xz
10 php-fcgi)
11
12 build () {
13 cd php-$version
14
15 local PHP_CONFIG="
16 --prefix=/usr \
17 --with-config-file-path=/etc/php \
18 --with-config-file-scan-dir=/etc/php/conf.d \
19 --with-zlib \
20 --with-pcre-regex=/usr \
21 --disable-static --disable-debug \
22 --without-sqlite3 --without-pdo-sqlite \
23 --without-pear"
24
25 EXTENSION_DIR=/usr/lib/php/extensions \
26 ./configure \
27 $PHP_CONFIG \
28 --enable-cgi \
29 --disable-cli
30
31 make
32
33 install -D -m 755 sapi/cgi/php-cgi $PKG/usr/bin/php-cgi
34 install -D -m 755 $SRC/php-fcgi $PKG/etc/rc.d/php-fcgi
35 }
|