Browse Source

add PostgreSQL support for PHP

master
parent
commit
28079d573b
  1. 16
      apache/apache.spec
  2. 16
      php/php.spec

16
apache/apache.spec

@ -60,7 +60,7 @@ Distribution: OpenPKG [BASE]
Group: Web
License: ASF
Version: %{V_apache}
Release: 20030710
Release: 20030715
# package options (suexec related)
%option with_suexec yes
@ -89,6 +89,7 @@ Release: 20030710
# package options (optional PHP4 specific settings; requires "with_mod_php")
%option with_mod_php_calendar no
%option with_mod_php_mysql no
%option with_mod_php_pgsql no
%option with_mod_php_gd no
%option with_mod_php_db no
%option with_mod_php_debug no
@ -147,6 +148,10 @@ RPM ERROR: with_mod_php conflicts with with_mod_php3
%undefine with_mod_php_zlib
%define with_mod_php_zlib yes
%endif
%if "%{with_mod_php_pgsql}" == "yes"
%undefine with_mod_php_openssl
%define with_mod_php_openssl yes
%endif
%endif
%if "%{with_mod_php3}" == "yes"
%if "%{with_mod_ssl}" == "yes"
@ -207,6 +212,10 @@ BuildPreReq: gcc, sed, flex, bison
BuildPreReq: mysql
PreReq: mysql
%endif
%if "%{with_mod_php_pgsql}" == "yes"
BuildPreReq: postgresql, openssl
PreReq: postgresql, openssl
%endif
%if "%{with_mod_php_gd}" == "yes"
BuildPreReq: gd, jpeg, png
PreReq: gd, jpeg, png
@ -498,6 +507,11 @@ AutoReqProv: no
%else
--without-mysql \
%endif
%if "%{with_mod_php_pgsql}" == "yes"
--with-pgsql=%{l_prefix} \
%else
--without-pgsql \
%endif
%if "%{with_mod_php_gd}" == "yes"
--with-gd=%{l_prefix} \
--with-jpeg-dir=%{l_prefix} \

16
php/php.spec

@ -33,11 +33,12 @@ Distribution: OpenPKG [BASE]
Group: Language
License: PHP
Version: 4.3.2
Release: 20030708
Release: 20030715
# package options (analog to apache.spec)
%option with_calendar no
%option with_mysql no
%option with_pgsql no
%option with_gd no
%option with_db no
%option with_debug no
@ -76,6 +77,10 @@ Release: 20030708
%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
@ -90,6 +95,10 @@ PreReq: OpenPKG, openpkg >= 20030708
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
@ -220,6 +229,11 @@ AutoReqProv: no
%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} \

Loading…
Cancel
Save