Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  7 May 2002 13:27:58 +0200 (CEST)
From:      Mathieu Arnold <mat@absolight.fr>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        khera@kciLink.com
Subject:   ports/37821: Adding PostgreSQL map lookups to postfix
Message-ID:  <20020507112758.7D2D8D7E2@aragorn.reaumur.absolight.net>

next in thread | raw e-mail | index | archive | help

>Number:         37821
>Category:       ports
>Synopsis:       Adding PostgreSQL map lookups to postfix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 07 04:30:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Mathieu Arnold
>Release:        FreeBSD 4.5-RELEASE-p2 i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.reaumur.absolight.net 4.5-RELEASE-p2 FreeBSD 4.5-RELEASE-p2 #1: Mon Apr 15 14:25:33 CEST 2002 root@aragorn.reaumur.absolight.net:/usr/obj/usr/src/sys/ARAGORN i386


>Description:
Adding PostgreSQL map lookups to postfix

I've been using this maps for 2 years now, and if you can have MySQL why not
have PostgreSQL :)

>How-To-Repeat:

>Fix:

Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/mail/postfix/distinfo,v
retrieving revision 1.27
diff -u -r1.27 distinfo
--- distinfo	6 May 2002 19:59:29 -0000	1.27
+++ distinfo	7 May 2002 11:20:02 -0000
@@ -1,3 +1,4 @@
 MD5 (postfix/postfix-1.1.8.tar.gz) = 3b07a59e8bdb46af8c1d82f085a62d73
 MD5 (postfix/pfixtls-0.8.7-1.1.7-0.9.6c.tar.gz) = a00656e4e7fd1e4827c3e805799d2359
 MD5 (postfix/postfix-1.1.7+ipv6.patch.gz) = 9564e8e1e3ddfb885bb1ffaaf75c670b
+MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba
Index: scripts/configure.postfix
===================================================================
RCS file: /home/ncvs/ports/mail/postfix/scripts/configure.postfix,v
retrieving revision 1.20
diff -u -r1.20 configure.postfix
--- scripts/configure.postfix	6 May 2002 19:59:29 -0000	1.20
+++ scripts/configure.postfix	7 May 2002 11:20:25 -0000
@@ -17,6 +17,7 @@
 SASL		"Cyrus SASL (Simple Authentication and Security Layer)" OFF \
 DB3		"Berkeley DB3 (required if SASL also built with DB3)" OFF \
 MySQL		"MySQL map lookups" OFF \
+PgSQL		"PostgreSQL map lookups" OFF \
 OpenLDAP	"OpenLDAP map lookups" OFF \
 Test		"SMTP/LMTP test server and generator" OFF \
 TLS		"Secure Sockets Layer and Transport Layer Security" OFF \
@@ -99,6 +100,15 @@
 			echo "POSTFIX_AUXLIBS+=	\${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz"
 			echo "MYSQL_SUFFIX=	+mysql"
 			;;
+		\"PgSQL\")
+			echo "LIB_DEPENDS+=	pq.2:\${PORTSDIR}/databases/postgresql7"
+			echo "POSTFIX_CCARGS+=	-DHAS_PGSQL -I\${LOCALBASE}/include"
+			echo "POSTFIX_AUXLIBS+=	-L\${LOCALBASE}/lib -lpq -lcrypt"
+			echo "PGSQL_SUFFIX=	+pgsql"
+			echo "PATCH_SITES+=	http://mat.cc/postfix/"
+			echo "PATCHFILES+=	postfix-pg.postfix-1.1.8.patch"
+			echo "PATCH_DIST_STRIP= -p1"
+			;;
 		\"OpenLDAP\")
 			echo "BUILD_DEPENDS+=	\${LOCALBASE}/lib/libldap.a:\${PORTSDIR}/net/openldap"
 			echo "POSTFIX_CCARGS+=	-DHAS_LDAP -I\${LOCALBASE}/include"
@@ -142,4 +152,4 @@
 # we ask the configure questions) doesn't pick up the extensions, but
 # any subsequent build will.  so "make; make install" will build twice.
 # don't do this for now.
-#echo "PKGNAMESUFFIX=	\${PCRE_SUFFIX}\${SASL_SUFFIX}\${DB3_SUFFIX}\${MYSQL_SUFFIX}\${OPENLDAP_SUFFIX}\${TLS_SUFFIX}\${IPv6_SUFFIX}"
+#echo "PKGNAMESUFFIX=	\${PCRE_SUFFIX}\${SASL_SUFFIX}\${DB3_SUFFIX}\${MYSQL_SUFFIX}\${PGSQL_SUFFIX}\${OPENLDAP_SUFFIX}\${TLS_SUFFIX}\${IPv6_SUFFIX}"
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020507112758.7D2D8D7E2>