From nobody@FreeBSD.org  Tue May 20 14:16:47 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 0F06B24A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 May 2014 14:16:47 +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 F1C1E2A24
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 May 2014 14:16:46 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s4KEGkEx020324
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 May 2014 14:16:46 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s4KEGkCI020320;
	Tue, 20 May 2014 14:16:46 GMT
	(envelope-from nobody)
Message-Id: <201405201416.s4KEGkCI020320@cgiserv.freebsd.org>
Date: Tue, 20 May 2014 14:16:46 GMT
From: Joseph Benden <joe@thrallingpenguin.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] Add staging support to www/asql
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         190007
>Category:       ports
>Synopsis:       [patch] Add staging support to www/asql
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 20 14:20:00 UTC 2014
>Closed-Date:    Tue May 20 17:52:34 UTC 2014
>Last-Modified:  Tue May 20 18:00:00 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/asql.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/www/asql/Makefile b/www/asql/Makefile
index 79527ae..fb68ad2 100644
--- a/www/asql/Makefile
+++ b/www/asql/Makefile
@@ -16,7 +16,6 @@ RUN_DEPENDS=	p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite \
 
 NO_BUILD=	yes
 PLIST_FILES=	bin/asql
-USES=		perl5
-
-NO_STAGE=	yes
+USES=		perl5 shebangfix
+SHEBANG_FILES=	bin/asql
 .include <bsd.port.mk>
diff --git a/www/asql/files/patch-Makefile b/www/asql/files/patch-Makefile
index b92a130..495b1739 100644
--- a/www/asql/files/patch-Makefile
+++ b/www/asql/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig	2008-10-15 09:37:42.000000000 +0800
-+++ Makefile	2008-10-15 09:38:00.000000000 +0800
+--- Makefile.orig	2012-09-13 00:38:26.000000000 -0700
++++ Makefile	2014-05-20 07:09:07.000000000 -0700
 @@ -40,9 +40,8 @@
  	hg diff 2>/dev/null
  
@@ -7,8 +7,8 @@
 -	mkdir -p ${PREFIX}/usr/bin/
 -	cp bin/asql ${PREFIX}/usr/bin/asql
 -	chmod 755 ${PREFIX}/usr/bin/asql
-+	cp bin/asql ${PREFIX}/bin/asql
-+	chmod 755 ${PREFIX}/bin/asql
++	cp bin/asql ${DESTDIR}${PREFIX}/bin/asql
++	chmod 755 ${DESTDIR}${PREFIX}/bin/asql
  
  
  release: clean commands


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->cs 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue May 20 14:20:04 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=190007 
State-Changed-From-To: open->closed 
State-Changed-By: cs 
State-Changed-When: Tue May 20 17:52:00 UTC 2014 
State-Changed-Why:  
Committed. Thank you very much. Are you using this port a lot? Would you like to maintain it in the future? 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/190007: commit references a PR
Date: Tue, 20 May 2014 17:51:50 +0000 (UTC)

 Author: cs
 Date: Tue May 20 17:51:47 2014
 New Revision: 354661
 URL: http://svnweb.freebsd.org/changeset/ports/354661
 QAT: https://qat.redports.org/buildarchive/r354661/
 
 Log:
   Staging support
   
   PR:		ports/190007
   Submitted by:	Joseph Benden <joe@thrallingpenguin.com>
   Approved by:	cs (maintainer)
 
 Modified:
   head/www/asql/Makefile
   head/www/asql/files/patch-Makefile
 
 Modified: head/www/asql/Makefile
 ==============================================================================
 --- head/www/asql/Makefile	Tue May 20 17:42:39 2014	(r354660)
 +++ head/www/asql/Makefile	Tue May 20 17:51:47 2014	(r354661)
 @@ -16,7 +16,6 @@ RUN_DEPENDS=	p5-DBD-SQLite>=0:${PORTSDIR
  
  NO_BUILD=	yes
  PLIST_FILES=	bin/asql
 -USES=		perl5
 -
 -NO_STAGE=	yes
 +USES=		perl5 shebangfix
 +SHEBANG_FILES=	bin/asql
  .include <bsd.port.mk>
 
 Modified: head/www/asql/files/patch-Makefile
 ==============================================================================
 --- head/www/asql/files/patch-Makefile	Tue May 20 17:42:39 2014	(r354660)
 +++ head/www/asql/files/patch-Makefile	Tue May 20 17:51:47 2014	(r354661)
 @@ -1,5 +1,5 @@
 ---- Makefile.orig	2008-10-15 09:37:42.000000000 +0800
 -+++ Makefile	2008-10-15 09:38:00.000000000 +0800
 +--- Makefile.orig	2012-09-13 00:38:26.000000000 -0700
 ++++ Makefile	2014-05-20 07:09:07.000000000 -0700
  @@ -40,9 +40,8 @@
   	hg diff 2>/dev/null
   
 @@ -7,8 +7,8 @@
  -	mkdir -p ${PREFIX}/usr/bin/
  -	cp bin/asql ${PREFIX}/usr/bin/asql
  -	chmod 755 ${PREFIX}/usr/bin/asql
 -+	cp bin/asql ${PREFIX}/bin/asql
 -+	chmod 755 ${PREFIX}/bin/asql
 ++	cp bin/asql ${DESTDIR}${PREFIX}/bin/asql
 ++	chmod 755 ${DESTDIR}${PREFIX}/bin/asql
   
   
   release: clean commands
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
