Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2003 10:03:34 +0100 (CET)
From:      Christian Kratzer <ck@cksoft.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/48621: Allow selection of specific Openldap port agains which to build
Message-ID:  <20030224090334.F3A1D44ABA@majakka.cksoft.de>

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

>Number:         48621
>Category:       ports
>Synopsis:       Allow selection of specific Openldap port agains which to build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 24 01:10:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Christian Kratzer
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
CK Software GmbH
>Environment:
System: FreeBSD majakka.cksoft.de 4.7-STABLE FreeBSD 4.7-STABLE #1: Thu Dec 19 14:57:42 CET 2002 ck@majakka.cksoft.de:/usr/obj/usr/src/RELENG_4/src/sys/MAJAKKA i386

>Description:

There are currently 3 different ports of openldap.
This patch extends scripts/configure.postfix to select
the specific openldap port we want to build with.

We need this so that the correct dependency gets registered
with the package.

>How-To-Repeat:
>Fix:

--- postfix/scripts/configure.postfix.orig	Mon Feb 24 08:48:37 2003
+++ postfix/scripts/configure.postfix	Mon Feb 24 09:43:48 2003
@@ -32,7 +32,9 @@
 DB41		"Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \
 MySQL		"MySQL map lookups" "$status_MySQL" \
 PgSQL		"PostgreSQL map lookups" "$status_PgSQL" \
-OpenLDAP	"OpenLDAP map lookups" "$status_OpenLDAP" \
+OpenLDAP1	"OpenLDAP 1.x map lookups" "$status_OpenLDAP" \
+OpenLDAP20	"OpenLDAP 2.0 map lookups" "$status_OpenLDAP" \
+OpenLDAP21	"OpenLDAP 2.1 map lookups" "$status_OpenLDAP" \
 Test		"SMTP/LMTP test server and generator" "$status_Test" \
 2> $tempfile
 
@@ -171,8 +173,20 @@
 			echo "PATCHFILES+=	postfix-pg.postfix-2.0.0.2.patch"
 			echo "PATCH_DIST_STRIP= -p1"
 			;;
-		OpenLDAP)
+		OpenLDAP1)
 			echo "BUILD_DEPENDS+=	\${LOCALBASE}/lib/libldap.a:\${PORTSDIR}/net/openldap12"
+			echo "POSTFIX_CCARGS+=	-DHAS_LDAP -I\${LOCALBASE}/include"
+			echo "POSTFIX_AUXLIBS+=	\${LOCALBASE}/lib/libldap.a \${PREFIX}/lib/liblber.a"
+			echo "OPENLDAP_SUFFIX=	+openldap"
+			;;
+		OpenLDAP20)
+			echo "BUILD_DEPENDS+=	\${LOCALBASE}/lib/libldap.a:\${PORTSDIR}/net/openldap20"
+			echo "POSTFIX_CCARGS+=	-DHAS_LDAP -I\${LOCALBASE}/include"
+			echo "POSTFIX_AUXLIBS+=	\${LOCALBASE}/lib/libldap.a \${PREFIX}/lib/liblber.a"
+			echo "OPENLDAP_SUFFIX=	+openldap"
+			;;
+		OpenLDAP21)
+			echo "BUILD_DEPENDS+=	\${LOCALBASE}/lib/libldap.a:\${PORTSDIR}/net/openldap21"
 			echo "POSTFIX_CCARGS+=	-DHAS_LDAP -I\${LOCALBASE}/include"
 			echo "POSTFIX_AUXLIBS+=	\${LOCALBASE}/lib/libldap.a \${PREFIX}/lib/liblber.a"
 			echo "OPENLDAP_SUFFIX=	+openldap"

>Release-Note:
>Audit-Trail:
>Unformatted:

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




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