summaryrefslogtreecommitdiff
path: root/net/samba/Makefile
diff options
context:
space:
mode:
authormartti <martti>2002-02-04 10:31:49 +0000
committermartti <martti>2002-02-04 10:31:49 +0000
commit5793fb97b18472a36f38bbcb9daf481872af7765 (patch)
tree93cd157b5f4eef88c66c67b28262d474c233d821 /net/samba/Makefile
parent410816305ff72505474eed0ab969e6d93019d0fd (diff)
downloadpkgsrc-5793fb97b18472a36f38bbcb9daf481872af7765.tar.gz
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.
Diffstat (limited to 'net/samba/Makefile')
-rw-r--r--net/samba/Makefile11
1 files changed, 10 insertions, 1 deletions
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