Hello!

Because of an errornous condition in the Makefile of /usr/ports/net/samba
the ldap-FLAVOR is never build. The diff below fixes this (it uses the
FLAVOR-parsing from -current).

Alf


--- net/samba/Makefile.orig     Tue Nov 11 11:48:32 2008
+++ net/samba/Makefile  Tue Nov 11 11:57:04 2008
@@ -77,21 +77,22 @@
 ERRORS+="Fatal: ldap and ads flavors conflict"
 .endif
 
-.if ${FLAVOR:L:Mldap}
-CONFIGURE_ARGS+= --with-ldap --without-ads
+.if ${FLAVOR:L:Mldap} || ${FLAVOR:L:Mads}
 LIB_DEPENDS+=  ldap,lber::databases/openldap
 BUILD_DEPENDS+=        ::misc/libutf8
 .else
-CONFIGURE_ARGS+= --without-ldap --without-ads
+CONFIGURE_ARGS+= --without-ldap
 .endif
 
 .if ${FLAVOR:L:Mads}
-CONFIGURE_ARGS+= --with-ldap --with-krb5="${WRKDIR}/usr" --with-ads
-LIB_DEPENDS+=  ldap,lber::databases/openldap
-BUILD_DEPENDS+=        ::misc/libutf8
+CONFIGURE_ARGS+= --with-krb5="${WRKDIR}/usr"
 WANTLIB+=      asn1 com_err gssapi krb5
 .else
-CONFIGURE_ARGS+= --without-ldap --without-ads
+CONFIGURE_ARGS+= --without-ads
+.endif
+
+.if ${FLAVOR:L:Mads} || ${FLAVOR:L:Mcups}
+WANTLIB+=      crypto
 .endif
 
 PKG_ARCH-docs= *

Reply via email to