diff options
author | Bruce A. Mah <bmah@FreeBSD.org> | 2002-10-26 00:22:32 +0000 |
---|---|---|
committer | Bruce A. Mah <bmah@FreeBSD.org> | 2002-10-26 00:22:32 +0000 |
commit | b4dd49f28977618f4104ab4eabe8cac13171b050 (patch) | |
tree | 778fdaa53b0c53f31e46e6868c35e565edfca1d7 /mail/nmh | |
parent | 516fc429588fee19e5f277239aa7ce4a5973aea8 (diff) | |
download | ports-b4dd49f28977618f4104ab4eabe8cac13171b050.tar.gz ports-b4dd49f28977618f4104ab4eabe8cac13171b050.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>
Notes
Notes:
svn path=/head/; revision=68838
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: |