aboutsummaryrefslogtreecommitdiff
path: root/mail/nmh/pkg-install
diff options
context:
space:
mode:
authorBruce A. Mah <bmah@FreeBSD.org>2002-10-26 00:22:32 +0000
committerBruce A. Mah <bmah@FreeBSD.org>2002-10-26 00:22:32 +0000
commitb4dd49f28977618f4104ab4eabe8cac13171b050 (patch)
tree778fdaa53b0c53f31e46e6868c35e565edfca1d7 /mail/nmh/pkg-install
parent516fc429588fee19e5f277239aa7ce4a5973aea8 (diff)
downloadports-b4dd49f28977618f4104ab4eabe8cac13171b050.tar.gz
ports-b4dd49f28977618f4104ab4eabe8cac13171b050.zip
Notes
Diffstat (limited to 'mail/nmh/pkg-install')
-rw-r--r--mail/nmh/pkg-install17
1 files changed, 16 insertions, 1 deletions
diff --git a/mail/nmh/pkg-install b/mail/nmh/pkg-install
index ed90d33ff426..bdfd8232f752 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: