head	1.56;
access;
symbols;
locks; strict;
comment	@-- @;


1.56
date	2009.11.29.18.47.45;	author rse;	state Exp;
branches;
next	1.55;
commitid	FAqMPvUTcxpnGrdu;

1.55
date	2009.11.21.09.40.40;	author rse;	state Exp;
branches;
next	1.54;
commitid	7dPBlMzZic4EUmcu;

1.54
date	2009.10.02.20.43.21;	author rse;	state Exp;
branches;
next	1.53;
commitid	UIXEP9D7wFfDb06u;

1.53
date	2009.09.09.12.00.48;	author rse;	state Exp;
branches;
next	1.52;
commitid	ioVLAtUY1N0c203u;

1.52
date	2009.08.16.15.42.25;	author rse;	state Exp;
branches;
next	1.51;
commitid	ELex42P8KkA32WZt;

1.51
date	2009.08.15.09.56.59;	author rse;	state Exp;
branches;
next	1.50;
commitid	ew40vdfjiq6y9MZt;

1.50
date	2009.07.01.08.46.06;	author rse;	state Exp;
branches;
next	1.49;
commitid	fBaolCaID5TTcZTt;

1.49
date	2009.06.30.18.44.59;	author rse;	state Exp;
branches;
next	1.48;
commitid	H7hb28jCwPTlyUTt;

1.48
date	2009.06.25.07.12.25;	author rse;	state Exp;
branches;
next	1.47;
commitid	623OYCVvaZCJScTt;

1.47
date	2009.06.19.17.43.32;	author rse;	state Exp;
branches;
next	1.46;
commitid	D9rmX85b0n7czuSt;

1.46
date	2009.04.18.13.08.32;	author rse;	state Exp;
branches;
next	1.45;
commitid	4pHXU27WTIGCZuKt;

1.45
date	2009.03.06.07.18.57;	author rse;	state Exp;
branches;
next	1.44;
commitid	i6C3UOsRgOHauWEt;

1.44
date	2009.02.28.09.07.22;	author rse;	state Exp;
branches;
next	1.43;
commitid	S5X6pThaTJdkhbEt;

1.43
date	2009.02.27.19.44.04;	author rse;	state Exp;
branches;
next	1.42;
commitid	ilQ0SFBcNwwKP6Et;

1.42
date	2008.12.22.18.14.45;	author rse;	state Exp;
branches;
next	1.41;
commitid	nAhtWZnfVBfDuuvt;

1.41
date	2008.12.15.16.32.58;	author rse;	state Exp;
branches;
next	1.40;
commitid	uEzcLpQg7d8E9Aut;

1.40
date	2008.12.12.18.44.04;	author rse;	state Exp;
branches;
next	1.39;
commitid	na4HQD0bJe0DYcut;

1.39
date	2008.12.09.07.31.47;	author rse;	state Exp;
branches;
next	1.38;
commitid	glqkrmIOHo4YlLtt;

1.38
date	2008.12.04.20.20.24;	author rse;	state Exp;
branches;
next	1.37;
commitid	6XLGPGMYSDOBLbtt;

1.37
date	2008.09.12.09.19.32;	author rse;	state Exp;
branches;
next	1.36;
commitid	8vhU0Y9ihW0jMsit;

1.36
date	2008.08.23.20.58.27;	author rse;	state Exp;
branches;
next	1.35;
commitid	g9G9tH6DDHaWhXft;

1.35
date	2008.08.23.07.23.59;	author rse;	state Exp;
branches;
next	1.34;
commitid	LTOcix8xChhwMSft;

1.34
date	2008.08.08.08.51.21;	author rse;	state Exp;
branches;
next	1.33;
commitid	Rk4KhSFwoAgoKXdt;

1.33
date	2008.08.08.08.46.49;	author rse;	state Exp;
branches;
next	1.32;
commitid	MFW2oRpWVLHPIXdt;

1.32
date	2008.08.08.08.38.05;	author rse;	state Exp;
branches;
next	1.31;
commitid	QFZfnq06S47QFXdt;

1.31
date	2008.08.07.07.17.41;	author rse;	state Exp;
branches;
next	1.30;
commitid	wC5WDf7D0sMegPdt;

1.30
date	2008.05.14.10.38.56;	author cs;	state Exp;
branches;
next	1.29;
commitid	ZfADrdMKk3cG6V2t;

1.29
date	2008.05.11.08.33.26;	author rse;	state Exp;
branches;
next	1.28;
commitid	3jN9PCkYVPwAvw2t;

1.28
date	2008.05.10.19.13.04;	author rse;	state Exp;
branches;
next	1.27;
commitid	jIaZZUwaf4M25s2t;

1.27
date	2008.05.03.08.16.15;	author rse;	state Exp;
branches;
next	1.26;
commitid	5YoBmtKE0v0FFu1t;

1.26
date	2008.05.03.07.54.00;	author rse;	state Exp;
branches;
next	1.25;
commitid	1q9dnzBUhGQ1yu1t;

1.25
date	2008.05.02.06.42.52;	author rse;	state Exp;
branches;
next	1.24;
commitid	h5XVT9y0lJmCbm1t;

1.24
date	2008.05.02.06.37.36;	author rse;	state Exp;
branches;
next	1.23;
commitid	bn7Jsqmv2xGN9m1t;

1.23
date	2008.03.27.11.46.01;	author cs;	state Exp;
branches;
next	1.22;
commitid	b6BMhzcG1O2m1LWs;

