summaryrefslogtreecommitdiff
path: root/mail/nmh/pkg/INSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'mail/nmh/pkg/INSTALL')
-rw-r--r--mail/nmh/pkg/INSTALL35
1 files changed, 30 insertions, 5 deletions
diff --git a/mail/nmh/pkg/INSTALL b/mail/nmh/pkg/INSTALL
index 682cbe87b64..db12158b965 100644
--- a/mail/nmh/pkg/INSTALL
+++ b/mail/nmh/pkg/INSTALL
@@ -1,10 +1,32 @@
#! /bin/sh
#
-# $NetBSD: INSTALL,v 1.5 2000/03/02 05:11:45 kim Exp $
+# $NetBSD: INSTALL,v 1.6 2000/08/02 06:35:45 jlam Exp $
#
-case "$2" in
- ""|POST-INSTALL) cat <<EOF
+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:
@@ -14,7 +36,10 @@ Some files you might need to customize include the following:
=============================================================
EOF
- ;;
+ ;;
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
esac
-
exit 0