diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2000-12-22 07:33:43 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2000-12-22 07:33:43 +0000 |
commit | 3268a51375218d40a19c39c4e5d3971c67af1277 (patch) | |
tree | d0059cc76f07184a1c99b232599a7c646cf1661d /net-mail/courier-imap | |
parent | a new ebuild (diff) | |
download | gentoo-2-3268a51375218d40a19c39c4e5d3971c67af1277.tar.gz gentoo-2-3268a51375218d40a19c39c4e5d3971c67af1277.tar.bz2 gentoo-2-3268a51375218d40a19c39c4e5d3971c67af1277.zip |
a new ebuild (support files)
Diffstat (limited to 'net-mail/courier-imap')
-rwxr-xr-x | net-mail/courier-imap/files/courier-imap | 52 | ||||
-rw-r--r-- | net-mail/courier-imap/files/digest-courier-imap-1.2.3 | 1 |
2 files changed, 53 insertions, 0 deletions
diff --git a/net-mail/courier-imap/files/courier-imap b/net-mail/courier-imap/files/courier-imap new file mode 100755 index 000000000000..a55aa8b46852 --- /dev/null +++ b/net-mail/courier-imap/files/courier-imap @@ -0,0 +1,52 @@ +#! /bin/sh +#RCUPDATE:3 4:72:Required for rc-update +. /etc/rc.d/config/functions + +SERVICE=courier-imapd +opts="start stop" + +prefix=/usr +exec_prefix=${prefix} +bindir=${exec_prefix}/bin +libexecdir=${exec_prefix}/libexec + +. /etc/courier-imap/imapd.config +. /etc/courier-imap/imapd-ssl.config + +start() { + LIBAUTHMODULES="" + for f in `echo $AUTHMODULES` + do + LIBAUTHMODULES="$LIBAUTHMODULES ${exec_prefix}/libexec/authlib/$f" + done + + if test -x ${libexecdir}/authlib/authdaemond + then + /usr/bin/env - ${libexecdir}/authlib/authdaemond start + fi + + ulimit -d $IMAP_ULIMITD + /usr/bin/env - /bin/sh -c " . /etc/courier-imap/imapd.config ; \ + . /etc/courier-imap/imapd-ssl.config ; \ + IMAP_STARTTLS=$IMAPDSTARTTLS ; export IMAP_STARTTLS ; \ + `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd.config | \ + sed 's/=.*//;s/^/export /;s/$/;/'` + `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd-ssl.config | \ + sed 's/=.*//;s/^/export /;s/$/;/'` + ${exec_prefix}/libexec/couriertcpd -address=$ADDRESS \ + -stderrlogger=${exec_prefix}/libexec/logger \ + -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \ + -pid=$PIDFILE $TCPDOPTS \ + $PORT ${exec_prefix}/sbin/imaplogin $LIBAUTHMODULES \ + ${exec_prefix}/bin/imapd .maildir" +} + +stop() { + ${exec_prefix}/libexec/couriertcpd -pid=$PIDFILE -stop + if test -x ${libexecdir}/authlib/authdaemond + then + ${libexecdir}/authlib/authdaemond stop + fi +} + +doservice ${@} diff --git a/net-mail/courier-imap/files/digest-courier-imap-1.2.3 b/net-mail/courier-imap/files/digest-courier-imap-1.2.3 new file mode 100644 index 000000000000..99998eb29fec --- /dev/null +++ b/net-mail/courier-imap/files/digest-courier-imap-1.2.3 @@ -0,0 +1 @@ +MD5 0761019624253e34ec86509d8ebbf4ae courier-imap-1.2.3.tar.gz |