opt/php-fcgi/Pkgfile

37 lines
944 B
Plaintext
Raw Normal View History

2008-05-07 19:42:29 +02:00
# Description: CGI/FastCGI version of the PHP interpreter
# URL: http://www.php.net
2008-07-11 09:29:19 +02:00
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
2008-12-05 11:52:12 +01:00
# Depends on: libpcre zlib libxml2
2008-05-07 19:42:29 +02:00
name=php-fcgi
2009-12-18 13:45:22 +01:00
version=5.2.12
2008-12-05 11:37:44 +01:00
release=1
2008-05-07 19:42:29 +02:00
source=(http://www.php.net/distributions/php-$version.tar.bz2
php-fcgi)
build () {
cd php-$version
local PHP_CONFIG="
--prefix=/usr \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
2008-07-09 09:59:41 +02:00
--with-zlib \
2008-12-05 11:52:12 +01:00
--with-pcre-regex=/usr \
2008-05-07 21:02:59 +02:00
--disable-static --disable-debug --without-pear"
2008-05-07 19:42:29 +02:00
EXTENSION_DIR=/usr/lib/php/extensions \
./configure \
$PHP_CONFIG \
--enable-fastcgi \
--enable-cgi \
--disable-cli \
--enable-force-cgi-redirect \
--enable-discard-path
make
install -D -m 755 sapi/cgi/php-cgi $PKG/usr/bin/php-cgi
install -D -m 755 $SRC/php-fcgi $PKG/etc/rc.d/php-fcgi
}