2006-02-23 16:26:10 +01: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
|
2007-02-09 14:02:13 +01:00
|
|
|
|
version=5.2.1
|
2006-05-02 07:37:16 +02:00
|
|
|
|
release=1
|
2007-02-09 14:02:13 +01:00
|
|
|
|
source=(http://www.php.net/distributions/php-$version.tar.bz2)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
|
|
build () {
|
|
|
|
|
cd php-$version
|
|
|
|
|
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 19:04:52 +01:00
|
|
|
|
--with-openssl=/usr \
|
|
|
|
|
--without-pear \
|
2006-02-23 16:26:10 +01: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
|
|
|
|
|
}
|