Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2002 14:43:52 +1000 (EST)
From:      Edwin Groothuis <edwin@mavetju.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/40752: [maintainer-update] astro/linux-setiathome-i686 - sed/perl -> reinplace
Message-ID:  <20020719044352.CEFE86A711E@k7.mavetju>

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

>Number:         40752
>Category:       ports
>Synopsis:       [maintainer-update] astro/linux-setiathome-i686 - sed/perl -> 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:   Thu Jul 18 21:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 4.5-RELEASE FreeBSD 4.5-RELEASE #3: Mon Mar 11 13:32:05 EST 2002 edwin@k7.mavetju.org:/usr/src/sys/compile/k7 i386


>Description:

In the past, I've submitted a port called linux-setiathome-i686
(http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/31229)

Up to now the port isn't commited, but to show my commitment to it
here is the patch to use REINPLACE_CMD instead of SED in its Makefile.

>How-To-Repeat:
n/a

>Fix:

First commit ports/31229
Then:


--- astro/linux-setiathome-i686-old/Makefile	Fri Jul 19 14:31:14 2002
+++ astro/linux-setiathome-i686/Makefile	Fri Jul 19 14:33:14 2002
@@ -18,6 +18,7 @@
 
 BUILD_DEPENDS=	setiathome:${PORTSDIR}/astro/setiathome
 
+USE_REINPLACE=	yes
 ONLY_FOR_ARCHS=	i386
 
 .include <bsd.port.pre.mk>
@@ -28,11 +29,14 @@
 STRIP=		# linux binary
 
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/setiathome ${PREFIX}/sbin/setiathome-linux-i686
-	@${SED} \
+	@${INSTALL_PROGRAM} \
+		${WRKSRC}/setiathome ${PREFIX}/sbin/setiathome-linux-i686
+	@${CP} ${PREFIX}/etc/rc.d/setiathome.sh \
+		${PREFIX}/etc/rc.d/setiathome-linux-i686.sh
+	@${REINPLACE_CMD} \
 	-e 's/^program_file\=setiathome/program_file\=setiathome-linux-i686/' \
-	-e 's/ SETI.home\"/ SETI@home-linux-i686\"/'                          \
-	< ${PREFIX}/etc/rc.d/setiathome.sh > ${PREFIX}/etc/rc.d/setiathome-linux-i686.sh
+	-e 's/ SETI.home\"/ SETI@home-linux-i686\"/' \
+		${PREFIX}/etc/rc.d/setiathome-linux-i686.sh
 	@${SH} ${PREFIX}/etc/rc.d/setiathome.sh stop
 	@${SH} ${PREFIX}/etc/rc.d/setiathome-linux-i686.sh start
 	@${CHMOD} +x ${PREFIX}/etc/rc.d/setiathome-linux-i686.sh
>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?20020719044352.CEFE86A711E>