Subject: pkg/24432: patch for postfix _ pgsql
To: None <gnats-bugs@gnats.netbsd.org>
From: Charlie Allom <charlie@rubberduck.com>
List: netbsd-bugs
Date: 02/16/2004 02:35:20
>Number: 24432
>Category: pkg
>Synopsis: patch for postfix + pgsql
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Feb 15 15:34:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.6ZF
>Organization:
charlie@rubberduck.com - Melbourne, Australia
http://rubberduck.com/~yeled/
PGP: 0x14AA7941 || finger yeled@lazy.spodder.com
>Environment:
System: NetBSD lazy 1.6ZF NetBSD 1.6ZF (GENERIC.MP) #0: Sun Nov 23 01:07:23 EST 2003 root@backspace:/usr/obj/sys/arch/i386/compile.i386/GENERIC.MP i386
Architecture: i386
Machine: i386
>Description:
Hi,
here is a patch to add the well known postgresql functionality to postfix.
>How-To-Repeat:
$NetBSD$
--- Makefile.orig 2004-01-29 03:03:02.000000000 +1100
+++ Makefile
@@ -77,6 +77,18 @@ AUXLIBS+= -L${BUILDLINK_PREFIX.mysql-cli
BUILD_DEFS+= POSTFIX_USE_MYSQL
.endif
+.if defined(POSTFIX_USE_PGSQL) && ${POSTFIX_USE_PGSQL} == "YES"
+. include "../../databases/postgresql-lib/buildlink3.mk"
+. include "../../security/openssl/buildlink3.mk"
+PATCHFILES+= postfix-pg.postfix-2.0.0.2.patch
+PATCH_SITES+= http://www.mat.cc/postfix/
+PATCH_DIST_STRIP= -p1
+CCARGS+= -DHAS_PGSQL -I${BUILDLINK_PREFIX.postgresql-lib}/include/pgsql
+AUXLIBS+= -L${BUILDLINK_PREFIX.postgresql-lib}/lib -lpq \
+ -L${BUILDLINK_PREFIX.openssl}/lib -lcrypt
+BUILD_DEFS+= POSTFIX_USE_PGSQL
+.endif
+
.if defined(USE_SASL2) && ${USE_SASL2} == "YES"
USING_SASL=YES
. include "../../security/cyrus-sasl2/buildlink3.mk"
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: