From nobody@FreeBSD.org  Mon May 26 18:20:49 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 6D8C844E
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 May 2014 18:20:49 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 419742DC7
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 May 2014 18:20:49 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s4QIKni2010729
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 May 2014 18:20:49 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s4QIKnCh010724;
	Mon, 26 May 2014 18:20:49 GMT
	(envelope-from nobody)
Message-Id: <201405261820.s4QIKnCh010724@cgiserv.freebsd.org>
Date: Mon, 26 May 2014 18:20:49 GMT
From: Joseph Benden <joe@thrallingpenguin.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] Add staging support to www/mhonarc
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: kerndtr@kerndt.com

>Number:         190277
>Category:       ports
>Synopsis:       [patch] Add staging support to www/mhonarc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    swills
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 26 18:30:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Mon May 26 18:40:01 UTC 2014
>Originator:     Joseph Benden
>Release:        FreeBSD 11
>Organization:
>Environment:
FreeBSD lucy 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r264887: Thu Apr 24 12:43:46 MST 2014     root@lucy:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Adds staging support to www/mhonarc.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/www/mhonarc/Makefile b/www/mhonarc/Makefile
index 39740b2..5759c283 100644
--- a/www/mhonarc/Makefile
+++ b/www/mhonarc/Makefile
@@ -12,26 +12,32 @@ DISTNAME=	MHonArc-${PORTVERSION}
 MAINTAINER=	kerndtr@kerndt.com
 COMMENT=	WWW front end for mail archives
 
-USE_BZIP2=	Yes
-USES=		perl5
+USES=		tar:bzip2
+USES+=		perl5
 NO_BUILD=	Yes
 
 MAN1=	mhonarc.1 mha-dbedit.1 mha-dbrecover.1 mha-decode.1
 
-INSTALL_ARGS=	-binpath ${PREFIX}/bin \
-		-libpath ${SITE_PERL} \
-		-manpath ${PREFIX}/man \
+INSTALL_ARGS=	-prefix ${STAGEDIR} -binpath ${STAGEDIR}${PREFIX}/bin \
+		-libpath ${STAGEDIR}${SITE_PERL} \
+		-manpath ${STAGEDIR}${PREFIX}/man \
 		-batch
 
 .if !defined(NOPORTDOCS)
-DOCSDIR=	${PREFIX}/share/doc/MHonArc
-INSTALL_ARGS+=	-docpath ${DOCSDIR}
+THEDOCSDIR=	${STAGEDIR}${PREFIX}/share/doc/MHonArc
+DOCSDIR=${PREFIX}/share/doc/MHonArc
+INSTALL_ARGS+=	-docpath ${THEDOCSDIR}
 .else
 INSTALL_ARGS+=	-nodoc
 .endif
 
-NO_STAGE=	yes
 do-install:
 	cd ${WRKSRC} && ${PERL5} install.me ${INSTALL_ARGS}
 
+post-install:
+.for file in mha-dbedit mha-dbrecover mha-decode mhonarc
+	${REINPLACE_CMD} -E -e 's,${STAGEDIR},,g' ${STAGEDIR}/${PREFIX}/bin/${file}
+	${RM} ${STAGEDIR}/${PREFIX}/bin/${file}.bak
+.endfor
+
 .include <bsd.port.mk>
diff --git a/www/mhonarc/pkg-plist b/www/mhonarc/pkg-plist
index 5a0f305..26587ca 100644
--- a/www/mhonarc/pkg-plist
+++ b/www/mhonarc/pkg-plist
@@ -2,6 +2,10 @@ bin/mha-dbedit
 bin/mha-dbrecover
 bin/mha-decode
 bin/mhonarc
+man/man1/mha-dbedit.1.gz
+man/man1/mha-dbrecover.1.gz
+man/man1/mha-decode.1.gz
+man/man1/mhonarc.1.gz
 %%SITE_PERL%%/MHonArc/Char.pm
 %%SITE_PERL%%/MHonArc/Char/JP.pm
 %%SITE_PERL%%/MHonArc/Char/KR.pm


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->swills 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon May 26 18:30:03 UTC 2014 
Responsible-Changed-Why:  
swills@ wants this submitter's PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=190277 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon May 26 18:30:05 UTC 2014 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=190277 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: kerndtr@kerndt.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/190277: [patch] Add staging support to www/mhonarc
Date: Mon, 26 May 2014 18:30:04 UT

 Maintainer of www/mhonarc,
 
 Please note that PR ports/190277 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/190277
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
>Unformatted:
