1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/mail/nmh/pkg-install
Ade Lovett c799407233 Update to 1.2
Correct a plist-related packaging problem.

PR:		93549
Submitted by:	maintainer
2006-02-21 09:11:10 +00:00

36 lines
993 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/*-dist ; do
b=`basename $file -dist`
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