summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd/INSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'mail/cyrus-imapd/INSTALL')
-rw-r--r--mail/cyrus-imapd/INSTALL61
1 files changed, 61 insertions, 0 deletions
diff --git a/mail/cyrus-imapd/INSTALL b/mail/cyrus-imapd/INSTALL
new file mode 100644
index 00000000000..db776997b2d
--- /dev/null
+++ b/mail/cyrus-imapd/INSTALL
@@ -0,0 +1,61 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1 2001/11/01 00:59:46 zuntum Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+CAT="@CAT@"
+CHMOD="@CHMOD@"
+CP="@CP@"
+
+SAMPLECONFDIR=${PKG_PREFIX}/share/examples/cyrus-imapd
+CONFDIR=/etc
+CONFFILES="imapd.conf"
+
+case ${STAGE} in
+PRE-INSTALL)
+ ;;
+
+POST-INSTALL)
+ echo "Installing configuration files:"
+ for file in ${CONFFILES}
+ do
+ FILE=${CONFDIR}/${file}
+ SAMPLEFILE=${SAMPLECONFDIR}/${file}
+ if [ -f ${FILE} ]
+ then
+ echo " ${FILE} already exists"
+ else
+ echo " ${FILE}"
+ ${CP} ${SAMPLEFILE} ${FILE}
+ ${CHMOD} 644 ${FILE}
+ fi
+ done
+ ${CAT} << EOF
+===========================================================================
+Some files you might need to customize include the following:
+
+EOF
+ for file in ${CONFFILES}
+ do
+ FILE=${CONFDIR}/${file}
+ echo " ${FILE}"
+ done
+ ${CAT} << EOF
+
+Please also refer to:
+
+ ${PKG_PREFIX}/share/doc/html/cyrus-imapd/install.html
+
+to set up the necessary directories before starting the Cyrus IMAP server.
+===========================================================================
+EOF
+ ;;
+
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0