diff options
author | bmah <bmah@FreeBSD.org> | 2002-10-26 08:22:32 +0800 |
---|---|---|
committer | bmah <bmah@FreeBSD.org> | 2002-10-26 08:22:32 +0800 |
commit | 7e37c2d009cd717e81f38f833dfaa42d821fa89c (patch) | |
tree | 7524aa45e4d96a680acb7dbfedc938fc433e2756 /mail/nmh | |
parent | a0af358c422d3591d276cf0d30bc09ef0ddec698 (diff) | |
download | freebsd-ports-gnome-7e37c2d009cd717e81f38f833dfaa42d821fa89c.tar.gz freebsd-ports-gnome-7e37c2d009cd717e81f38f833dfaa42d821fa89c.tar.zst freebsd-ports-gnome-7e37c2d009cd717e81f38f833dfaa42d821fa89c.zip |
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>
Diffstat (limited to 'mail/nmh')
-rw-r--r-- | mail/nmh/Makefile | 14 | ||||
-rw-r--r-- | mail/nmh/pkg-install | 17 |
2 files changed, 19 insertions, 12 deletions
diff --git a/mail/nmh/Makefile b/mail/nmh/Makefile index 312f28220dd2..e8d0e28e2374 100644 --- a/mail/nmh/Makefile +++ b/mail/nmh/Makefile @@ -1,6 +1,6 @@ # New ports collection makefile for: nmh # Date created: 07 Feb 1999 -# Whom: Scott Blachowicz <Scott.Blachowicz@seaslug.org> +# Whom: Scott Blachowicz <scott+ports@sabami.seaslug.org> # # $FreeBSD$ # @@ -53,13 +53,13 @@ PORTNAME= nmh PORTVERSION= 1.0.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= ftp://ftp.mhost.com/pub/nmh/ \ ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= jkoshy -MAINTAINER= Scott.Blachowicz@seaslug.org +MAINTAINER= scott+ports@sabami.seaslug.org USE_AUTOCONF_VER=213 CONFIGURE_ARGS= --libdir=${PREFIX}/libexec/nmh \ @@ -114,13 +114,5 @@ post-patch: post-install: @PKG_PREFIX='${PREFIX}' ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - chgrp mail ${PREFIX}/bin/inc - ${CHMOD} g+s ${PREFIX}/bin/inc - for file in ${PREFIX}/etc/nmh/*.default ; do \ - if [ \! -f $${file%%.default} ] ; then \ - cp $$file $${file%%.default} ; \ - chmod u+w $${file%%.default} ; \ - fi \ - done .include <bsd.port.mk> 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: |