1.22
date	2008.03.25.11.08.24;	author cs;	state Exp;
branches;
next	1.21;
commitid	K4yXpFFyiyWoSuWs;

1.21
date	2008.03.25.09.53.16;	author cs;	state Exp;
branches;
next	1.20;
commitid	8LKGVFUuSdREsuWs;

1.20
date	2008.03.12.09.36.42;	author cs;	state Exp;
branches;
next	1.19;
commitid	PuXMooH4BswSMOUs;

1.19
date	2008.01.14.18.39.17;	author rse;	state Exp;
branches;
next	1.18;
commitid	DX18pSc7yWPBEpNs;

1.18
date	2008.01.01.14.50.37;	author rse;	state Exp;
branches;
next	1.17;
commitid	B8esaHJHoduuKILs;

1.17
date	2007.12.21.22.16.13;	author rse;	state Exp;
branches;
next	1.16;
commitid	KdYX0IVTvrnRClKs;

1.16
date	2007.12.21.22.11.32;	author rse;	state Exp;
branches;
next	1.15;
commitid	fOWifXBETjggBlKs;

1.15
date	2007.12.09.10.37.36;	author rse;	state Exp;
branches;
next	1.14;
commitid	aYVYt28HGAs79KIs;

1.14
date	2007.12.06.08.56.39;	author kk;	state Exp;
branches;
next	1.13;
commitid	WhSOw9qQ1YNsGlIs;

1.13
date	2007.12.02.07.41.15;	author rse;	state Exp;
branches;
next	1.12;
commitid	Y4WAGINia5PyoPHs;

1.12
date	2007.11.30.15.51.15;	author rse;	state Exp;
branches;
next	1.11;
commitid	pjSMgtDThWmEaCHs;

1.11
date	2007.11.12.15.12.17;	author rse;	state Exp;
branches;
next	1.10;
commitid	3wMZB1zpSyI9xiFs;

1.10
date	2007.11.10.08.48.41;	author rse;	state Exp;
branches;
next	1.9;
commitid	rvK2VsaHGVFxt0Fs;

1.9
date	2007.10.15.06.46.23;	author kk;	state Exp;
branches;
next	1.8;
commitid	LO3sbnRoaIloDEBs;

1.8
date	2007.09.13.14.36.31;	author rse;	state Exp;
branches;
next	1.7;
commitid	dAv2628G54YrgAxs;

1.7
date	2007.08.31.07.37.16;	author rse;	state Exp;
branches;
next	1.6;
commitid	PNcfU2F6u1LxmSvs;

1.6
date	2007.08.25.20.52.53;	author cs;	state Exp;
branches;
next	1.5;
commitid	ivGE8I4PeLdrXavs;

1.5
date	2007.08.24.17.49.51;	author rse;	state Exp;
branches;
next	1.4;
commitid	q7FzoU3UyuxDY1vs;

1.4
date	2007.07.24.10.25.39;	author rse;	state Exp;
branches;
next	1.3;
commitid	BgIseog42oN1w0rs;

1.3
date	2007.07.24.10.20.05;	author cs;	state Exp;
branches;
next	1.2;
commitid	2nglrkmzLeg7u0rs;

1.2
date	2007.07.02.17.20.41;	author cs;	state Exp;
branches;
next	1.1;
commitid	7V63u1BOsv3gwdos;

1.1
date	2007.06.22.10.54.04;	author rse;	state Exp;
branches;
next	;
commitid	ZbFoU2hEtnBxHTms;


desc
@@


1.56
log
@modifying package: apache-php-5.3.1 20091121 -> 20091129
@
text
@##
##  apache-php.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##

#   package versions
%define       V_php                     5.3.1
%define       V_php_suhosin_p           5.3.1-0.9.8
%define       V_php_suhosin_e           0.9.29
%define       V_php_kolab               5.2.8
%define       V_php_pecl_memcache       2.2.5

#   package information
Name:         apache-php
Summary:      Apache Extension: PHP Scripting Language
URL:          http://www.php.net/
Vendor:       The PHP Project
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        BASE
Group:        Web
License:      PHP
Version:      %{V_php}
Release:      20091129

#   package options
%option       with_suhosin              no
%option       with_bc                   no
%option       with_bdb                  no
%option       with_bzip2                no
%option       with_calendar             no
%option       with_ctype                no
%option       with_curl                 no
%option       with_debug                no
%option       with_dom                  no
%option       with_exif                 no
%option       with_freetype             no
%option       with_ftp                  no
%option       with_gd                   no
%option       with_gdbm                 no
%option       with_gettext              no
%option       with_iconv                no
%option       with_imap                 no
%option       with_imap_annotate        no
%option       with_json                 no
%option       with_tokenizer            no
%option       with_mbregex              no
%option       with_mbstring             no
%option       with_mcrypt               no
%option       with_mhash                no
%option       with_mm                   no
%option       with_mysql                no
%option       with_mysqlnd              no
%option       with_oci8                 no
%option       with_odbc                 no
%option       with_openldap             no
%option       with_openldapsasl         no
%option       with_pear                 no
%option       with_pgsql                no
%option       with_posix                no
%option       with_sendmail             no
%option       with_session              no
%option       with_simplexml            no
%option       with_snmp                 no
%option       with_soap                 no
%option       with_sqlite               no
%option       with_ssl                  no
%option       with_tidy                 no
%option       with_versioning           no
%option       with_wddx                 no
%option       with_xml                  no
%option       with_xslt                 no
%option       with_zlib                 no
%option       with_zip                  no
%option       with_pecl_memcache        no

#   fixing implicit extension dependencies and correlations
%if "%{with_mm}" == "yes" || "%{with_pecl_memcache}" == "yes"
%undefine     with_session
%define       with_session       yes
%endif
%if "%{with_pear}" == "yes"
%undefine     with_xml
%define       with_xml           yes
%endif
%if "%{with_freetype}" == "yes"
%undefine     with_gd
%define       with_gd            yes
%endif
%if "%{with_imap_annotate}" == "yes"
%undefine     with_imap
%define       with_imap          yes
%endif
%if "%{with_mysql}" == "yes" || "%{with_gd}" == "yes" || "%{with_dom}" == "yes" || "%{with_zip}" == "yes" || "%{with_pecl_memcache}" == "yes"
%undefine     with_zlib
%define       with_zlib          yes
%endif
%if "%{with_xslt}" == "yes"
%undefine     with_dom
%define       with_dom           yes
%endif
%if "%{with_dom}" == "yes"
%undefine     with_xml
%define       with_xml           yes
%endif
%if "%{with_soap}" == "yes"
%undefine     with_xml
%define       with_xml           yes
%endif
%if "%{with_pgsql}" == "yes"
%undefine     with_ssl
%define       with_ssl           yes
%endif

#   list of sources
Source0:      http://static.php.net/www.php.net/distributions/php-%{V_php}.tar.bz2
Source1:      http://download.suhosin.org/suhosin-%{V_php_suhosin_e}.tgz
Source2:      apache-php.ini
Source3:      apache-php.conf
Source4:      http://pecl.php.net/get/memcache-%{V_php_pecl_memcache}.tgz
Patch0:       http://download.suhosin.org/suhosin-patch-%{V_php_suhosin_p}.patch.gz
Patch1:       http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/php-%{V_php_kolab}/KOLAB_php-%{V_php_kolab}_Annotations.patch
Patch2:       apache-php.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20050615, gcc, flex, bison
PreReq:       OpenPKG, openpkg >= 20050615
BuildPreReq:  apache
PreReq:       apache
BuildPreReq:  pcre
PreReq:       pcre
%if "%{with_suhosin}" == "yes" || "%{with_pecl_memcache}" == "yes"
BuildPreReq:  autoconf
%endif
%if "%{with_sqlite}" == "yes"
BuildPreReq:  sqlite
PreReq:       sqlite
%endif
%if "%{with_mysql}" == "yes"
BuildPreReq:  mysql
PreReq:       mysql
%endif
%if "%{with_pgsql}" == "yes"
BuildPreReq:  postgresql
PreReq:       postgresql
%endif
%if "%{with_gd}" == "yes"
BuildPreReq:  gd >= 2.0.20, jpeg, png
PreReq:       gd >= 2.0.20, jpeg, png
%endif
%if "%{with_bdb}" == "yes"
BuildPreReq:  db
PreReq:       db
%endif
%if "%{with_zlib}" == "yes"
BuildPreReq:  zlib
PreReq:       zlib
%endif
%if "%{with_bzip2}" == "yes"
BuildPreReq:  bzip2
PreReq:       bzip2
%endif
%if "%{with_ssl}" == "yes"
BuildPreReq:  openssl
PreReq:       openssl
%endif
%if "%{with_openldap}" == "yes"
BuildPreReq:  openldap
PreReq:       openldap
%if "%{with_openldapsasl}" == "yes"
BuildPreReq:  openldap::with_sasl = yes
PreReq:       openldap::with_sasl = yes
%else
BuildPreReq:  openldap::with_sasl = no
PreReq:       openldap::with_sasl = no
%endif
%endif
%if "%{with_mm}" == "yes"
BuildPreReq:  mm
PreReq:       mm
%endif
%if "%{with_freetype}" == "yes"
BuildPreReq:  freetype
PreReq:       freetype
%endif
%if "%{with_gettext}" == "yes"
BuildPreReq:  gettext, libiconv
PreReq:       gettext, libiconv
%endif
%if "%{with_iconv}" == "yes"
BuildPreReq:  libiconv
PreReq:       libiconv
%endif
%if "%{with_imap}" == "yes"
BuildPreReq:  imap, openssl
PreReq:       imap, openssl
%if "%{with_imap_annotate}" == "yes"
BuildPreReq:  imap::with_annotate = yes
PreReq:       imap::with_annotate = yes
%endif
%endif
%if "%{with_xml}" == "yes"
BuildPreReq:  libxml
PreReq:       libxml
%endif
%if "%{with_xslt}" == "yes"
BuildPreReq:  libxslt
PreReq:       libxslt
%endif
%if "%{with_dom}" == "yes"
BuildPreReq:  libxml, libxslt
PreReq:       libxml, libxslt
%endif
%if "%{with_curl}" == "yes"
BuildPreReq:  curl
PreReq:       curl
%endif
%if "%{with_mhash}" == "yes"
BuildPreReq:  mhash
PreReq:       mhash
%endif
%if "%{with_mcrypt}" == "yes"
BuildPreReq:  libmcrypt
PreReq:       libmcrypt
%endif
%if "%{with_gdbm}" == "yes"
BuildPreReq:  gdbm, gdbm::with_ndbm = yes
PreReq:       gdbm, gdbm::with_ndbm = yes
%endif
%if "%{with_oci8}" == "yes"
BuildPreReq:  oracle
PreReq:       oracle
%endif
%if "%{with_snmp}" == "yes"
BuildPreReq:  snmp
PreReq:       snmp
%endif
%if "%{with_odbc}" == "yes"
BuildPreReq:  unixodbc
PreReq:       unixodbc
%endif
%if "%{with_sendmail}" == "yes"
BuildPreReq:  MTA
PreReq:       MTA
%endif
%if "%{with_simplexml}" == "yes"
BuildPreReq:  libxml
PreReq:       libxml
%endif
%if "%{with_tidy}" == "yes"
BuildPreReq:  tidy
PreReq:       tidy
%endif
%if "%{with_pecl_memcache}" == "yes"
BuildPreReq:  memcached
PreReq:       memcached
%endif
AutoReq:      no
AutoReqProv:  no

