Add an LDAP flavor for per domain and/or per user configuration.

This commit is contained in:
mbalmer 2007-01-14 10:11:51 +00:00
parent 30a687b396
commit 0f571845e0

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.25 2006/11/12 12:21:21 mbalmer Exp $
# $OpenBSD: Makefile,v 1.26 2007/01/14 10:11:51 mbalmer Exp $
COMMENT= "sendmail milter to scan messages for viruses and spam"
@ -27,6 +27,15 @@ FAKE_FLAGS= ${MAKE_FLAGS}
NO_REGRESS= Yes
FLAVORS= ldap
FLAVOR?=
.if ${FLAVOR:L:Mldap}
MAKE_FLAGS+= -DENABLE_LDAP
LIB_DEPENDS+= ldap_r,lber::databases/openldap
BUILD_DEPENDS+= ::misc/libutf8
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples
cp -r ${WRKSRC}/etc/smtp-vilter ${PREFIX}/share/examples/