diff options
author | zuntum <zuntum@pkgsrc.org> | 2001-11-01 00:57:41 +0000 |
---|---|---|
committer | zuntum <zuntum@pkgsrc.org> | 2001-11-01 00:57:41 +0000 |
commit | c72c1cf5f95cbe537b005028f1743cddb16ef203 (patch) | |
tree | 93b6296152ccfbaa88b43de043b2d69ce6e63fc5 /mail/mutt/INSTALL | |
parent | 37637e483f1bf6574e9306aebbd013bb63d888d6 (diff) | |
download | pkgsrc-c72c1cf5f95cbe537b005028f1743cddb16ef203.tar.gz |
Move pkg/ files into package's toplevel directory
Diffstat (limited to 'mail/mutt/INSTALL')
-rw-r--r-- | mail/mutt/INSTALL | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/mail/mutt/INSTALL b/mail/mutt/INSTALL new file mode 100644 index 00000000000..80abc193485 --- /dev/null +++ b/mail/mutt/INSTALL @@ -0,0 +1,57 @@ +#! /bin/sh +# +# $NetBSD: INSTALL,v 1.1 2001/11/01 01:00:37 zuntum Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CHMOD="@CHMOD@" +CP="@CP@" + +SAMPLECONFDIR=${PKG_PREFIX}/share/doc/mutt/samples +CONFDIR=${PKG_PREFIX}/etc +CONFFILES="Muttrc" +NONCONFFILES="mime.types" + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + echo "Installing configuration files:" + for file in ${CONFFILES} ${NONCONFFILES} + 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 +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 |