Hi,
the following patch adds a new flavor that lets dovecot compile with
BerkeleyDB support.
BDB is needed for the expire plugin, if no SQL backend is used.
Comments?
Michael
Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/dovecot/Makefile,v
retrieving revision 1.110
diff -u -r1.110 Makefile
--- Makefile 8 Jan 2009 12:07:03 -0000 1.110
+++ Makefile 16 Jan 2009 13:38:26 -0000
@@ -9,8 +9,8 @@
V_DOVECOT= 1.1.8
V_SIEVE= 1.1.6
-PKGNAME= dovecot-${V_DOVECOT}
-PKGNAME-server= dovecot-${V_DOVECOT}
+PKGNAME= dovecot-${V_DOVECOT}p0
+PKGNAME-server= dovecot-${V_DOVECOT}p0
FULLPKGNAME-sieve= dovecot-sieve-${V_SIEVE}
DISTNAME= dovecot-${V_DOVECOT}
@@ -41,7 +41,7 @@
SUBPACKAGE?= -server
PSEUDO_FLAVORS= no_sieve
-FLAVORS= ldap mysql postgresql sqlite
+FLAVORS= bdb ldap mysql postgresql sqlite
FLAVOR?=
CFLAGS+= -I/usr/include/kerberosV -I${LOCALBASE}/include
@@ -62,6 +62,12 @@
AUTOCONF_DIR+= ${WRKSRC} ${SIEVE_DIR}
RUN_DEPENDS-sieve= ::${BUILD_PKGPATH}
LIB_DEPENDS-sieve= ${MODLIBICONV_LIB_DEPENDS}
+.endif
+
+.if ${FLAVOR:L:Mbdb}
+CONFIGURE_ARGS+= --with-db
+LIB_DEPENDS+= db.>=5::databases/db/v4
+CFLAGS+= -I${LOCALBASE}/include/db4
.endif
.if ${FLAVOR:L:Mldap}
Index: pkg/PLIST-server
===================================================================
RCS file: /cvs/ports/mail/dovecot/pkg/PLIST-server,v
retrieving revision 1.12
diff -u -r1.12 PLIST-server
--- pkg/PLIST-server 8 Jan 2009 12:07:03 -0000 1.12
+++ pkg/PLIST-server 16 Jan 2009 13:38:26 -0000
@@ -266,6 +266,6 @@
@mode
@group
share/examples/dovecot/dovecot-sql-example.conf
+...@extraunexec rm -rf /var/dovecot
@extra /etc/ssl/dovecotcert.pem
@extra /etc/ssl/private/dovecot.pem
-...@extraunexec rm -rf /var/dovecot