summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd/INSTALL
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2001-11-01 00:57:41 +0000
committerzuntum <zuntum@pkgsrc.org>2001-11-01 00:57:41 +0000
commitc72c1cf5f95cbe537b005028f1743cddb16ef203 (patch)
tree93b6296152ccfbaa88b43de043b2d69ce6e63fc5 /mail/cyrus-imapd/INSTALL
parent37637e483f1bf6574e9306aebbd013bb63d888d6 (diff)
downloadpkgsrc-c72c1cf5f95cbe537b005028f1743cddb16ef203.tar.gz
Move pkg/ files into package's toplevel directory
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