2006-02-23 15:26:10 +00:00
|
|
|
# Description: PHP5 with FastCGI support
|
|
|
|
# URL: http://www.php.net/
|
2006-04-13 04:29:47 +00:00
|
|
|
# Packager: Jukka Heino, jukka dot heino at gmail dot com
|
|
|
|
# Maintainer: Jukka Heino, jukka dot heino at gmail dot com
|
2006-02-23 15:26:10 +00:00
|
|
|
# Depends on: libxml2, postgresql, sqlite
|
|
|
|
|
|
|
|
name=php-fastcgi
|
|
|
|
version=5.1.2
|
|
|
|
release=1
|
|
|
|
source=(http://www.php.net/distributions/php-$version.tar.bz2)
|
|
|
|
|
|
|
|
build () {
|
|
|
|
cd php-$version
|
|
|
|
sed -i "s/-i -a/-i/" configure
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-fastcgi \
|
|
|
|
--enable-discard-path \
|
|
|
|
--enable-force-cgi-redirect \
|
|
|
|
--with-config-file-path=/etc \
|
|
|
|
--with-disable-pdo \
|
|
|
|
--with-pgsql=/usr \
|
|
|
|
--with-sqlite=/usr \
|
|
|
|
--with-zlib-dir=/usr/lib \
|
|
|
|
--without-pear
|
|
|
|
make
|
|
|
|
make INSTALL_ROOT=$PKG install
|
|
|
|
sed -i "/^extension_dir/s|\./|/usr/lib/php/extensions|" php.ini-dist
|
|
|
|
install -D -m 644 php.ini-dist $PKG/etc/php.ini
|
|
|
|
echo cgi.fix_pathinfo = 1 >> $PKG/etc/php.ini
|
|
|
|
}
|