diff options
Diffstat (limited to 'mail/nmh/pkg-install')
-rw-r--r-- | mail/nmh/pkg-install | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/mail/nmh/pkg-install b/mail/nmh/pkg-install index ed90d33ff42..bdfd8232f75 100644 --- a/mail/nmh/pkg-install +++ b/mail/nmh/pkg-install @@ -1,7 +1,22 @@ #!/bin/sh case "$2" in - ""|POST-INSTALL) cat <<EOF + ""|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: |