When using the BerkeleyDB backend, we need a small hack in rc_pre.
This commit is contained in:
parent
3f71b67f44
commit
9b52473146
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user