OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 28-May-2006 11:45:29
Branch: HEAD Handle: 2006052810452800
Added files:
openpkg-src/php4 php.ini php4.patch php4.spec
Log:
upgrade stand-alone PHP from 4.4.2 to 5.1.4
Summary:
Revision Changes Path
1.1 +22 -0 openpkg-src/php4/php.ini
1.1 +92 -0 openpkg-src/php4/php4.patch
1.1 +518 -0 openpkg-src/php4/php4.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/php4/php.ini
============================================================================
$ cvs diff -u -r0 -r1.1 php.ini
--- /dev/null 2006-05-28 11:45:17 +0200
+++ php.ini 2006-05-28 11:45:28 +0200
@@ -0,0 +1,22 @@
+;;
+;; php.ini -- PHP Configuration
+;;
+
+[PHP]
+
+; Resource Limits
+register_globals = off ; Global variables are no longer registered for
input data
+safe_mode = on ; Enable Safe Mode (file UID comparisons)
+safe_mode_gid = off ; Whether to relax Safe Mode to file GID
comparisons
+allow_url_fopen = off ; Disable the opening of remote URLs
+display_errors = off ; Errors will NOT be displayed
+log_errors = on ; Errors will be logged
+max_execution_time = 60 ; Maximum execution time of each script, in
seconds
+max_input_time = 60 ; Maximum amount of time each script may spend
parsing request data
+memory_limit = 8M ; Maximum amount of memory a script may consume
+post_max_size = 8M ; Maximum amount of POST data accepted
+
+; Include Paths
+include_path = ".:@l_prefix@/lib/php"
+safe_mode_include_dir = "@l_prefix@/lib/php"
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/php4/php4.patch
============================================================================
$ cvs diff -u -r0 -r1.1 php4.patch
--- /dev/null 2006-05-28 11:45:17 +0200
+++ php4.patch 2006-05-28 11:45:28 +0200
@@ -0,0 +1,92 @@
+Index: ext/pdf/pdf.c
+--- ext/pdf/pdf.c.orig 2004-09-13 19:12:13 +0200
++++ ext/pdf/pdf.c 2005-04-01 07:52:31 +0200
+@@ -240,6 +240,16 @@
+ ZEND_GET_MODULE(pdf)
+ #endif
+
++ZEND_BEGIN_MODULE_GLOBALS(pdf)
++FILE *fp;
++ZEND_END_MODULE_GLOBALS(pdf)
++ZEND_DECLARE_MODULE_GLOBALS(pdf)
++#ifdef ZTS
++#define PDF_G(v) TSRMG(pdf_globals_id, zend_pdf_globals *, v)
++#else
++#define PDF_G(v) (pdf_globals.v)
++#endif
++
+ /* {{{ _free_pdf_doc
+ */
+ static void _free_pdf_doc(zend_rsrc_list_entry *rsrc TSRMLS_DC)
+@@ -305,6 +315,15 @@
+ }
+ /* }}} */
+
++/* {{{ pdf_flushwrite_fp
++ */
++static size_t pdf_flushwrite_fp(PDF *p, void *data, size_t size)
++{
++ FILE *fp = PDF_G(fp);
++ return fwrite(data, size, 1, fp);
++}
++/* }}} */
++
+ /* {{{ pdf_flushwrite
+ */
+ static size_t pdf_flushwrite(PDF *p, void *data, size_t size)
+@@ -339,8 +358,13 @@
+
+ /* {{{ PHP_MINIT_FUNCTION
+ */
++static void php_pdf_init_globals (zend_pdf_globals *g)
++{
++ g->fp = NULL;
++}
+ PHP_MINIT_FUNCTION(pdf)
+ {
++ ZEND_INIT_MODULE_GLOBALS(pdf, php_pdf_init_globals, NULL);
+ if ((PDF_get_majorversion() != PDFLIB_MAJORVERSION) ||
+ (PDF_get_minorversion() != PDFLIB_MINORVERSION)) {
+ php_error(E_ERROR,"PDFlib error: Version mismatch in wrapper
code");
+@@ -469,9 +493,8 @@
+ pdf = PDF_new2(custom_errorhandler, pdf_emalloc, pdf_realloc,
pdf_efree, NULL);
+
+ if(fp) {
+- if (PDF_open_fp(pdf, fp) < 0) {
+- RETURN_FALSE;
+- }
++ PDF_G(fp) = fp;
++ PDF_begin_document_callback(pdf, pdf_flushwrite_fp, "");
+ } else {
+ PDF_open_mem(pdf, pdf_flushwrite);
+ }
+Index: scripts/phpize.in
+--- scripts/phpize.in.orig 2005-01-25 13:55:55 +0100
++++ scripts/phpize.in 2005-04-01 07:52:55 +0200
+@@ -1,5 +1,25 @@
+ #!/bin/sh
+
++PATH="@l_prefix@/bin:@l_prefix@/sbin:$PATH"
++export PATH
++
++prereq_fail=""
++for prereq in autoconf automake libtool; do
++ @l_rpm@ --quiet -q $prereq
++ if [ $? -ne 0 ]; then
++ prereq_fail="$prereq_fail $prereq"
++ fi
++done
++if [ ".$prereq_fail" != . ]; then
++ ( echo "OpenPKG: ERROR: please install following OpenPKG packages first"
++ echo "before running $0:"
++ for prereq in $prereq_fail; do
++ echo "o $prereq"
++ done
++ ) | @l_rpmtool@ msg -b -t error
++ exit 1
++fi
++
+ # Variable declaration
+ prefix='@prefix@'
+ phpdir="$prefix/lib/php/build"
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/php4/php4.spec
============================================================================
$ cvs diff -u -r0 -r1.1 php4.spec
--- /dev/null 2006-05-28 11:45:17 +0200
+++ php4.spec 2006-05-28 11:45:29 +0200
@@ -0,0 +1,518 @@
+##
+## php4.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
+## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
+##
+## 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 component versions
+%define V_php 4.4.2
+%define V_php_hardened 4.4.2-0.4.11
+
+# package information
+Name: php4
+Summary: Personal HomePage (PHP)
+URL: http://www.php.net/
+Vendor: The PHP Project
+Packager: OpenPKG
+Distribution: OpenPKG
+Class: PLUS
+Group: Language
+License: PHP
+Version: %{V_php}
+Release: 20060528
+
+# package options
+%option with_bc no
+%option with_bdb no
+%option with_bzip2 no
+%option with_calendar no
+%option with_curl no
+%option with_debug no
+%option with_dom no
+%option with_exif no
+%option with_fastcgi no
+%option with_freetype no
+%option with_ftp no
+%option with_gdbm no
+%option with_gd no
+%option with_gettext no
+%option with_hardened no
+%option with_iconv no
+%option with_imap no
+%option with_java 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_oci7 no
+%option with_oci8 no
+%option with_odbc no
+%option with_openldap no
+%option with_openldapsasl no
+%option with_pcre no
+%option with_pdflib no
+%option with_pear no
+%option with_pgsql no
+%option with_sendmail no
+%option with_snmp no
+%option with_ssl no
+%option with_transsid no
+%option with_versioning no
+%option with_wddx no
+%option with_xml no
+%option with_zlib no
+
+# fixing implicit extension dependencies and correlations
+%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_mysql}" == "yes" || "%{with_gd}" == "yes" || "%{with_pdflib}" ==
"yes" || "%{with_dom}" == "yes"
+%undefine with_zlib
+%define with_zlib 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.gz
+Source1: php.ini
+Patch0:
http://www.hardened-php.net/hardening-patch-%{V_php_hardened}.patch.gz
+Patch1: php4.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20050615, gcc, sed, flex, bison
+PreReq: OpenPKG, openpkg >= 20050615
+%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_pdflib}" == "yes"
+BuildPreReq: pdflib, jpeg, png
+PreReq: pdflib, jpeg, png
+%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_pcre}" == "yes"
+BuildPreReq: pcre
+PreReq: pcre
+%endif
+%if "%{with_java}" == "yes"
+BuildPreReq: j2se
+PreReq: j2se
+%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
+%endif
+%if "%{with_xml}" == "yes"
+BuildPreReq: expat
+PreReq: expat
+%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_oci7}" == "yes" || "%{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
+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 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.
+
+%track
+ prog php4 = {
+ version = %{V_php}
+ url = http://www.php.net/downloads.php
+ regex = php-(4\.\d+\.\d+)\.tar\.gz
+ }
+ prog php4:hardened = {
+ version = %{V_php_hardened}
+ url = http://www.hardened-php.net/downloads.13.html
+ regex = hardening-patch-(4\.\d+\.\d+-\d+(\.\d+)+)\.patch\.gz
+ }
+
+%prep
+ %setup -q -n php-%{version}
+ %{l_shtool} subst \
+ -e 's;\(/include\)/freetype2;\1;' \
+ configure \
+ ext/gd/config.m4
+%if "%{with_hardened}" == "yes"
+ %patch -p1 -P 0
+%endif
+ %patch -p0 -P 1
+ %{l_shtool} subst \
+ %{l_value -s l_prefix l_rpm l_rpmtool} \
+ scripts/phpize.in
+
+%build
+ # configure package
+ cflags="%{l_cflags -O}"
+ cppflags="%{l_cppflags}"
+ ldflags="%{l_ldflags}"
+ libs=""
+%if "%{with_gdbm}" == "yes"
+ libs="$libs -lndbm -lgdbm"
+%endif
+%if "%{with_gd}" == "yes" || "%{with_pdflib}" == "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_oci7}" == "yes" || "%{with_oci8}" == "yes"
+ ORACLE_HOME="`%{l_rc} --query oracle_home`"
+ export ORACLE_HOME
+ oracle_libdir="`%{l_rc} --query oracle_libdir`"
+ case "$oracle_libdir" in
+ */lib32 )
+ %{l_shtool} subst \
+ -e 's;OCI8_DIR/lib;OCI8_DIR/lib32;' \
+ configure
+ ;;
+ esac
+%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/php4 \
+ --with-config-file-path=%{l_prefix}/etc/php4 \
+ --libdir=%{l_prefix}/lib/php4 \
+%if "%{with_calendar}" == "yes"
+ --enable-calendar \
+%endif
+%if "%{with_mysql}" == "yes"
+ --with-mysql=%{l_prefix} \
+%else
+ --without-mysql \
+%endif
+%if "%{with_pgsql}" == "yes"
+ --with-pgsql=%{l_prefix} \
+%else
+ --without-pgsql \
+%endif
+%if "%{with_gd}" == "yes"
+ --with-gd=%{l_prefix} \
+ --with-jpeg-dir=%{l_prefix} \
+ --with-png-dir=%{l_prefix} \
+%endif
+%if "%{with_fastcgi}" == "yes"
+ --enable-fastcgi \
+%else
+ --disable-fastcgi \
+%endif
+%if "%{with_freetype}" == "yes"
+ --enable-gd-imgstrttf \
+ --enable-gd-native-ttf \
+ --with-freetype-dir=%{l_prefix} \
+%endif
+%if "%{with_bdb}" == "yes"
+ --with-db4=%{l_prefix} \
+%endif
+%if "%{with_debug}" == "yes"
+ --with-debug=yes \
+%else
+ --with-debug=no \
+%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_pdflib}" == "yes"
+ --with-pdflib=%{l_prefix} \
+ --with-jpeg-dir=%{l_prefix} \
+ --with-png-dir=%{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_mm}" == "yes"
+ --with-mm=%{l_prefix} \
+ --enable-session \
+%endif
+%if "%{with_pcre}" == "yes"
+ --with-pcre=%{l_prefix} \
+%endif
+%if "%{with_ftp}" == "yes"
+ --enable-ftp \
+%endif
+%if "%{with_java}" == "yes"
+ --with-java=%{l_prefix}/libexec/j2se \
+%endif
+%if "%{with_oci7}" == "yes"
+ --with-oracle \
+%endif
+%if "%{with_oci8}" == "yes"
+ --with-oci8 \
+ --enable-sigchld \
+%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_xml}" == "yes"
+ --enable-xml \
+ --with-expat-dir=%{l_prefix} \
+%else
+ --disable-xml \
+%endif
+%if "%{with_dom}" == "yes"
+ --with-dom=%{l_prefix} \
+ --with-dom-xslt=%{l_prefix} \
+ --with-dom-exslt=%{l_prefix} \
+%endif
+%if "%{with_wddx}" == "yes"
+ --enable-wddx \
+%endif
+%if "%{with_bc}" == "yes"
+ --enable-bcmath \
+%endif
+%if "%{with_transsid}" == "yes"
+ --enable-trans-sid \
+%endif
+%if "%{with_mhash}" == "yes"
+ --with-mhash=%{l_prefix} \
+%endif
+%if "%{with_mcrypt}" == "yes"
+ --with-mcrypt=%{l_prefix} \
+%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 \
+%else
+ --without-pear \
+%endif
+%if "%{with_snmp}" == "yes"
+ --with-snmp=%{l_prefix} \
+%endif
+%if "%{with_odbc}" == "yes"
+ --with-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
+ --enable-cli \
+ --enable-cgi \
+ --enable-force-cgi-redirect \
+ --enable-discard-path \
+ --enable-track-vars \
+ --enable-memory-limit
+
+ # build package
+ %{l_make} %{l_mflags}
+
+%install
+ # install package
+ rm -rf $RPM_BUILD_ROOT
+ %{l_make} %{l_mflags} install INSTALL_ROOT=$RPM_BUILD_ROOT
+
+ # install CLI version
+ # ("make install" incorrectly installs the CGI version into bin/php!)
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/bin \
+ $RPM_BUILD_ROOT%{l_prefix}/man/man1
+ %{l_shtool} install -c -s -m 755 \
+ sapi/cli/php $RPM_BUILD_ROOT%{l_prefix}/bin/php4
+ %{l_shtool} install -c -m 644 \
+ sapi/cli/php.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/php4.1
+
+ # (re)install CGI version
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/cgi
+ %{l_shtool} install -c -s -m 755 \
+ sapi/cgi/php $RPM_BUILD_ROOT%{l_prefix}/cgi/php4
+
+ # adjust paths
+ mv $RPM_BUILD_ROOT%{l_prefix}/include/php \
+ $RPM_BUILD_ROOT%{l_prefix}/include/php4
+ %{l_shtool} subst \
+ -e 's;/include/php;/include/php4;g' \
+ $RPM_BUILD_ROOT%{l_prefix}/bin/phpize \
+ $RPM_BUILD_ROOT%{l_prefix}/bin/php-config
+ for bin in php-config phpize; do
+ mv $RPM_BUILD_ROOT%{l_prefix}/bin/$bin \
+ $RPM_BUILD_ROOT%{l_prefix}/bin/`echo $bin | sed -e
's;^php;php4;'`
+ mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/$bin.1 \
+ $RPM_BUILD_ROOT%{l_prefix}/man/man1/`echo $bin.1 | sed -e
's;^php;php4;'`
+ done
+
+ # install default configuration file
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/php4
+ %{l_shtool} install -c -m 644 %{l_value -s -a} \
+ %{SOURCE php.ini} $RPM_BUILD_ROOT%{l_prefix}/etc/php4/
+
+ # strip down installation
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+
+ # determine installation files
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
+ '%config %{l_prefix}/etc/php4/*'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]