%description
    PHP is an HTML-embedded scripting language. Much of its syntax is
    borrowed from C, Java and Perl with a couple of unique PHP-specific
    features thrown in. The goal of the language is to allow web
    developers to write dynamically generated pages quickly.

    This package provides a Dynamic Shared Object (DSO) for the Apache
    HTTP 2.2 web server. In general speaking, this module is also known
    as mod_php.

%track
    prog apache-php = {
        version   = %{V_php}
        url       = http://www.php.net/downloads.php
        regex     = php-(5\.\d+\.\d+)\.tar\.(bz2|gz)
    }
    prog apache-php:suhosin-patch = {
        version   = %{V_php_suhosin_p}
        url       = http://www.hardened-php.net/suhosin/download.html
        regex     = suhosin-patch-(5\.\d+\.\d+-\d+(\.\d+)+)\.patch\.gz
    }
    prog apache-php:suhosin-ext = {
        version   = %{V_php_suhosin_e}
        url       = http://www.hardened-php.net/suhosin/download.html
        regex     = suhosin-(\d+(\.\d+)+)\.tgz
    }
    prog apache-php:kolab = {
        version   = %{V_php_kolab}
        url       = http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/
        regex     = php-(\d+(\.\d+)+)/
    }
    prog apache-php:pecl_memcache = {
        version   = %{V_php_pecl_memcache}
        url       = http://pecl.php.net/package/memcache/
        regex     = memcache-(2(\.\d+)+)\.tgz
    }

%prep
    %setup -q -n php-%{V_php}
%if "%{with_suhosin}" == "yes"
    %setup -q -n php-%{V_php} -T -D -a 1
    %patch -p1
    mv suhosin-%{V_php_suhosin_e} ext/suhosin
    rm -f package.xml
%endif
%if "%{with_pecl_memcache}" == "yes"
    %setup -q -n php-%{V_php} -T -D -a 4
    mv memcache-%{V_php_pecl_memcache} ext/memcache
%endif
%if "%{with_suhosin}" == "yes" || "%{with_pecl_memcache}" == "yes"
    #   in case we add extensions the configure script needs to be newly
    #   generated
    export PHP_AUTOCONF="autoconf-213"
    rm -f configure && ./buildconf --copy --force
    $PHP_AUTOCONF
%endif
    %{l_shtool} subst \
        -e 's;-i -a -n php5;-i -n php5;' \
        configure
    %{l_shtool} subst \
        -e 's;\(/include\)/freetype2;\1;' \
        configure \
        ext/gd/config.m4
%if "%{with_imap_annotate}" == "yes"
    sed <%{PATCH1} -e '/php-5.2.1\/ext\/imap\/php_imap.c.orig/,/^[^\+]/d' | %{l_patch} -p1
%endif
    %patch -p0 -P 2

%build
    #   configure package
    case "%{l_platform -t}" in
        *-sunos5.10 ) cflags="%{l_cflags}"    ;;
        *           ) cflags="%{l_cflags -O}" ;;
    esac
    cppflags="%{l_cppflags}"
    ldflags="%{l_ldflags}"
    libs=""
%if "%{with_gdbm}" == "yes"
    libs="$libs -lndbm -lgdbm"
%endif
%if "%{with_gd}" == "yes"
    libs="$libs -lpng -lz"
%endif
%if "%{with_gettext}" == "yes"
    libs="$libs -liconv"
%endif
%if "%{with_openldap}" == "yes" && "%{with_openldapsasl}" == "yes"
    libs="$libs -lsasl2"
%endif
%if "%{with_imap}" == "yes"
    libs="$libs -lssl -lcrypto"
%endif
%if "%{with_bdb}" == "yes"
    libs="$libs -ldb"
%endif
%if "%{with_pgsql}" == "yes"
    libs="$libs `pg_config --libs`"
%endif
%if "%{with_oci8}" == "yes"
    ORACLE_HOME="`%{l_rc} --query oracle_home`"
    export ORACLE_HOME
%endif
    CC="%{l_cc}" \
    CFLAGS="$cflags" \
    CPPFLAGS="$cppflags" \
    LDFLAGS="$ldflags" \
    LIBS="$libs" \
%if "%{with_sendmail}" == "yes"
    PROG_SENDMAIL="%{l_prefix}/sbin/sendmail" \
%else
    PROG_SENDMAIL="`%{l_shtool} path false`" \
%endif
    ./configure \
        --prefix=%{l_prefix} \
        --sysconfdir=%{l_prefix}/etc/apache \
        --with-config-file-path=%{l_prefix}/etc/apache \
        --libdir=%{l_prefix}/lib/php \
        --disable-all \
        --enable-pdo \
        --with-pcre-regex=%{l_prefix} \
