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 | |
parent | a0af358c422d3591d276cf0d30bc09ef0ddec698 (diff) | |
download | freebsd-ports-graphics-7e37c2d009cd717e81f38f833dfaa42d821fa89c.tar.gz freebsd-ports-graphics-7e37c2d009cd717e81f38f833dfaa42d821fa89c.tar.zst freebsd-ports-graphics-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>
-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 312f28220dd..e8d0e28e237 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 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: |