diff options
Diffstat (limited to 'net-mail/courier-imap/files')
5 files changed, 159 insertions, 0 deletions
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.4-courier-imapd-ssl.rc6 b/net-mail/courier-imap/files/courier-imap-4.0.4-courier-imapd-ssl.rc6 new file mode 100644 index 000000000000..496800881339 --- /dev/null +++ b/net-mail/courier-imap/files/courier-imap-4.0.4-courier-imapd-ssl.rc6 @@ -0,0 +1,42 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-imap-4.0.4-courier-imapd-ssl.rc6,v 1.1 2005/08/08 09:57:05 flameeyes Exp $ + +depend() { + need net courier-authlib + use famd +} + +source /etc/courier-imap/imapd-ssl + +checkconfig() { + if [ ! -e /etc/courier-imap/imapd-ssl ] ; then + eerror "You need an /etc/courier-imap/imapd-ssl file to run courier-imapd" + return 1 + fi + source /etc/courier-imap/imapd-ssl || { + eerror "There are syntax errors in /etc/courier-imap/imapd-ssl" + eerror "Please correct them before trying to start imapd-ssl" + return 3 + } + if [ ! -e "${TLS_CERTFILE}" ] ; then + eerror "You need to create a SSL certificate to use IMAP over SSL" + eerror "Edit /etc/courier-imap/imapd.cnf, then run: mkimapdcert" + return 2 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting courier-imapd over SSL" + /usr/bin/env - /usr/lib/courier-imap/gentoo-imapd-ssl.rc \ + --pid=$SSLPIDFILE + eend $? +} + +stop() { + ebegin "Stopping courier-imapd over SSL" + start-stop-daemon --quiet --stop --pid=$SSLPIDFILE + eend $? +} diff --git a/net-mail/courier-imap/files/courier-imap-4.0.4-courier-imapd.rc6 b/net-mail/courier-imap/files/courier-imap-4.0.4-courier-imapd.rc6 new file mode 100644 index 000000000000..57e5a53a603b --- /dev/null +++ b/net-mail/courier-imap/files/courier-imap-4.0.4-courier-imapd.rc6 @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-imap-4.0.4-courier-imapd.rc6,v 1.1 2005/08/08 09:57:05 flameeyes Exp $ + +depend() { + need net courier-authlib + use famd +} + +source /etc/courier-imap/imapd + +checkconfig() { + if [ ! -e /etc/courier-imap/imapd ] ; then + eerror "You need an /etc/courier-imap/imapd file to run courier-imapd" + return 1 + fi + source /etc/courier-imap/imapd || { + eerror "There are syntax errors in /etc/courier-imap/imapd" + eerror "Please correct them before trying to start imapd" + return 2 + } +} + +start() { + checkconfig || return 1 + ebegin "Starting courier-imapd" + /usr/bin/env - /usr/lib/courier-imap/gentoo-imapd.rc \ + --pid=$PIDFILE + eend $? +} + +stop() { + ebegin "Stopping courier-imapd" + start-stop-daemon --quiet --stop --pid=$PIDFILE + eend $? +} diff --git a/net-mail/courier-imap/files/courier-imap-4.0.4-courier-pop3d-ssl.rc6 b/net-mail/courier-imap/files/courier-imap-4.0.4-courier-pop3d-ssl.rc6 new file mode 100644 index 000000000000..9a0579bf6b4b --- /dev/null +++ b/net-mail/courier-imap/files/courier-imap-4.0.4-courier-pop3d-ssl.rc6 @@ -0,0 +1,42 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-imap-4.0.4-courier-pop3d-ssl.rc6,v 1.1 2005/08/08 09:57:05 flameeyes Exp $ + +depend() { + need net courier-authlib + use famd +} + +source /etc/courier-imap/pop3d-ssl + +checkconfig() { + if [ ! -e /etc/courier-imap/pop3d-ssl ] ; then + eerror "You need an /etc/courier-imap/pop3d-ssl file to run courier-pop3d" + return 1 + fi + source /etc/courier-imap/pop3d-ssl || { + eerror "There are syntax errors in /etc/courier-imap/pop3d-ssl" + eerror "Please correct them before trying to start pop3d-ssl" + return 3 + } + if [ ! -e "${TLS_CERTFILE}" ] ; then + eerror "You need to create a SSL certificate to use POP3 over SSL" + eerror "Edit /etc/courier-imap/pop3d.cnf, then run: mkpop3dcert" + return 2 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting courier-pop3d over SSL" + /usr/bin/env - /usr/lib/courier-imap/gentoo-pop3d-ssl.rc \ + --pidfile $SSLPIDFILE + eend $? +} + +stop() { + ebegin "Stopping courier-pop3d over SSL" + start-stop-daemon --quiet --stop --pidfile $SSLPIDFILE + eend $? +} diff --git a/net-mail/courier-imap/files/courier-imap-4.0.4-courier-pop3d.rc6 b/net-mail/courier-imap/files/courier-imap-4.0.4-courier-pop3d.rc6 new file mode 100644 index 000000000000..69925db4b638 --- /dev/null +++ b/net-mail/courier-imap/files/courier-imap-4.0.4-courier-pop3d.rc6 @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-imap-4.0.4-courier-pop3d.rc6,v 1.1 2005/08/08 09:57:05 flameeyes Exp $ + +depend() { + need net courier-authlib + use famd +} + +source /etc/courier-imap/pop3d + +checkconfig() { + if [ ! -e /etc/courier-imap/pop3d ] ; then + eerror "You need an /etc/courier-imap/pop3d file to run courier-pop3d" + return 1 + fi + source /etc/courier-imap/pop3d || { + eerror "There are syntax errors in /etc/courier-imap/pop3d" + eerror "Please correct them before trying to start pop3d" + return 2 + } +} + +start() { + checkconfig || return 1 + ebegin "Starting courier-pop3d" + /usr/bin/env - /usr/lib/courier-imap/gentoo-pop3d.rc \ + --pidfile $PIDFILE + eend $? +} + +stop() { + ebegin "Stopping courier-pop3d" + start-stop-daemon --quiet --stop --pidfile $PIDFILE + eend $? +} diff --git a/net-mail/courier-imap/files/digest-courier-imap-4.0.4 b/net-mail/courier-imap/files/digest-courier-imap-4.0.4 new file mode 100644 index 000000000000..e6c681fb4b7a --- /dev/null +++ b/net-mail/courier-imap/files/digest-courier-imap-4.0.4 @@ -0,0 +1 @@ +MD5 cb5a1d394e622fe2c5ea7bcab68c6286 courier-imap-4.0.4.tar.bz2 3156707 |