this patch (tested against postfix-2.0.9.ebuild, currently latest stable version in portage) add PostgreSQL support to the Postfix mail server. creating also an attachment for it. --- postfix-2.0.9.ebuild 2003-06-16 14:51:38.000000000 +0200 +++ postfix-2.0.9-r90.ebuild 2003-07-06 20:27:02.000000000 +0200 @@ -6,7 +6,8 @@ TLS_P="pfixtls-0.8.13-2.0.6-0.9.7a" IPV6_P="tls+ipv6-1.13-pf-2.0.7" -IUSE="ssl mysql sasl ldap ipv6 maildir mbox" +PGSQL_P="postfix-pg.postfix-2.0.0.2" +IUSE="ssl postgres mysql sasl ldap ipv6 maildir mbox" DESCRIPTION="A fast and secure drop-in replacement for sendmail" HOMEPAGE="http://www.postfix.org" SRC_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official/${P}.tar.gz @@ -24,6 +25,7 @@ >=dev-libs/libpcre-3.4 ldap? ( >=net-nds/openldap-1.2 ) mysql? ( >=dev-db/mysql-3.23.51 ) + postgres? ( >=dev-db/postgresql-7.1 ) ssl? ( >=dev-libs/openssl-0.9.6g ) sasl? ( dev-libs/cyrus-sasl )" @@ -94,6 +96,11 @@ CCARGS="${CCARGS} -DHAS_SSL" AUXLIBS="${AUXLIBS} -lssl -lcrypto" fi + + if [ "`use postgres`" ]; then + epatch ${FILESDIR}/${PGSQL_P}.patch || die + fi + cd ${S}/conf cp main.cf main.cf.orig sed -e "s:/usr/libexec/postfix:/usr/lib/postfix:" \ Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 14200 [details, diff] pgsql support patch for the postfix-2.0.9 ebuild
oops, I forgot: the patch can be downloaded from: http://www.mat.cc/postfix/postfix-pg.postfix-2.0.0.2.patch
postfix-2.0.13 now has the postgres support included. Please test.
works for me, thanks :)
closing bug as there appear to be no problems.