Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 2014 20:04:14 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/185905: [PATCH] security/logcheck: Use "USES=shebangfix" to fix perl path
Message-ID:  <20140120110414.2859EC3FD0@rolling-vm-freebsd2.home.utahime.org>
Resent-Message-ID: <201401201110.s0KBA2pu090831@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140120110414.2859EC3FD0>