summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkleink <kleink@pkgsrc.org>2000-06-14 07:30:23 +0000
committerkleink <kleink@pkgsrc.org>2000-06-14 07:30:23 +0000
commit6f9ae1786999143fdf97bc43a09e2a3023548469 (patch)
tree8aacb8d5737b10db26bf43525599b6d341772047
parentf7e4debf17bc0303d03a0a4410a9d2961c7878b1 (diff)
downloadpkgsrc-6f9ae1786999143fdf97bc43a09e2a3023548469.tar.gz
Add support to plug in LDAP maps easily.
-rw-r--r--mail/sendmail/Makefile12
-rw-r--r--mail/sendmail/files/patch-sum4
-rw-r--r--mail/sendmail/patches/patch-aa11
3 files changed, 19 insertions, 8 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 381e8d08c47..6ea2d7c1d0f 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/Makefile
@@ -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})
diff --git a/mail/sendmail/files/patch-sum b/mail/sendmail/files/patch-sum
index bf1fbba433c..45139ad664b 100644
--- a/mail/sendmail/files/patch-sum
+++ b/mail/sendmail/files/patch-sum
@@ -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
diff --git a/mail/sendmail/patches/patch-aa b/mail/sendmail/patches/patch-aa
index ab9947bd898..3989f29493d 100644
--- a/mail/sendmail/patches/patch-aa
+++ b/mail/sendmail/patches/patch-aa
@@ -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')