%if "%{with_suhosin}" == "yes"
        --enable-suhosin \
%endif
%if "%{with_calendar}" == "yes"
        --enable-calendar \
%endif
        --without-sqlite \
%if "%{with_sqlite}" == "yes"
        --with-pdo-sqlite=%{l_prefix} \
%else
        --without-pdo-sqlite \
%endif
%if "%{with_mysql}" == "yes" || "%{with_mysqlnd}" == "yes"
%if "%{with_mysqlnd}" == "yes"
        --with-mysql=mysqlnd \
        --with-pdo-mysql=mysqlnd \
%else
        --with-mysql=%{l_prefix} \
        --with-pdo-mysql=%{l_prefix} \
%endif
        --with-mysqli=mysqlnd \
        --with-mysql-sock=%{l_prefix}/var/mysql/mysql.sock \
%else
        --without-mysql \
        --without-pdo-mysql \
%endif
%if "%{with_pgsql}" == "yes"
        --with-pgsql=%{l_prefix} \
        --with-pdo-pgsql=%{l_prefix} \
%else
        --without-pgsql \
%endif
%if "%{with_posix}" == "yes"
        --enable-posix \
%endif
%if "%{with_gd}" == "yes"
        --with-gd=%{l_prefix} \
        --with-jpeg-dir=%{l_prefix} \
        --with-png-dir=%{l_prefix} \
%endif
%if "%{with_freetype}" == "yes"
        --enable-gd-native-ttf \
        --with-freetype-dir=%{l_prefix} \
%endif
%if "%{with_bdb}" == "yes"
        --with-db4=%{l_prefix} \
%endif
%if "%{with_debug}" == "yes"
        --enable-debug \
%else
        --disable-debug \
%endif
%if "%{with_zlib}" == "yes"
        --with-zlib=%{l_prefix} \
        --with-zlib-dir=%{l_prefix} \
%endif
%if "%{with_bzip2}" == "yes"
        --with-bz2=%{l_prefix} \
%endif
%if "%{with_ssl}" == "yes" || "%{with_openldap}" == "yes"
        --with-openssl=%{l_prefix} \
%endif
%if "%{with_openldap}" == "yes"
        --with-ldap=%{l_prefix} \
%endif
%if "%{with_session}" == "yes"
        --enable-session \
%endif
%if "%{with_mm}" == "yes"
        --with-mm=%{l_prefix} \
%endif
%if "%{with_ftp}" == "yes"
        --enable-ftp \
%endif
%if "%{with_oci8}" == "yes"
        --with-oci8 \
%endif
%if "%{with_gettext}" == "yes"
        --with-gettext=%{l_prefix} \
%endif
%if "%{with_imap}" == "yes"
        --with-imap=%{l_prefix} \
        --with-imap-ssl=%{l_prefix} \
%endif
%if "%{with_json}" == "yes"
        --enable-json \
%else
        --disable-json \
%endif
%if "%{with_tokenizer}" == "yes"
        --enable-tokenizer \
%else
        --disable-tokenizer \
%endif
%if "%{with_xml}" == "yes"
        --enable-xml \
        --enable-libxml \
        --with-libxml-dir=%{l_prefix} \
%else
        --disable-xml \
%endif
%if "%{with_xslt}" == "yes"
        --with-xsl=%{l_prefix} \
%else
        --without-xsl \
%endif
%if "%{with_dom}" == "yes"
        --enable-dom \
%else
        --disable-dom \
%endif
%if "%{with_wddx}" == "yes"
        --enable-wddx \
%endif
%if "%{with_soap}" == "yes"
        --enable-soap \
%endif
%if "%{with_bc}" == "yes"
        --enable-bcmath \
%endif
%if "%{with_mhash}" == "yes"
        --with-mhash=%{l_prefix} \
%endif
%if "%{with_mcrypt}" == "yes"
        --with-mcrypt=%{l_prefix} \
%endif
%if "%{with_ctype}" == "yes"
        --enable-ctype \
%endif
%if "%{with_curl}" == "yes"
        --with-curl=%{l_prefix} \
%endif
%if "%{with_gdbm}" == "yes"
        --with-gdbm=%{l_prefix} \
%endif
%if "%{with_versioning}" == "yes"
        --enable-versioning \
%endif
%if "%{with_pear}" == "yes"
        --with-pear=%{l_prefix}/lib/php \
%else
        --without-pear \
%endif
%if "%{with_simplexml}" == "yes"
        --enable-simplexml \
        --enable-libxml \
        --with-libxml-dir=%{l_prefix} \
%else
        --disable-simplexml \
%endif
%if "%{with_snmp}" == "yes"
        --with-snmp=%{l_prefix} \
        --with-openssl-dir=%{l_prefix} \
%endif
%if "%{with_odbc}" == "yes"
        --with-unixODBC=%{l_prefix} \
        --with-pdo-odbc=unixODBC,%{l_prefix} \
%endif
%if "%{with_mbregex}" == "yes"
        --enable-mbregex \
%endif
%if "%{with_mbstring}" == "yes"
        --enable-mbstring \
%endif
%if "%{with_exif}" == "yes"
        --with-exif \
%endif
%if "%{with_iconv}" == "yes"
        --with-iconv=%{l_prefix} \
%endif
%if "%{with_tidy}" == "yes"
        --with-tidy=%{l_prefix} \
%else
        --without-tidy \
