From nobody@FreeBSD.org  Fri May 30 11:08:34 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id CEF256B4
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 May 2014 11:08:34 +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 BC98F299C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 May 2014 11:08:34 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s4UB8Ysh062088
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 May 2014 11:08:34 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s4UB8YNc062087;
	Fri, 30 May 2014 11:08:34 GMT
	(envelope-from nobody)
Message-Id: <201405301108.s4UB8YNc062087@cgiserv.freebsd.org>
Date: Fri, 30 May 2014 11:08:34 GMT
From: Kozlov Sergey <kozlov.sergey.404@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] www/redmine support plugin staging
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         190405
>Category:       ports
>Synopsis:       [patch] www/redmine support plugin staging
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ruby
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 30 11:10:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Fri May 30 11:10:05 UTC 2014
>Originator:     Kozlov Sergey
>Release:        10.0-RELEASE-p3
>Organization:
ARC
>Environment:
FreeBSD nowhere 10.0-RELEASE-p3 FreeBSD 10.0-RELEASE-p3 #0: Tue May 13 18:31:10 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Redmine's bsd.redmine.mk doesn't support staging, so add staging support to it and remove NO_STAGE from my port www/redmine-sidebar_hide
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: redmine/bsd.redmine.mk
===================================================================
--- redmine/bsd.redmine.mk	(revision 355816)
+++ redmine/bsd.redmine.mk	(working copy)
@@ -74,7 +74,12 @@
 .endif
 
 do-install:
+.if defined(NO_STAGE)
 	${MKDIR} "${WWWDIR}/plugins/${REDMINE_PLUGIN_NAME}"
 	${TAR} -C "${WRKSRC}" -cf - --exclude '*.orig' . | ${TAR} -C "${WWWDIR}/plugins/${REDMINE_PLUGIN_NAME}" -xf -
+.else
+	${MKDIR} "${STAGEDIR}${WWWDIR}/plugins/${REDMINE_PLUGIN_NAME}"
+	${TAR} -C "${WRKSRC}" -cf - --exclude '*.orig' . | ${TAR} -C "${STAGEDIR}${WWWDIR}/plugins/${REDMINE_PLUGIN_NAME}" -xf -
+.endif
 
 .include <bsd.port.mk>
Index: redmine-sidebar_hide/Makefile
===================================================================
--- redmine-sidebar_hide/Makefile	(revision 355816)
+++ redmine-sidebar_hide/Makefile	(working copy)
@@ -16,6 +16,4 @@
 
 REDMINE_PLUGIN_NAME=	sidebar_hide
 
-NO_STAGE=	yes
-
 .include "${.CURDIR}/../../www/redmine/bsd.redmine.mk"


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ruby 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri May 30 11:10:04 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=190405 
>Unformatted:
