blob: 034d485ae8009ad6c366a95cd1b7dd93ec321796 (
plain)
1 # Description: PHP5 module for the apache 2.0.x HTTP server
2 # URL: http://www.php.net
3 # Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
4 # Depends on: mysql, apache, libxml2
5 # Group: apache
6
7 name=mod_php
8 version=5.1.5
9 release=1
10 source=(http://www.php.net/distributions/php-$version.tar.bz2)
11
12 build () {
13 cd php-$version
14 sed -i "s/-i -a/-i/" configure
15 ./configure --prefix=/usr \
16 --with-apxs2=/usr/sbin/apxs \
17 --with-config-file-path=/etc \
18 --with-mysql=/usr \
19 --with-zlib-dir=/usr/lib \
20 --with-openssl=/usr \
21 --without-pear \
22 --disable-pdo
23 make
24 make INSTALL_ROOT=$PKG install
25 rm -r $PKG/etc/apache
26 sed -i "/^extension_dir/s|\./|/usr/lib/php/extensions|" php.ini-dist
27 install -D -m 644 php.ini-dist $PKG/etc/php.ini
28 }
|