%endif
%if "%{with_zip}" == "yes"
        --enable-zip \
%endif
%if "%{with_pecl_memcache}" == "yes"
        --enable-memcache \
%endif
        --with-apxs2=%{l_prefix}/sbin/apxs \
        --disable-cli \
        --disable-cgi

    #   build package
    %{l_make} %{l_mflags}

%install
    #   install package
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install-sapi INSTALL_ROOT=$RPM_BUILD_ROOT
    mv  $RPM_BUILD_ROOT%{l_prefix}/libexec/apache/libphp5.so \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/apache/mod_php.so

    #   install default configuration file
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE apache-php.ini} \
        $RPM_BUILD_ROOT%{l_prefix}/etc/apache/
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE apache-php.conf} \
        $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/

    #   create session storage directory
%if "%{with_session}" == "yes"
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/var/apache/run/apache-php.session
%endif

    #   determine installation files
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
%if "%{with_session}" == "yes"
        '%attr(0750,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/apache/run/apache-php.session' \
%endif
        '%config %{l_prefix}/etc/apache/apache-php.ini' \
        '%config %{l_prefix}/etc/apache/apache.d/apache-php.conf'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

%post
    #   after upgrade, restart service
    [ $1 -eq 2 ] || exit 0
    eval `%{l_rc} apache status 2>/dev/null`
    [ ".$apache_active" = .yes ] && %{l_rc} apache restart
    exit 0

@


1.55
log
@upgrading package: apache-php 5.3.0 -> 5.3.1
@
text
@d26 1
a26 1
%define       V_php_suhosin_p           5.3.0-0.9.8-BETA-1
d42 1
a42 1
Release:      20091121
@


1.54
log
@allow tokenizer extension to be enabled
@
text
@d25 1
a25 1
%define       V_php                     5.3.0
d42 1
a42 1
Release:      20091002
@


1.53
log
@add SOAP support
@
text
@d42 1
a42 1
Release:      20090909
d64 1
d490 5
@


1.52
log
@modifying package: apache-php-5.3.0 20090815 -> 20090816
@
text
@d42 1
a42 1
Release:      20090816
d82 1
d123 4
d509 3
@


1.51
log
@modifying package: apache-php-5.3.0 20090701 -> 20090815
@
text
@d27 1
a27 1
%define       V_php_suhosin_e           0.9.28
d42 1
a42 1
Release:      20090815
@


1.50
log
@adjust packaging for PHP 5.3.0
@
text
@d26 2
a27 2
%define       V_php_suhosin_p           5.2.10-0.9.7
%define       V_php_suhosin_e           0.9.27
d42 1
a42 1
Release:      20090701
@


1.49
log
@upgrading package: apache-php 5.2.10 -> 5.3.0
@
text
@d42 1
a42 1
Release:      20090630
a54 1
%option       with_fastcgi              no
d70 1
a74 1
%option       with_pcre                 no
a82 1
%option       with_spl                  no
a100 2
%undefine     with_pcre
%define       with_pcre          yes
d135 1
d144 2
a195 4
%if "%{with_pcre}" == "yes"
BuildPreReq:  pcre
PreReq:       pcre
%endif
d341 1
d394 1
d407 5
a411 1
%if "%{with_mysql}" == "yes"
d414 3
d419 1
a434 5
%if "%{with_fastcgi}" == "yes"
         --enable-fastcgi \
%else
         --disable-fastcgi \
%endif
a465 3
%if "%{with_pcre}" == "yes"
        --with-pcre-regex=%{l_prefix} \
%endif
a556 5
%if "%{with_spl}" == "yes"
        --enable-spl \
%else
        --disable-spl \
%endif
d570 1
a570 3
        --disable-cgi \
        --enable-force-cgi-redirect \
        --enable-discard-path
@


1.48
log
@modifying package: apache-php-5.2.10 20090619 -> 20090625
@
text
@d25 1
a25 1
%define       V_php                     5.2.10
d42 1
a42 1
Release:      20090625
@


1.47
log
@upgrading package: apache-php 5.2.9 -> 5.2.10
@
text
@d26 1
a26 1
%define       V_php_suhosin_p           5.2.9-0.9.7
d42 1
a42 1
Release:      20090619
@


1.46
log
@bump years in copyright messages
@
text
@d25 1
a25 1
%define       V_php                     5.2.9
d42 1
a42 1
Release:      20090306
@


1.45
log
@modifying package: apache-php-5.2.9 20090228 -> 20090306
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.44
log
@modifying package: apache-php-5.2.9 20090227 -> 20090228
@
text
@d26 1
a26 1
%define       V_php_suhosin_p           5.2.8-0.9.6.3
d42 1
a42 1
Release:      20090228
@


1.43
log
@upgrading package: apache-php 5.2.8 -> 5.2.9
@
text
@d29 1
a29 1
%define       V_php_pecl_memcache       2.2.4
d42 1
a42 1
Release:      20090227
@


1.42
log
@modifying package: apache-php-5.2.8 20081215 -> 20081222
@
text
@d25 1
a25 1
%define       V_php                     5.2.8
d42 1
a42 1
Release:      20081222
@


1.41
log
@modifying package: apache-php-5.2.8 20081212 -> 20081215
@
text
@d28 1
a28 1
%define       V_php_kolab               5.2.6
d42 1
a42 1
Release:      20081215
d138 1
a138 1
Patch1:       http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/php-%{V_php_kolab}/KOLAB_Annotations.patch
@


