aboutsummaryrefslogtreecommitdiffstats
path: root/mail/exim-devel
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2001-07-03 19:14:13 +0800
committersheldonh <sheldonh@FreeBSD.org>2001-07-03 19:14:13 +0800
commite49bb2325c1934e9538a6067f56f5ce568dac2a1 (patch)
treede9bf63b7b60f8cfda68b1fafeb12b19f822a1ab /mail/exim-devel
parent87c309306712a3b4344a16e1ef26b95af8f9418d (diff)
downloadfreebsd-ports-gnome-e49bb2325c1934e9538a6067f56f5ce568dac2a1.tar.gz
freebsd-ports-gnome-e49bb2325c1934e9538a6067f56f5ce568dac2a1.tar.zst
freebsd-ports-gnome-e49bb2325c1934e9538a6067f56f5ce568dac2a1.zip
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.
Diffstat (limited to 'mail/exim-devel')
-rw-r--r--mail/exim-devel/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/mail/exim-devel/Makefile b/mail/exim-devel/Makefile
index 113f26fc1f78..647457df0bd3 100644
--- a/mail/exim-devel/Makefile
+++ b/mail/exim-devel/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},' \