ports/185905: [PATCH] security/logcheck: Use "USES=shebangfix" to fix perl path
Yasuhiro KIMURA
yasu at utahime.org
Mon Jan 20 11:10:02 UTC 2014
>Number: 185905
>Category: ports
>Synopsis: [PATCH] security/logcheck: Use "USES=shebangfix" to fix perl path
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 20 11:10:02 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:
Use "USES=shebangfix" to fix perl path of logtail and logtail2.
>How-To-Repeat:
>Fix:
--- patch-logcheck begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 340381)
+++ Makefile (working copy)
@@ -33,7 +33,7 @@
.endif
# Enable Perl dependency for logtail script
-USES= perl5
+USES= perl5 shebangfix
WRKSRC= ${WRKDIR}/${DISTNAME:S!_!-!}
BINMODE= 755
@@ -45,6 +45,7 @@
PW=${PW} CRON=${PORT_OPTIONS:MCRON}
SUB_FILES= pkg-install pkg-deinstall pkg-message
PLIST_SUB+= DBDIR=${DBDIR} RUNDIR=${RUNDIR}
+SHEBANG_FILES= src/logtail src/logtail2
CONFIG_DIRS= cracking.d ignore.d.paranoid ignore.d.server \
ignore.d.workstation violations.d violations.ignore.d
DOCS= AUTHORS CHANGES CREDITS LICENSE TODO docs/README*
@@ -72,8 +73,6 @@
do-build:
@${REINPLACE_CMD} -e 's!/var/log/syslog!/var/log/messages!' \
${WRKSRC}/etc/logcheck.logfiles
- @${REINPLACE_CMD} -e "s|#!/usr/bin/perl|#!${PERL}|" \
- ${WRKSRC}/src/logtail
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/logcheck ${PREFIX}/sbin
--- patch-logcheck ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list