2008-05-07 20:29:16 +02:00
|
|
|
# Description: PHP DSO module for apache
|
2006-02-23 15:26:10 +00:00
|
|
|
# URL: http://www.php.net
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2010-03-01 18:03:05 +01:00
|
|
|
# Depends on: apache libxml2
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=mod_php
|
2012-07-20 18:02:22 +02:00
|
|
|
version=5.4.5
|
2008-12-05 11:37:26 +01:00
|
|
|
release=1
|
2008-05-07 20:29:16 +02:00
|
|
|
source=(http://www.php.net/distributions/php-$version.tar.bz2)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd php-$version
|
2008-05-07 20:29:16 +02:00
|
|
|
|
2012-04-26 16:52:30 +02:00
|
|
|
local APXS
|
|
|
|
APXS=$(which apxs) || APXS='/usr/sbin/apxs'
|
|
|
|
|
2008-05-07 20:29:16 +02:00
|
|
|
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:59 +02:00
|
|
|
--with-zlib \
|
2008-12-05 11:52:29 +01:00
|
|
|
--with-pcre-regex=/usr \
|
2008-05-07 21:03:08 +02:00
|
|
|
--disable-static --disable-debug --without-pear"
|
2008-05-07 20:29:16 +02:00
|
|
|
|
|
|
|
EXTENSION_DIR=/usr/lib/php/extensions \
|
|
|
|
./configure \
|
|
|
|
$PHP_CONFIG \
|
2012-04-26 16:52:30 +02:00
|
|
|
--with-apxs2=$APXS \
|
2008-05-07 20:29:16 +02:00
|
|
|
--disable-cli
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
make
|
2008-05-07 20:29:16 +02:00
|
|
|
install -D -m 755 libs/libphp5.so $PKG/usr/lib/apache/libphp5.so
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|