OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src openpkg-web openpkg$ Date: 27-Nov-2003 14:07:03
Branch: HEAD Handle: 2003112713070002
Added files:
openpkg-re/vcheck vc.php3
openpkg-src/php3 php3.spec
Modified files:
openpkg-web news.txt
Log:
new package: php3 3.0.18 (Personal HomePage (PHP))
Summary:
Revision Changes Path
1.1 +9 -0 openpkg-re/vcheck/vc.php3
1.1 +183 -0 openpkg-src/php3/php3.spec
1.7560 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-re/vcheck/vc.php3
============================================================================
$ cvs diff -u -r0 -r1.1 vc.php3
--- /dev/null 2003-11-27 14:07:00.000000000 +0100
+++ vc.php3 2003-11-27 14:07:00.000000000 +0100
@@ -0,0 +1,9 @@
+config = {
+}
+
+prog php3 = {
+ version = 3.0.18
+ url = http://www.php.net/downloads.php
+ regex = php-(3.\d+\.\d+)\.tar\.gz
+}
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/php3/php3.spec
============================================================================
$ cvs diff -u -r0 -r1.1 php3.spec
--- /dev/null 2003-11-27 14:07:03.000000000 +0100
+++ php3.spec 2003-11-27 14:07:03.000000000 +0100
@@ -0,0 +1,183 @@
+##
+## php3.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2003 Ralf S. Engelschall <[EMAIL PROTECTED]>
+## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.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 information
+Name: php3
+Summary: Personal HomePage (PHP)
+URL: http://www.php.net/
+Vendor: The PHP Project
+Packager: The OpenPKG Project
+Distribution: OpenPKG [EVAL]
+Group: Language
+License: PHP
+Version: 3.0.18
+Release: 20031127
+
+# package options
+%option with_mysql no
+%option with_pgsql no
+%option with_gd no
+%option with_db no
+%option with_zlib no
+%option with_openssl no
+
+# fixing implicit inter-module dependencies and correlations
+%if "%{with_mysql}" == "yes" || "%{with_gd}" == "yes"
+%undefine with_zlib
+%define with_zlib yes
+%endif
+%if "%{with_pgsql}" == "yes"
+%undefine with_openssl
+%define with_openssl yes
+%endif
+
+# list of sources
+Source0: http://www.php.net/distributions/php-%{version}.tar.gz
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20030708, gcc, sed, flex, bison
+PreReq: OpenPKG, openpkg >= 20030708, MTA
+%if "%{with_mysql}" == "yes"
+BuildPreReq: mysql
+PreReq: mysql
+%endif
+%if "%{with_pgsql}" == "yes"
+BuildPreReq: postgresql
+PreReq: postgresql
+%endif
+%if "%{with_gd}" == "yes"
+BuildPreReq: gd, jpeg, png
+PreReq: gd, jpeg, png
+%endif
+%if "%{with_db}" == "yes"
+BuildPreReq: db
+PreReq: db
+%endif
+%if "%{with_zlib}" == "yes"
+BuildPreReq: zlib
+PreReq: zlib
+%endif
+%if "%{with_openssl}" == "yes"
+BuildPreReq: openssl
+PreReq: openssl
+%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 Common Gateway Interface (CGI) version of PHP, intended
+ for use in the "shebang" line ("#!%{l_prefix}/cgi/php") of
+ stand-alone webserver-independent CGI scripts.
+
+ THIS IS THE ALREADY DEPRECATED VERSION 3.x OF PHP.
+ USE IT IN A PRODUCTION ENVIRONMENT ON YOUR OWN RISK ONLY.
+
+%prep
+ %setup -q -n php-%{version}
+
+%build
+ # configure package
+ cflags="%{l_cflags -O} %{l_cppflags}"
+ ldflags="%{l_ldflags}"
+ libs=""
+%if "%{with_gd}" == "yes"
+ libs="$libs -lpng -lz"
+%endif
+%if "%{with_db}" == "yes"
+ libs="$libs -ldb"
+%endif
+
+ CC="%{l_cc}" \
+ CFLAGS="$cflags" \
+ LDFLAGS="$ldflags" \
+ LIBS="$libs" \
+ PROG_SENDMAIL="%{l_prefix}/sbin/sendmail" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --sysconfdir=%{l_prefix}/etc/php3 \
+ --with-config-file-path=%{l_prefix}/etc/php3 \
+%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_db}" == "yes"
+ --with-db4=%{l_prefix} \
+%endif
+%if "%{with_zlib}" == "yes"
+ --with-zlib=%{l_prefix} \
+ --with-zlib-dir=%{l_prefix} \
+%endif
+%if "%{with_openssl}" == "yes"
+ --with-openssl=%{l_prefix} \
+%endif
+ --enable-force-cgi-redirect \
+ --enable-discard-path \
+ --enable-track-vars
+
+ # build package
+ %{l_make} %{l_mflags}
+
+%install
+ # install package
+ rm -rf $RPM_BUILD_ROOT
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/cgi \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/php3
+ %{l_shtool} install -c -s -m 755 \
+ php $RPM_BUILD_ROOT%{l_prefix}/cgi/php3
+
+ # install default configuration file
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/php3
+ %{l_shtool} install -c -m 644 /dev/null \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/php3/php.ini
+
+ # determine installation files
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
+ '%config %{l_prefix}/etc/php3/*'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.7559 -r1.7560 news.txt
--- openpkg-web/news.txt 27 Nov 2003 12:49:47 -0000 1.7559
+++ openpkg-web/news.txt 27 Nov 2003 13:07:01 -0000 1.7560
@@ -1,3 +1,4 @@
+27-Nov-2003: New package: P<php3-3.0.18-20031127>
27-Nov-2003: Upgraded package: P<php-4.3.4-20031127>
27-Nov-2003: Upgraded package: P<apache-1.3.29-20031127>
27-Nov-2003: New package: P<distcc-2.11.2-20031127>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]