diff options
Diffstat (limited to 'mail/cyrus-imapd2/pkg-install')
-rw-r--r-- | mail/cyrus-imapd2/pkg-install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mail/cyrus-imapd2/pkg-install b/mail/cyrus-imapd2/pkg-install index 93e91ebc4dae..8f935faef8de 100644 --- a/mail/cyrus-imapd2/pkg-install +++ b/mail/cyrus-imapd2/pkg-install @@ -2,6 +2,10 @@ #set -vx +PKG_BATCH=${BATCH:=NO} + +PKG_PREFIX=${PKG_PREFIX:=/usr/local} + # # create 'cyrus' user and group before installing # @@ -76,6 +80,13 @@ checkfile() { esac } +# Install timseived's Cyrus.conf file + +cyrus_conf() { + if [ ! -f ${PKG_PREFIX}/lib/sasl/Cyrus.conf ]; then + echo "pwcheck_method: pwcheck" > ${PKG_PREFIX}/lib/sasl/Cyrus.conf + fi +} case $2 in PRE-INSTALL) @@ -84,6 +95,7 @@ case $2 in POST-INSTALL) cd ${PKG_PREFIX} + cyrus_conf checkfile ${PKG_PREFIX}/etc/imapd.conf if grep '^imap4' /etc/inetd.conf; then echo "** Please check that your /etc/inetd.conf entry for \`imap4'" @@ -91,6 +103,24 @@ case $2 in else echo "** Please add an entry for the imap4 protocol to /etc/inetd.conf." fi + echo + if grep '^sieve' /etc/inetd.conf; then + echo "** Please check that your /etc/inetd.conf entry for \`sieve'" + echo " is suitable for the Cyrus timsieved daemon" + else + echo "** Please add an entry for timseived to /etc/inetd.conf." + echo " If you wish to have user's upload their sieve filter" + echo " scripts to the server." + fi + echo echo " An example can be found in ${PKG_PREFIX}/etc/inetd.conf.cyrus." + if grep 'sieve' /etc/services; then + echo + else + echo + echo "** Please add an entry for the sieve protocol (2000/tcp)" + echo " to /etc/services" + echo + fi ;; esac |