Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2002 22:51:58 -0600 (CST)
From:      "Scot W. Hetzel" <hetzels@westbend.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/44844: www/frontpage: Update to REINPLACE_CMD/USE_REINPLACE
Message-ID:  <200211030451.gA34pwan015836@WBIw009.westbend.net>

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

>Number:         44844
>Category:       ports
>Synopsis:       www/frontpage: Update to REINPLACE_CMD/USE_REINPLACE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 02 21:00:07 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Scot W. Hetzel
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
West Bend Internet
>Environment:
System: FreeBSD WBIw009.westbend.net 4.7-STABLE FreeBSD 4.7-STABLE #2: Sat Oct 26 18:29:44 CDT 2002     root@WBIw009.westbend.net:/usr/obj/usr/src/src4/sys/GENERIC-SMP  i386

>Description:
	To Quote Kris Kennaway:
	    The latest bento run on 5.0 is the first to build without perl
	    present: previously, two of the portbuild scripts were written in
	    perl, so I had to always pkg_add it into the chroot environment.  Now
	    that these scripts have been rewritten in C and I have stopped doing
	    the pkg_add, ...

	The frontpage port was using ${PERL} to do patching-in-place.

>How-To-Repeat:
	
>Fix:
	The attached patch changes the port to use REINPLACE_CMD/USE_REINPLACE.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/frontpage/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	4 Aug 2002 10:15:26 -0000	1.4
+++ Makefile	3 Nov 2002 04:45:47 -0000
@@ -17,6 +17,8 @@
 
 .include <bsd.port.pre.mk>
 
+USE_REINPLACE=	yes
+
 ONLY_FOR_ARCHS=	i386 alpha
 
 FP_VER=		5.0
@@ -107,14 +109,13 @@
 
 post-patch:
 .if !defined(PATCH_DEBUG)
-	@${PERL} -pi -e 's:PREFIX:${PREFIX}:g ; \
-			 s:MOD_FPDOCDIR:${MOD_FPDOCDIR}:g' ${WRKDIR}/${FPINSTALL}
+	@${REINPLACE_CMD} -e 's:PREFIX:${PREFIX}:g' ${WRKDIR}/${FPINSTALL}
 .endif
 
 do-install:
 	@${ECHO_MSG} "===> Untaring FrontPage Extensions to ${PREFIX}"
 	@(cd ${PREFIX} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${FRONTPAGE} ${EXTRACT_AFTER_ARGS})
-	@${PERL} -pi -e 's:IMAGESDIR:../images/:g' ${PREFIX}/${FPCSS}
+	@${REINPLACE_CMD} -e 's:IMAGESDIR:../images/:g' ${PREFIX}/${FPCSS}
 	@${RM} ${PREFIX}/${FPHTTPD}/httpd
 	@${MKDIR} ${MOD_FPDOCDIR}
 	@${CP} ${PREFIX}/${README} ${MOD_FPDOCDIR}/index.html
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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