ports/156098: [MAINTAINER] Fix port: devel/cvs2html respect perl path
Chris Rees
utisoft at gmail.com
Thu Mar 31 20:40:10 UTC 2011
>Number: 156098
>Category: ports
>Synopsis: [MAINTAINER] Fix port: devel/cvs2html respect perl path
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 31 20:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Chris Rees
>Release: FreeBSD 8.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD zeus.bayofrum.net 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Sun Feb 27 22:19:51 UTC 2011 root at zeus.bayofrum.net:/usr/obj/usr/src/sys/ZEUS i386
>Description:
cvs2html has a shebang to /usr/bin/perl. This is OK as long as the
symlink is there, but it's not necessarily always there. This patch
clears such ambiguity.
>How-To-Repeat:
>Fix:
- Correct path in shebang to location of perl interpreter
Submitted by: Chris Rees (utisoft_at_gmail.com) (maintainer)
--- cvs2html-perl-fix.diff begins here ---
Index: Makefile
===================================================================
RCS file: /exports/cvsroot-freebsd/ports/devel/cvs2html/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile 20 Jun 2010 01:33:17 -0000 1.20
+++ Makefile 31 Mar 2011 20:22:48 -0000
@@ -7,6 +7,7 @@
PORTNAME= cvs2html
PORTVERSION= 1.98
+PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= http://www.bayofrum.net/dist/${PORTNAME}/${PORTVERSION}/ \
http://cvs.sslug.dk/cvs2html/utils/
@@ -22,9 +23,15 @@
PLIST_FILES= bin/cvs2html
USE_PERL5= yes
NO_BUILD= yes
-NO_WRKSUBDIR= yes
+
+do-extract:
+ @${MKDIR} ${WRKDIR}
+ @${CP} ${DISTDIR}/${PORTNAME} ${WRKDIR}
+
+post-patch:
+ ${REINPLACE_CMD} -e '1s|\(#!\).*$$|\1${PERL}|' ${WRKDIR}/${PORTNAME}
do-install:
- ${INSTALL_SCRIPT} ${DISTDIR}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /exports/cvsroot-freebsd/ports/devel/cvs2html/distinfo,v
retrieving revision 1.17
diff -u -r1.17 distinfo
--- distinfo 20 Jun 2010 01:33:17 -0000 1.17
+++ distinfo 31 Mar 2011 20:22:48 -0000
@@ -1,3 +1,2 @@
-MD5 (cvs2html) = 8f8ddd3bb4d2ba0b55b9f67c3051fdaa
SHA256 (cvs2html) = a66cb741a364a6f2574c866cadd83fc30eacfd8a18178b730f9f9a6f9e0da675
SIZE (cvs2html) = 60868
--- cvs2html-perl-fix.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list