summaryrefslogtreecommitdiff
path: root/mail/nmh/INSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'mail/nmh/INSTALL')
-rw-r--r--mail/nmh/INSTALL45
1 files changed, 45 insertions, 0 deletions
diff --git a/mail/nmh/INSTALL b/mail/nmh/INSTALL
new file mode 100644
index 00000000000..b835b39f64f
--- /dev/null
+++ b/mail/nmh/INSTALL
@@ -0,0 +1,45 @@
+#! /bin/sh
+#
+# $NetBSD: INSTALL,v 1.1 2001/11/01 01:00:41 zuntum Exp $
+#
+
+PKGNAME=$1
+STAGE=$2
+
+case ${STAGE} in
+PRE-INSTALL)
+ ;;
+POST-INSTALL)
+ CONFDIR=${PKG_PREFIX}/etc/nmh
+
+ echo "Installing configuration files:"
+ for file in \
+ mhn.defaults \
+ mts.conf
+ do
+ if [ -f ${CONFDIR}/${file} ]
+ then
+ echo " ${CONFDIR}/${file} already exists"
+ else
+ echo " ${CONFDIR}/${file}"
+ cp ${CONFDIR}/${file}.dist ${CONFDIR}/${file}
+ chmod 644 ${CONFDIR}/${file}
+ fi
+ done
+ cat << EOF
+=============================================================
+
+Some files you might need to customize include the following:
+
+ ${PKG_PREFIX}/etc/nmh/mhn.defaults
+ ${PKG_PREFIX}/etc/nmh/mts.conf
+
+=============================================================
+EOF
+ ;;
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0