From 9b52473146f5d06ca497708f84fb631949151b22 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sat, 4 Dec 2010 14:11:53 +0000 Subject: [PATCH] When using the BerkeleyDB backend, we need a small hack in rc_pre. --- mail/cyrus-imapd/Makefile | 4 ++-- mail/cyrus-imapd/pkg/cyrus_imapd.rc | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mail/cyrus-imapd/Makefile b/mail/cyrus-imapd/Makefile index 26237f3d063..835f0ae1782 100644 --- a/mail/cyrus-imapd/Makefile +++ b/mail/cyrus-imapd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.47 2010/12/03 15:52:51 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.48 2010/12/04 14:11:53 ajacoutot Exp $ BROKEN= talk to ajacoutot@ for details @@ -11,7 +11,7 @@ PKGNAME-main= ${DISTNAME} FULLPKGNAME-perl=cyrus-imapd-perl-${V} FULLPKGPATH-perl=mail/cyrus-imapd,-perl -REVISION-main= 4 +REVISION-main= 5 REVISION-perl= 0 CATEGORIES= mail diff --git a/mail/cyrus-imapd/pkg/cyrus_imapd.rc b/mail/cyrus-imapd/pkg/cyrus_imapd.rc index 26acc783061..2f40d67b617 100755 --- a/mail/cyrus-imapd/pkg/cyrus_imapd.rc +++ b/mail/cyrus-imapd/pkg/cyrus_imapd.rc @@ -1,12 +1,18 @@ #!/bin/sh # -# $OpenBSD: cyrus_imapd.rc,v 1.3 2010/12/01 19:57:01 ajacoutot Exp $ +# $OpenBSD: cyrus_imapd.rc,v 1.4 2010/12/04 14:11:53 ajacoutot Exp $ . /etc/rc.d/rc.subr daemon="${TRUEPREFIX}/libexec/cyrus-imapd/master" daemon_flags="-d" +# needed when using the BerkeleyDB backend to prevent: +# DBERROR db4: no absolute path for the current directory: No such file or directory +rc_pre() { + cd /var/imap +} + rc_post() { rm -f /var/run/cyrus-master.pid }