1.40
log
@add ZIP support
@
text
@d26 1
a26 1
%define       V_php_suhosin_p           5.2.7-0.9.6.3
d42 1
a42 1
Release:      20081212
@


1.39
log
@upgrading package: apache-php 5.2.7 -> 5.2.8
@
text
@d42 1
a42 1
Release:      20081209
d92 1
d114 1
a114 1
%if "%{with_mysql}" == "yes" || "%{with_gd}" == "yes" || "%{with_dom}" == "yes" || "%{with_pecl_memcache}" == "yes"
d570 3
@


1.38
log
@upgrading package: apache-php 5.2.6 -> 5.2.7
@
text
@d25 1
a25 1
%define       V_php                     5.2.7
d42 1
a42 1
Release:      20081204
@


1.37
log
@modifying package: apache-php-5.2.6 20080823 -> 20080912
@
text
@d25 2
a26 2
%define       V_php                     5.2.6
%define       V_php_suhosin_p           5.2.6-0.9.6.2
d42 1
a42 1
Release:      20080912
@


1.36
log
@modifying package: apache-php-5.2.6 20080823 again
@
text
@d29 1
a29 1
%define       V_php_pecl_memcache       2.2.3
d42 1
a42 1
Release:      20080823
@


1.35
log
@modifying package: apache-php-5.2.6 20080808 -> 20080823
@
text
@d27 1
a27 1
%define       V_php_suhosin_e           0.9.26
@


1.34
log
@Grrrr... one more with_mm -> with_session instance
@
text
@d27 1
a27 1
%define       V_php_suhosin_e           0.9.25
d42 1
a42 1
Release:      20080808
@


1.33
log
@ensure that the session directory is created at the right time (with_session and not with_mm)
@
text
@d606 2
a607 2
%if "%{with_mm}" == "yes"
        '%attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/apache/run/apache-php.session' \
@


1.32
log
@Ops, fix typo to get session storage working
@
text
@d599 1
a599 1
%if "%{with_mm}" == "yes"
@


1.31
log
@modifying package: apache-php-5.2.6 20080514 -> 20080807
@
text
@d42 1
a42 1
Release:      20080807
@


1.30
log
@add optional support for the Standard PHP Library (SPL)
@
text
@d27 1
a27 1
%define       V_php_suhosin_e           0.9.24
d42 1
a42 1
Release:      20080514
@


1.29
log
@modifying package: apache-php-5.2.6 20080510 -> 20080511
@
text
@d42 1
a42 1
Release:      20080511
d84 1
d559 5
@


1.28
log
@fix DOM/XML/XSLT dependencies
@
text
@d27 1
a27 1
%define       V_php_suhosin_e           0.9.23
d42 1
a42 1
Release:      20080510
@


1.27
log
@hardened PHP patch is no longer upgraded and available for PHP 5.2 so kick it out at all
@
text
@d42 1
a42 1
Release:      20080503
d116 8
a498 1
        --with-libxml-dir=%{l_prefix} \
@


1.26
log
@modifying package: apache-php-5.2.6 20080502 -> 20080503
@
text
@a27 1
%define       V_php_hardened            5.1.6-0.4.15
a45 1
%option       with_hardened             no
a119 4
%if "%{with_suhosin}" == "yes" && "%{with_hardened}" == "yes"
%undefine     with_hardened
%define       with_hardened      no
%endif
d127 2
a128 3
Patch0:       http://www.hardened-php.net/hardening-patch-%{V_php_hardened}.patch.gz
Patch1:       http://download.suhosin.org/suhosin-patch-%{V_php_suhosin_p}.patch.gz
Patch2:       http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/php-%{V_php_kolab}/KOLAB_Annotations.patch
a285 5
    prog apache-php:hardened = {
        version   = %{V_php_hardened}
        url       = http://www.hardened-php.net/downloads.13.html
        regex     = hardening-patch-(5\.\d+\.\d+-\d+(\.\d+)+)\.patch\.gz
    }
a308 3
%if "%{with_hardened}" == "yes"
    %patch -p1 -P 0
%endif
d311 1
a311 1
    %patch -p1 -P 1
d334 1
a334 1
    sed <%{PATCH2} -e '/php-5.2.1\/ext\/imap\/php_imap.c.orig/,/^[^\+]/d' | %{l_patch} -p1
@


1.25
log
@upgrading package: apache-php 5.2.5 -> 5.2.6
@
text
@d29 1
a29 1
%define       V_php_kolab               5.2.5
d43 1
a43 1
Release:      20080502
@


1.24
log
@sync with PHP package by adding JSON support
@
text
@d25 2
a26 2
%define       V_php                     5.2.5
%define       V_php_suhosin_p           5.2.5-0.9.6.2
@


1.23
log
@add optional support for POSIX functions
@
text
@d43 1
a43 1
Release:      20080327
d66 1
d487 5
@


1.22
log
@switch over to bzip2-compressed tarball; minor cosmetics
@
text
@d43 1
a43 1
Release:      20080325
d79 1
d426 3
@


1.21
log
@add optional support for the PECL memcache extension, sponsored by Ciao GmbH <http://www.ciao-group.com/>
@
text
@d126 1
a126 1
Source0:      http://static.php.net/www.php.net/distributions/php-%{V_php}.tar.gz
d289 1
a289 1
        regex     = php-(5.\d+\.\d+)\.tar\.gz
d584 2
a585 1
        %{SOURCE apache-php.ini} $RPM_BUILD_ROOT%{l_prefix}/etc/apache/
