ports/186064: [PATCH] security/bruteforceblocker: add 'USES=shebangfix' to adjust perl path
Yasuhiro KIMURA
yasu at utahime.org
Fri Jan 24 02:40:01 UTC 2014
>Number: 186064
>Category: ports
>Synopsis: [PATCH] security/bruteforceblocker: add 'USES=shebangfix' to adjust perl path
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 24 02:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list