Specfile diff for building a postfix-2.1.5-4.2.RHEL4.pgsql.centos4.i386.rpm along the lines of the Postfix + Mysql RPM available in CentosPlus. Any idea what repository would be appropriate to try and get this included in? -Mike --- postfix.spec 2005-02-11 06:52:53.000000000 -0700 +++ postfix-pgsql.spec 2006-02-25 22:33:20.000000000 -0700 @@ -1,5 +1,6 @@ %define LDAP 2 %define MYSQL 0 +%define PGSQL 1 %define PCRE 1 %define SASL 2 %define TLS 1 @@ -44,7 +45,7 @@ Name: postfix Summary: Postfix Mail Transport Agent Version: 2.1.5 -Release: 4.2.RHEL4 +Release: 4.2.RHEL4.pgsql.centos4 Epoch: 2 Group: System Environment/Daemons URL: http://www.postfix.org @@ -140,6 +141,11 @@ BuildRequires: mysql, mysql-devel %endif +%if %{PGSQL} +Requires: postgresql +BuildRequires: postgresql, postgresql-devel +%endif + %if %{TLS} Requires: openssl BuildRequires: openssl-devel >= 0.9.6 @@ -251,6 +257,10 @@ CCARGS="${CCARGS} -DHAS_MYSQL -I/usr/include/mysql" AUXLIBS="${AUXLIBS} -L%{_libdir}/mysql -lmysqlclient -lm" %endif +%if %{PGSQL} + CCARGS="${CCARGS} -DHAS_PGSQL -I/usr/include/pgsql" + AUXLIBS="${AUXLIBS} -L%{_libdir}/pgsql -lpq" +%endif %if %{SASL} %define sasl_v1_lib_dir %{_libdir}/sasl %define sasl_v2_lib_dir %{_libdir}/sasl2 @@ -556,6 +566,10 @@ %changelog +* Sat Feb 25 2005 Michael Best <mbest at pendragon.org> 2:2.1.5-4.2.RHEL4.pgsql.centos4 +- Added pgsql support to postfix +- http://www.postfix.org/PGSQL_README.html + * Fri Feb 11 2005 Thomas Woerner <twoerner at redhat.com> 2:2.1.5-4.2.RHEL4 - fixed open relay bug in postfix ipv6 patch: new version 1.26 (#146732) - fixed permissions on doc directory (#147280)