d587 2
a588 1
        %{SOURCE apache-php.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/
@


1.20
log
@add optional support for Tidy
@
text
@d30 1
d43 1
a43 1
Release:      20080312
d91 1
d94 1
a94 1
%if "%{with_mm}" == "yes"
d112 1
a112 1
%if "%{with_mysql}" == "yes" || "%{with_gd}" == "yes" || "%{with_dom}" == "yes"
d130 1
d142 1
a142 1
%if "%{with_suhosin}" == "yes"
d268 4
d311 5
d327 10
a336 2
    export PHP_AUTOCONF=autoconf-213
    ./buildconf --copy --force
d561 3
@


1.19
log
@modifying package: apache-php-5.2.5 20080101 -> 20080114
@
text
@d42 1
a42 1
Release:      20080114
d84 1
d261 4
d536 5
@


1.18
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d27 1
a27 1
%define       V_php_suhosin_e           0.9.22
d42 1
a42 1
Release:      20080101
d124 1
a124 1
Source1:      http://www.hardened-php.net/suhosin/_media/suhosin-%{V_php_suhosin_e}.tgz
d128 1
a128 1
Patch1:       http://www.hardened-php.net/suhosin/_media/suhosin-patch-%{V_php_suhosin_p}.patch.gz
@


1.17
log
@'mm' is just a sub-part of the 'session' extension and 'session' even could be used without 'mm', so (re)introduce 'with_session' option
@
text
@d3 1
a3 2
##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
d42 1
a42 1
Release:      20071221
@


1.16
log
@make sure the mm/session extension can be used out-of-the-box
@
text
@d80 1
d92 4
d436 3
a440 1
        --enable-session \
@


1.15
log
@fix tracking
@
text
@d43 1
a43 1
Release:      20071209
d549 6
d557 3
@


1.14
log
@Fixed upstream patch location.
@
text
@d43 1
a43 1
Release:      20071206
d293 1
a293 1
        regex     = KOLAB_php_(\d+(\.\d+)+)_Annotations\.patch
@


1.13
log
@modifying package: apache-php-5.2.5 20071130 -> 20071202
@
text
@d30 1
a30 1
%define       V_php_kolab               5.2.4
d43 1
a43 1
Release:      20071202
d125 1
a125 1
Patch2:       http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/KOLAB_php_%{V_php_kolab}_Annotations.patch
@


1.12
log
@modifying package: apache-php-5.2.5 20071112 -> 20071130
@
text
@d28 1
a28 1
%define       V_php_suhosin_e           0.9.21
d43 1
a43 1
Release:      20071130
@


1.11
log
@upgrade patch
@
text
@d28 1
a28 1
%define       V_php_suhosin_e           0.9.20
d43 1
a43 1
Release:      20071112
@


1.10
log
@upgrading package: apache-php 5.2.4 -> 5.2.5
@
text
@d27 1
a27 1
%define       V_php_suhosin_p           5.2.4-0.9.6.2
d43 1
a43 1
Release:      20071110
@


1.9
log
@Update the kolab patch location.
@
text
@d26 1
a26 1
%define       V_php                     5.2.4
d30 1
d43 1
a43 1
Release:      20071015
d125 1
a125 1
Patch2:       http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/KOLAB_php_%{V_php}_Annotations.patch
d290 5
d414 1
a414 1
        --with-debug=yes \
d416 1
a416 1
        --with-debug=no \
d529 1
a529 2
        --enable-discard-path \
        --enable-memory-limit
@


1.8
log
@modifying package: apache-php-5.2.4 20070831 -> 20070913
@
text
@d42 1
a42 1
Release:      20070913
d124 1
a124 1
Patch2:       http://projects.pardus.de/kolab/browser/ebuilds-2.1/dev-lang/php/files/php-5.2.2-kolab.patch?format=raw
@


1.7
log
@upgrading package: apache-php 5.2.3 -> 5.2.4
@
text
@d27 1
a27 1
%define       V_php_suhosin_p           5.2.3-0.9.6.2
d42 1
a42 1
Release:      20070831
@


1.6
log
@fix config file header
@
text
@d26 1
a26 1
%define       V_php                     5.2.3
d42 1
a42 1
Release:      20070825
@


1.5
log
@provide with_ctype option for enabling the PHP 'ctype' extension
@
text
@d42 1
a42 1
Release:      20070824
@


1.4
log
@MTA should be required under with_sendmail=yes only, of course
@
text
@d42 1
a42 1
Release:      20070724
d51 1
d475 3
@


1.3
log
@implicitly set 'with_imap=yes' when 'with_imap_annotate=yes' is being set
@
text
@d129 1
a129 1
PreReq:       OpenPKG, openpkg >= 20050615, MTA
@


1.2
log
@fix description
@
text
@d42 1
a42 1
Release:      20070702
d99 4
a200 1
%endif
d205 1
@


1.1
log
@new OpenPKG world order: upgrade from Apache 1.3 to 2.2 (part 1/3: updated/new packages)
@
text
@d42 1
a42 1
Release:      20070622
d259 3
a261 5
    This is the Command Line Interface (CLI) and Common Gateway
    Interface (CGI) version of PHP, intended for use in the "shebang"
    line ("#!%{l_prefix}/bin/php") of stand-alone PHP based programs
    and for use in the "shebang" line ("#!%{l_prefix}/cgi/php") of
    stand-alone webserver-independent CGI scripts.
@

