freebsd-ports/mail/nmh/pkg-install
Bruce A. Mah b4dd49f289 Make the nmh package install nmh configuration files correctly.
Update MAINTAINER address.

(Bump PORTREVISION while I'm here.)

PR:		39205
Submitted by:	Scott Blachowicz <scott@sabami.seaslug.org>
Reviewed by:	"Julian H. Stacey" <jhs@jhs.muc.de>
2002-10-26 00:22:32 +00:00

35 lines
999 B
Bash

#!/bin/sh
case "$2" in
""|POST-INSTALL)
echo "Changing ${PKG_PREFIX}/bin/inc to group 'mail'"
chgrp mail ${PKG_PREFIX}/bin/inc
echo "Enabling setgid for ${PKG_PREFIX}/bin/inc"
chmod g+s ${PKG_PREFIX}/bin/inc
for file in ${PKG_PREFIX}/etc/nmh/*.default ; do
b=`basename $file .default`
if [ \! -f ${PKG_PREFIX}/etc/nmh/$b ] ; then
cp $file ${PKG_PREFIX}/etc/nmh/$b
chmod u+w ${PKG_PREFIX}/etc/nmh/$b
fi
done
cat <<EOF
=============================================================
Some files you might need to customize include the following:
${PKG_PREFIX}/etc/nmh/mhn.defaults - For example, you may
want to adjust the programs used to handle various MIME
content types.
${PKG_PREFIX}/etc/nmh/mts.conf - For example, you may need
to adjust the "servers" setting if you don't have a
locally installed sendmail (or other MTA).
=============================================================
EOF
;;
esac