From yasu@home.utahime.org  Fri Jan 24 02:33:42 2014
Return-Path: <yasu@home.utahime.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 5E98A864
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 Jan 2014 02:33:42 +0000 (UTC)
Received: from gate.utahime.jp (ipq210.utahime.jp [183.180.29.210])
	by mx1.freebsd.org (Postfix) with ESMTP id 2904117B9
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 Jan 2014 02:33:41 +0000 (UTC)
Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1])
	by gate.utahime.jp (Postfix) with ESMTP id 80482139B8;
	Fri, 24 Jan 2014 11:33:39 +0900 (JST)
Received: from eastasia.home.utahime.org (localhost [127.0.0.1])
	by localhost-backdoor.home.utahime.org (Postfix) with ESMTP id 49FBC7591D;
	Fri, 24 Jan 2014 11:33:39 +0900 (JST)
Received: from rolling-vm-freebsd2.home.utahime.org (rolling-vm-freebsd2.home.utahime.org [192.168.174.54])
	by eastasia.home.utahime.org (Postfix) with ESMTP id 115957590A;
	Fri, 24 Jan 2014 11:33:39 +0900 (JST)
Received: by rolling-vm-freebsd2.home.utahime.org (Postfix, from userid 1000)
	id C97C1C3FFF; Fri, 24 Jan 2014 11:33:38 +0900 (JST)
Message-Id: <20140124023338.C97C1C3FFF@rolling-vm-freebsd2.home.utahime.org>
Date: Fri, 24 Jan 2014 11:33:38 +0900 (JST)
From: Yasuhiro KIMURA <yasu@utahime.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] security/bruteforceblocker: add 'USES=shebangfix' to adjust perl path
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         186064
>Category:       ports
>Synopsis:       [PATCH] security/bruteforceblocker: add 'USES=shebangfix' to adjust perl path
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    danger
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 24 02:40:00 UTC 2014
>Closed-Date:    Fri May 02 12:10:38 UTC 2014
>Last-Modified:  Fri May  2 12:20:00 UTC 2014
>Originator:     Yasuhiro KIMURA
>Release:        FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD xxxx 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260673: Mon Jan 20 13:37:55 JST 2014 xxxx amd64


	
>Description:
	
	- Add 'USES=shebangfix' to adjust perl path of script.
	- OptionsNGfy.
	- Support staging.
	- Bump PORTREVISON because content of script is changed.

>How-To-Repeat:
	
>Fix:

	

--- patch-bruteforceblocker begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 340866)
+++ Makefile	(working copy)
@@ -3,6 +3,7 @@
 
 PORTNAME=	bruteforceblocker
 PORTVERSION=	1.2.3
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	http://danger.rulez.sk/projects/bruteforceblocker/ \
 		${MASTER_SITE_LOCAL}
@@ -17,30 +18,22 @@
 		p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS
 
 NO_BUILD=	yes
-USES=		perl5
+USES=		perl5 shebangfix
 USE_PERL5=	run
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 PKGMESSAGE=	${WRKDIR}/pkg-message
 SUB_FILES=	pkg-message
+SHEBANG_FILES=	${PORTNAME}.pl
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/sbin/${PORTNAME}
-	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf-dist
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf-dist
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for FILE in INSTALL CHANGELOG CREDITS
-	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
-post-install:
-	@if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
-		${CP} -p ${PREFIX}/etc/${PORTNAME}.conf-dist ${PREFIX}/etc/${PORTNAME}.conf ; \
-	fi
-.if !defined(BATCH)
-	@${CAT} ${PKGMESSAGE}
-.endif
-
 .include <bsd.port.mk>
--- patch-bruteforceblocker ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->danger 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Jan 24 02:40:09 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: Yasuhiro KIMURA <yasu@utahime.org>
To: danger@FreeBSD.org
Cc: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Subject: Re: ports/186064: [PATCH] security/bruteforceblocker: add
 'USES=shebangfix' to adjust perl path
Date: Sun, 27 Apr 2014 20:02:12 +0900 (JST)

 Hello,
 
 Would you please commit this PR?
 
 Best Regards.
 
 ---
 Yasuhiro KIMURA
State-Changed-From-To: open->closed 
State-Changed-By: danger 
State-Changed-When: Fri May 2 12:10:27 UTC 2014 
State-Changed-Why:  
- committed, thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/186064: commit references a PR
Date: Fri,  2 May 2014 12:10:23 +0000 (UTC)

 Author: danger (doc committer)
 Date: Fri May  2 12:10:20 2014
 New Revision: 352808
 URL: http://svnweb.freebsd.org/changeset/ports/352808
 QAT: https://qat.redports.org/buildarchive/r352808/
 
 Log:
   - add shebangfix support
   
   PR:		186064
   Submitted by:	Yasuhiro KIMURA <yasu@utahime.org>
   Approved by:	mat
 
 Modified:
   head/security/bruteforceblocker/Makefile
 
 Modified: head/security/bruteforceblocker/Makefile
 ==============================================================================
 --- head/security/bruteforceblocker/Makefile	Fri May  2 11:51:17 2014	(r352807)
 +++ head/security/bruteforceblocker/Makefile	Fri May  2 12:10:20 2014	(r352808)
 @@ -18,13 +18,14 @@ RUN_DEPENDS=	p5-Unix-Syslog>=0:${PORTSDI
  		p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS
  
  NO_BUILD=	yes
 -USES=		perl5
 +USES=		perl5 shebangfix
  USE_PERL5=	run
  
  OPTIONS_DEFINE=	DOCS
  
  WRKSRC=		${WRKDIR}/${PORTNAME}
  SUB_FILES=	pkg-message
 +SHEBANG_FILES=	${PORTNAME}.pl
  
  do-install:
  	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
 _______________________________________________
 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:
