summaryrefslogtreecommitdiff
path: root/mail/exim/Makefile
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2001-07-03 11:14:13 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2001-07-03 11:14:13 +0000
commitbde8a588e50ff1777fd83870861b8d77f14c68ae (patch)
treeefa5360f5ae280186847cc54f827d6fa23d93942 /mail/exim/Makefile
parentUpdate to 1.0.3 (diff)
Fixes for building with LDAP lookup support:
* Define LDAP_LIB_TYPE conditionally so that the operator can override it. * Allow OPENLDAP1 (or UMICHIGAN) and OPENLDAP2 for LDAP_LIB_TYPE, depending on the correct ports for each. The default behaviour of the port is unchanged. However, this change allows for an exim-ldap2 slave port, if desired, and limits LDAP lookup types to those that can be supported by the FreeBSD ports tree.
Notes
Notes: svn path=/head/; revision=44690
Diffstat (limited to '')
-rw-r--r--mail/exim/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile
index 113f26fc1f78..647457df0bd3 100644
--- a/mail/exim/Makefile
+++ b/mail/exim/Makefile
@@ -39,9 +39,11 @@ MAKE_ENV+= OSTYPE=${OPSYS} ARCHTYPE=${MACHINE_ARCH}
# kernel. Exim's IPv6 support is still experimental.
#WITH_IPV6= yes
-# If WITH_LDAP is defined, LDAP_LIB_TYPE must be one of UMICHIGAN,
-# NETSCAPE or SOLARIS7.
-LDAP_LIB_TYPE=UMICHIGAN
+# If WITH_LDAP is defined, LDAP_LIB_TYPE must be either OPENLDAP1 or
+# OPENLDAP2. UMICHIGAN is an alias for OPENLDAP1. Exim also supports
+# NETSCAPE and SOLARIS7 lookup types, but no client libraries exist
+# for these in the ports tree.
+LDAP_LIB_TYPE?=OPENLDAP1
# The following options may be defined to turn off support for various
# features that this port enables by default.
@@ -93,7 +95,13 @@ SEDLIST+= -e 's,XX_TCP_WRAPPERS_LIBS_XX,,'
.endif
.if defined(WITH_LDAP)
+.if (${LDAP_LIB_TYPE} == OPENLDAP1) || (${LDAP_LIB_TYPE} == UMICHIGAN)
LIB_DEPENDS+= lber.1:${PORTSDIR}/net/openldap
+.elif ${LDAP_LIB_TYPE} == OPENLDAP2
+LIB_DEPENDS+= lber.2:${PORTSDIR}/net/openldap2
+.else
+.error LDAP_LIB_TYPE must be either OPENLDAP1 or OPENLDAP2
+.endif
SEDLIST+= -e 's,XX_LDAP_LIBS_XX,-L${PREFIX}/lib -llber -lldap,' \
-e 's,XX_LDAP_INCLUDE_XX,-I${PREFIX}/include,' \
-e 's,XX_LDAP_TYPE_XX,${LDAP_LIB_TYPE},' \