From 5793fb97b18472a36f38bbcb9daf481872af7765 Mon Sep 17 00:00:00 2001 From: martti Date: Mon, 4 Feb 2002 10:31:49 +0000 Subject: Added optional support for LDAP (set SAMBA_USE_LDAP=YES to activate this). According to Samba 2.2.3 release announcement: Much work has been done on the LDAP backend code. The configure option --with-ldapsam is now considered to be stable. The schema used has changed, see the file examples/LDAP/samba.schema for the new schema. New documentation explaining how to set up a Samba only PDC/BDC setup has been added in the files Samba-LDAP-HOWTO and Samba-BDC-HOWTO in the documentation tree. --- net/samba/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'net/samba/Makefile') diff --git a/net/samba/Makefile b/net/samba/Makefile index b3fe2140dd2..a6117d5bc5f 100644 --- a/net/samba/Makefile +++ b/net/samba/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.75 2002/02/04 08:09:02 martti Exp $ +# $NetBSD: Makefile,v 1.76 2002/02/04 10:31:49 martti Exp $ DISTNAME= samba-2.2.3 WRKSRC= ${WRKDIR}/${DISTNAME}/source @@ -61,6 +61,15 @@ BUILD_DEFS+= USE_PAM CONFIGURE_ARGS+= --with-pam .endif +.if defined(SAMBA_USE_LDAP) && ${SAMBA_USE_LDAP} == "YES" +.include "../../databases/openldap/buildlink.mk" +BUILD_DEFS+= SAMBA_USE_LDAP +CONFIGURE_ARGS+= --with-ldapsam +PLIST_SUBST+= SAMBA_LDAP="" +.else +PLIST_SUBST+= SAMBA_LDAP="@comment " +.endif + # The following are Linux-only options. CONFIGURE_ARGS+= --without-smbwrapper CONFIGURE_ARGS+= --without-smbmount -- cgit v1.2.3