Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23996 - ebuild patch for postgres support in Postfix mail-server
Summary: ebuild patch for postgres support in Postfix mail-server
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-06 11:34 UTC by Alessandro Pisani
Modified: 2003-10-17 21:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pgsql support patch for the postfix-2.0.9 ebuild (postfix-2.0.9-ebuild--pgsql-support.patch,1.01 KB, patch)
2003-07-06 11:36 UTC, Alessandro Pisani
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Pisani 2003-07-06 11:34:09 UTC
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.
Comment 1 Alessandro Pisani 2003-07-06 11:36:19 UTC
Created attachment 14200 [details, diff]
pgsql support patch for the postfix-2.0.9 ebuild
Comment 2 Alessandro Pisani 2003-07-06 11:37:42 UTC
oops, I forgot: the patch can be downloaded from: http://www.mat.cc/postfix/postfix-pg.postfix-2.0.0.2.patch
Comment 3 Nick Hadaway 2003-07-10 23:30:38 UTC
postfix-2.0.13 now has the postgres support included.
Please test.
Comment 4 Alessandro Pisani 2003-07-11 10:33:37 UTC
works for me, thanks :)
Comment 5 Nick Hadaway 2003-10-17 21:05:13 UTC
closing bug as there appear to be no problems.