2006-02-23 15:26:10 +00:00
|
|
|
|
# Description: PHP5 module for the apache 2.0.x HTTP server
|
|
|
|
|
# URL: http://www.php.net
|
|
|
|
|
# Maintainer: J<>rgen Daubert, juergen dot daubert at t-online dot de
|
|
|
|
|
# Depends on: mysql, apache, libxml2
|
|
|
|
|
# Group: apache
|
|
|
|
|
|
|
|
|
|
name=mod_php
|
2006-11-04 17:41:31 +01:00
|
|
|
|
version=5.2.0
|
2006-05-02 05:37:16 +00:00
|
|
|
|
release=1
|
2006-11-04 17:41:31 +01:00
|
|
|
|
source=(http://www.php.net/distributions/php-$version.tar.bz2 \
|
|
|
|
|
php-$version.patch)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
build () {
|
|
|
|
|
cd php-$version
|
2006-11-04 17:41:31 +01:00
|
|
|
|
patch -p1 -i $SRC/php-$version.patch
|
2006-02-23 15:26:10 +00:00
|
|
|
|
sed -i "s/-i -a/-i/" configure
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--with-apxs2=/usr/sbin/apxs \
|
|
|
|
|
--with-config-file-path=/etc \
|
|
|
|
|
--with-mysql=/usr \
|
|
|
|
|
--with-zlib-dir=/usr/lib \
|
2006-02-28 18:04:52 +00:00
|
|
|
|
--with-openssl=/usr \
|
|
|
|
|
--without-pear \
|
2006-02-23 15:26:10 +00:00
|
|
|
|
--disable-pdo
|
|
|
|
|
make
|
|
|
|
|
make INSTALL_ROOT=$PKG install
|
|
|
|
|
rm -r $PKG/etc/apache
|
|
|
|
|
sed -i "/^extension_dir/s|\./|/usr/lib/php/extensions|" php.ini-dist
|
|
|
|
|
install -D -m 644 php.ini-dist $PKG/etc/php.ini
|
|
|
|
|
}
|