diff options
Diffstat (limited to 'net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd.rc')
-rw-r--r-- | net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd.rc | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd.rc b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd.rc index ce1b89fb23a0..b40614ff8b8c 100644 --- a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd.rc +++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd.rc @@ -1,5 +1,5 @@ #!/bin/bash -# $Id: courier-imap-4.0.6-r1-gentoo-imapd.rc,v 1.1 2007/02/03 01:20:24 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-imapd.rc,v 1.2 2007/04/07 01:08:00 chtekk Exp $ # # Copyright 1998 - 2000 Double Precision, Inc. # See COPYING for distribution information. @@ -12,27 +12,22 @@ libexecdir=/usr/GENTOO_LIBDIR/courier-imap source /etc/courier-imap/imapd-ssl source /etc/courier-imap/imapd -# The new courier-authlib doesn't use these settings. -#LIBAUTHMODULES="" -#for f in `echo $AUTHMODULES` -#do -# LIBAUTHMODULES="$LIBAUTHMODULES /usr/GENTOO_LIBDIR/courier-imap/authlib/$f" -#done +ulimit -d ${IMAP_ULIMITD} -ulimit -d $IMAP_ULIMITD -IMAP_STARTTLS="$IMAPDSTARTTLS" +IMAP_STARTTLS="${IMAPDSTARTTLS}" export IMAPDSTARTTLS IMAP_STARTTLS -TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL +TLS_PROTOCOL="${TLS_STARTTLS_PROTOCOL}" + eval `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd | \ sed 's/=.*//;s/^/export /;s/$/;/'` eval `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd-ssl | \ sed 's/=.*//;s/^/export /;s/$/;/'` -eval $PRERUN \ -/usr/GENTOO_LIBDIR/courier-imap/couriertcpd -address=$ADDRESS \ - -stderrlogger=/usr/GENTOO_LIBDIR/courier-imap/courierlogger \ +eval ${PRERUN} ${libexecdir}/couriertcpd \ + -address=${ADDRESS} \ + -stderrlogger=${libexecdir}/courierlogger \ -stderrloggername=imapd \ - -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \ - -pid=$PIDFILE $TCPDOPTS \ - $PORT ${exec_prefix}/sbin/imaplogin \ - /usr/GENTOO_LIBDIR/courier-imap/courier-imapd.indirect ${MAILDIR} + -maxprocs=${MAXDAEMONS} -maxperip=${MAXPERIP} \ + -pid=${PIDFILE} ${TCPDOPTS} ${PORT} \ + ${bindir}/imaplogin \ + ${libexecdir}/courier-imapd.indirect "${MAILDIR}" |