summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2017-09-06 15:25:52 +0300
committerEray Aslan <eras@gentoo.org>2017-09-06 15:26:34 +0300
commitb930b70fa5a5f5b011610d81c19a6fc5f761b84b (patch)
tree55c1e3cad88720e60bfafc4e941ad01c8eb5fdd6 /net-mail/cyrus-imapd/files
parentnet-vpn/tor: remove older unstable versions (diff)
downloadgentoo-b930b70fa5a5f5b011610d81c19a6fc5f761b84b.tar.gz
gentoo-b930b70fa5a5f5b011610d81c19a6fc5f761b84b.tar.bz2
gentoo-b930b70fa5a5f5b011610d81c19a6fc5f761b84b.zip
net-mail/cyrus-imapd: version bump to 3.0.4
Also sync cyrus and imapd socket locations and have the socket directory created during startup - bug 627804 Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'net-mail/cyrus-imapd/files')
-rw-r--r--net-mail/cyrus-imapd/files/cyrus.rc834
1 files changed, 34 insertions, 0 deletions
diff --git a/net-mail/cyrus-imapd/files/cyrus.rc8 b/net-mail/cyrus-imapd/files/cyrus.rc8
new file mode 100644
index 000000000000..9d9e9452f565
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus.rc8
@@ -0,0 +1,34 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+ use dns logger
+ after drac saslauthd
+}
+
+checkdirs() {
+ for dir in /run/cyrus/{,proc,lock,socket,sync}
+ do
+ checkpath -q -d -o cyrus:mail -m 0750 "${dir}" || {
+ eerror "Failed to create directory at $dir"
+ return 1
+ }
+ done
+}
+
+
+start() {
+ checkdirs || return 1
+ ebegin "Starting cyrus imapd"
+ start-stop-daemon --start --quiet --background \
+ --exec /usr/libexec/cyrusmaster -- ${CYRUS_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping cyrus imapd"
+ start-stop-daemon --stop --quiet --pidfile /run/cyrus-master.pid
+ eend $?
+}