Subject: pkg/19173: postfix does not include a way to enable ldap support
To: None <gnats-bugs@gnats.netbsd.org>
From: None <roskens@elfin.net>
List: netbsd-bugs
Date: 11/25/2002 19:15:18
>Number:         19173
>Category:       pkg
>Synopsis:       postfix does not include a way to enable ldap support
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 25 19:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ron Roskens
>Release:        NetBSD-1.6
>Organization:
>Environment:
>Description:
Postfix 1.1.11 (and 1.1.12) include support for ldap during the build. The current pkgsrc files do not have a way to enable it.
>How-To-Repeat:

>Fix:
Apply this patch:
There isn't a need to adjust the PLIST since postfix already installs the LDAP_README into share/doc/postfix/

diff -b -u -r1.69 Makefile
--- Makefile    2002/10/25 12:09:33     1.69
+++ Makefile    2002/11/26 03:11:54
@@ -72,6 +72,13 @@
 BUILD_DEFS+=   POSTFIX_USE_TLS
 .endif
 
+.if defined(POSTFIX_USE_LDAP) && ${POSTFIX_USE_LDAP} == "YES"
+.include "../../databases/openldap/buildlink2.mk"
+CCARGS+=       -DHAS_LDAP
+AUXLIBS+=      -lldap -llber
+BUILD_DEFS+=   POSTFIX_USE_LDAP
+.endif
+
 MESSAGE_SRC+=  ${PKGDIR}/MESSAGE
 PLIST_SRC+=    ${PKGDIR}/PLIST
 ALL_TARGET=    #empty
>Release-Note:
>Audit-Trail:
>Unformatted: