Add support to plug in LDAP maps easily.

This commit is contained in:
kleink 2000-06-14 07:30:23 +00:00
parent f7e4debf17
commit 6f9ae17869
3 changed files with 19 additions and 8 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2000/01/09 01:29:07 wiz Exp $
# $NetBSD: Makefile,v 1.13 2000/06/14 07:30:23 kleink Exp $
DISTNAME= sendmail.8.9.3
PKGNAME= sendmail-8.9.3
@ -46,6 +46,16 @@ PLIST_SRC= ${WRKDIR}/PLIST
MAKE_ENV+= DB_ENVDEF="" DB_LIBS=""
.endif
.if defined(USE_LDAP) && ${USE_LDAP} == YES
DEPENDS+= openldap-1.2.7p1:../../databases/openldap
MAKE_ENV+= LDAP_CONF="-DLDAPMAP" \
LDAP_ENVDEF="-I${LOCALBASE}/include" \
LDAP_LIBS="-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lldap -llber"
.else
MAKE_ENV+= LDAP_CONF="" LDAP_ENVDEF="" LDAP_LIBS=""
.endif
post-patch:
.if defined(USE_INET6) && ${USE_INET6} == YES
@(${CP} ${FILESDIR}/site.config-v6 ${WRKSRC})

View file

@ -1,4 +1,4 @@
$NetBSD: patch-sum,v 1.2 1999/12/01 21:15:21 tron Exp $
$NetBSD: patch-sum,v 1.3 2000/06/14 07:30:23 kleink Exp $
MD5 (patch-aa) = 5cf04a5f1faa525ea6d516805e89bc80
MD5 (patch-aa) = b678944a13c676198b3c0c62b9e82939
MD5 (patch-ab) = 38e9dd26e2ca9b0bedf478342ab9f503

View file

@ -1,14 +1,15 @@
$NetBSD: patch-aa,v 1.7 1999/12/01 21:15:22 tron Exp $
$NetBSD: patch-aa,v 1.8 2000/06/14 07:30:24 kleink Exp $
--- BuildTools/OS/NetBSD.orig Tue Dec 29 18:39:50 1998
+++ BuildTools/OS/NetBSD Sat Apr 10 19:13:10 1999
+++ BuildTools/OS/NetBSD Tue Jun 13 19:34:47 2000
@@ -1,4 +1,18 @@
# @(#)NetBSD 8.6 (Berkeley) 3/12/1998
define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX')
-define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX')
-define(`confENVDEF', ` -DNETISO')
+define(`confENVDEF', ` -DNETISO ${DB_ENVDEF}')
+define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX ${LDAP_CONF}')
+define(`confENVDEF', ` -DNETISO ${DB_ENVDEF} ${LDAP_ENVDEF}')
define(`confDEPEND_TYPE', `CC-M')
+define(`confLIBS', `${DB_LIBS} ${LDFLAGS}')
+define(`confLIBS', `${DB_LIBS} ${LDAP_LIBS} ${LDFLAGS}')
+define(`confEBINDIR', `${PREFIX}/libexec/sendmail')
+define(`confMBINDIR', `${PREFIX}/libexec/sendmail')
+define(`confSBINDIR', `${PREFIX}/sbin')