From 79bd6b58645502b07151dc936eea6b111d5359dc Mon Sep 17 00:00:00 2001 From: brad Date: Thu, 6 Oct 2005 17:03:21 +0000 Subject: [PATCH] add a LDAP FLAVOR. --- mail/dovecot/Makefile | 11 +++++++++-- mail/dovecot/pkg/DESCR | 1 + mail/dovecot/pkg/PLIST | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/mail/dovecot/Makefile b/mail/dovecot/Makefile index 2827198cbf2..fbb6caa7614 100644 --- a/mail/dovecot/Makefile +++ b/mail/dovecot/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.22 2005/09/23 14:44:05 brad Exp $ +# $OpenBSD: Makefile,v 1.23 2005/10/06 17:03:21 brad Exp $ COMMENT= "compact IMAP/POP3 server" DISTNAME= dovecot-1.0.alpha3 +PKGNAME= ${DISTNAME}p1 CATEGORIES= mail MASTER_SITES= ${HOMEPAGE}releases/ @@ -19,9 +20,14 @@ WANTLIB= c crypto ssl MODULES= converters/libiconv -FLAVORS+= mysql postgresql +FLAVORS+= ldap mysql postgresql FLAVOR?= +.if ${FLAVOR:L:Mldap} +CONFIGURE_ARGS+= --with-ldap +LIB_DEPENDS+= lber,ldap::databases/openldap +.endif + .if ${FLAVOR:L:Mmysql} CONFIGURE_ARGS+= --with-mysql LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql @@ -51,6 +57,7 @@ post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dovecot ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf \ ${WRKSRC}/doc/dovecot-sql.conf \ + ${WRKSRC}/doc/dovecot-ldap.conf \ ${WRKSRC}/dovecot-example.conf \ ${PREFIX}/share/examples/dovecot ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh \ diff --git a/mail/dovecot/pkg/DESCR b/mail/dovecot/pkg/DESCR index 81190866290..e4de60b70c1 100644 --- a/mail/dovecot/pkg/DESCR +++ b/mail/dovecot/pkg/DESCR @@ -7,5 +7,6 @@ accessing the mailboxes directly. Flavors: + ldap - Build with LDAP support as an authentication source mysql - Build with MySQL support as an authentication source postgresql - Build with PostgreSQL support as an authentication source diff --git a/mail/dovecot/pkg/PLIST b/mail/dovecot/pkg/PLIST index 33c167b28b6..204c8b70e4b 100644 --- a/mail/dovecot/pkg/PLIST +++ b/mail/dovecot/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $OpenBSD: PLIST,v 1.10 2005/09/04 18:22:30 brad Exp $ +@comment $OpenBSD: PLIST,v 1.11 2005/10/06 17:03:22 brad Exp $ @newgroup _dovecot:518 @newuser _dovecot:518:_dovecot:daemon:Dovecot Account:/nonexistent:/sbin/nologin libexec/dovecot/ @@ -28,6 +28,7 @@ share/doc/dovecot/variables.txt share/examples/dovecot/ share/examples/dovecot/dovecot-example.conf @sample ${SYSCONFDIR}/dovecot.conf +share/examples/dovecot/dovecot-ldap.conf share/examples/dovecot/dovecot-sql.conf share/examples/dovecot/dovecot-openssl.cnf @sample ${SYSCONFDIR}/ssl/dovecot-openssl.cnf