summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2004-05-19 09:04:10 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2004-05-19 09:04:10 +0000
commit5b591bbfc0a49c8e996e90f0d131d61b664b3ecf (patch)
tree52441c01491d5cd196e653791222caa6a3feebc0 /net-mail/courier-imap/files
parentversion bump (Manifest recommit) (diff)
downloadgentoo-2-5b591bbfc0a49c8e996e90f0d131d61b664b3ecf.tar.gz
gentoo-2-5b591bbfc0a49c8e996e90f0d131d61b664b3ecf.tar.bz2
gentoo-2-5b591bbfc0a49c8e996e90f0d131d61b664b3ecf.zip
bug #49823 again, authdaemond changes
Diffstat (limited to 'net-mail/courier-imap/files')
-rw-r--r--net-mail/courier-imap/files/authdaemond-3.0.4-r142
-rw-r--r--net-mail/courier-imap/files/authdaemond.conf-3.0.4-r114
-rw-r--r--net-mail/courier-imap/files/digest-courier-imap-3.0.4-r11
3 files changed, 57 insertions, 0 deletions
diff --git a/net-mail/courier-imap/files/authdaemond-3.0.4-r1 b/net-mail/courier-imap/files/authdaemond-3.0.4-r1
new file mode 100644
index 000000000000..d305a377ef98
--- /dev/null
+++ b/net-mail/courier-imap/files/authdaemond-3.0.4-r1
@@ -0,0 +1,42 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/authdaemond-3.0.4-r1,v 1.1 2004/05/19 09:04:10 robbat2 Exp $
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /etc/courier-imap/authdaemonrc ] ; then
+ eerror "You need an /etc/courier-imap/authdaemonrc file to run authdaemon"
+ return 1
+ fi
+}
+
+setauth() {
+ source /etc/courier-imap/authdaemonrc
+ AUTHLIB="/usr/lib/courier-imap/authlib"
+ source /etc/courier-imap/authdaemond.conf
+ [ -z "$version" ] && version="${AUTHDAEMOND}"
+ pidfile="/var/lib/courier-imap/authdaemon/pid"
+ logger="/usr/lib/courier-imap/courierlogger"
+}
+
+start() {
+ checkconfig || return 1
+ setauth
+
+ ebegin "Starting ${AUTHDAEMOND}"
+ start-stop-daemon --quiet --start --pidfile "$pidfile" --exec \
+ /usr/bin/env -- - $logger -pid="$pidfile" -start "${AUTHLIB}/${AUTHDAEMOND}"
+ eend $?
+}
+
+stop() {
+ setauth
+
+ ebegin "Stopping ${AUTHDAEMOND}"
+ start-stop-daemon --quiet --stop \
+ --pidfile "$pidfile"
+ eend $?
+}
diff --git a/net-mail/courier-imap/files/authdaemond.conf-3.0.4-r1 b/net-mail/courier-imap/files/authdaemond.conf-3.0.4-r1
new file mode 100644
index 000000000000..4db4dd35a3c0
--- /dev/null
+++ b/net-mail/courier-imap/files/authdaemond.conf-3.0.4-r1
@@ -0,0 +1,14 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/authdaemond.conf-3.0.4-r1,v 1.1 2004/05/19 09:04:10 robbat2 Exp $
+
+# This file should contain your chosen authenticator
+# This overrides 'version' in /etc/courier-imap/authdaemonrc
+# Valid choices are..
+#
+# AUTHDAEMOND="authdaemond.plain"
+# AUTHDAEMOND="authdaemond.mysql"
+# AUTHDAEMOND="authdaemond.pgsql"
+# AUTHDAEMOND="authdaemond.ldap"
+#
+AUTHDAEMOND="authdaemond.plain"
diff --git a/net-mail/courier-imap/files/digest-courier-imap-3.0.4-r1 b/net-mail/courier-imap/files/digest-courier-imap-3.0.4-r1
new file mode 100644
index 000000000000..ffd86ed0dbfd
--- /dev/null
+++ b/net-mail/courier-imap/files/digest-courier-imap-3.0.4-r1
@@ -0,0 +1 @@
+MD5 a98e8a0c6fd05636c87267df882592a3 courier-imap-3.0.4.tar.bz2 1641551