opt/mod_php/Pkgfile
Juergen Daubert c784eb28da [notify] mod_php: update to 5.2.6, new PHP related ports"
as of version 5.2.6 mod_php is part of a collection of PHP ports.

For now we have 4 ports:
- php: the PHP CLI interpreter plus some extension modules and
  support stuff like include-files
- php-fcgi: CGI/FastCGI version of the interpreter with start
  script
- mod_php: DSO module for apache
- php-mysql: MySQL module as an example how to build extensions
  which are depending on external libraries

Remarks:
- Configuration files are now in /etc/php and /etc/php/conf.d.
  The later is scanned for *.ini files, see php-mysql for an
  example.
- php-fcgi and mod_php do not depend on php, so we have very
  slim ports if only the default extensions are needed. Both
  work, of course, together with php-mysql or other extensions
  like that.

Attention:
- mod_php not longer provides a php.ini, so your old /etc/php.ini
  will be removed if you upgrade mod_php. If you have modified
  php.ini make backup of it!
2008-05-07 20:29:16 +02:00

29 lines
721 B
Plaintext

# Description: PHP DSO module for apache
# URL: http://www.php.net
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
# Depends on: apache libxml2
name=mod_php
version=5.2.6
release=1
source=(http://www.php.net/distributions/php-$version.tar.bz2)
build () {
cd php-$version
local PHP_CONFIG="
--prefix=/usr \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
--disable-static --disable-debug --disable-pear"
EXTENSION_DIR=/usr/lib/php/extensions \
./configure \
$PHP_CONFIG \
--with-apxs2=/usr/sbin/apxs \
--disable-cli
make
install -D -m 755 libs/libphp5.so $PKG/usr/lib/apache/libphp5.so
}