aboutsummaryrefslogtreecommitdiffstats
path: root/mail/exim-old
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-04-04 19:51:19 +0800
committersheldonh <sheldonh@FreeBSD.org>2000-04-04 19:51:19 +0800
commit30f4b91efc337e8bfd6271df5f1c67654fb334e5 (patch)
tree5f14837cac362cd1b599d57653c631872f0b39c6 /mail/exim-old
parentbc4cf67657d724edd578c0cfa0557f21827de244 (diff)
downloadfreebsd-ports-gnome-30f4b91efc337e8bfd6271df5f1c67654fb334e5.tar.gz
freebsd-ports-gnome-30f4b91efc337e8bfd6271df5f1c67654fb334e5.tar.zst
freebsd-ports-gnome-30f4b91efc337e8bfd6271df5f1c67654fb334e5.zip
Fix mysql lookups and add experimental glue for ldap lookups.
Reported by: Peter Lockhart <peter@key.co.za>
Diffstat (limited to 'mail/exim-old')
-rw-r--r--mail/exim-old/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/mail/exim-old/Makefile b/mail/exim-old/Makefile
index 0950523b9d72..c98a4661140c 100644
--- a/mail/exim-old/Makefile
+++ b/mail/exim-old/Makefile
@@ -47,9 +47,24 @@ SEDLIST= -e 's,XX_PREFIX_XX,${PREFIX},' \
SEDLIST+= -e 's/^EXIM_MONITOR/\#EXIM_MONITOR/'
.endif
+# BROKEN: the USE_LDAP stuff will not work until the openldap port
+# builds a shared liblber.
+.if defined(USE_LDAP) && ${USE_LDAP} == YES
+LIB_DEPENDS+= lber.1:${PORTSDIR}/net/openldap
+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},' \
+ -e 's,^\# LOOKUP_LDAP,LOOKUP_LDAP,'
+.else
+SEDLIST+= -e 's,XX_LDAP_[^ ]*_XX,,' \
+ -e 's,^LDAP_LIB_TYPE,\#LDAP_LIB_TYPE,'
+.endif
+
.if defined(USE_MYSQL) && ${USE_MYSQL} == YES
+LIB_DEPENDS+= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
SEDLIST+= -e 's,XX_MYSQL_LIBS_XX,-L${PREFIX}/lib/mysql -lmysqlclient,' \
- -e 's,XX_MYSQL_INCLUDE_XX,-I${PREFIX}/include/mysql,'
+ -e 's,XX_MYSQL_INCLUDE_XX,-I${PREFIX}/include/mysql,' \
+ -e 's,^\# LOOKUP_MYSQL,LOOKUP_MYSQL,'
.else
SEDLIST+= -e 's,XX_MYSQL_[^ ]*_XX,,'
.endif