Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2002 14:30:40 +1000 (EST)
From:      Edwin Groothuis <edwin@mavetju.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/40751: [maintainer update] net/freenet6 - sed/perl -> reinplace
Message-ID:  <20020719043040.EC3E56A711E@k7.mavetju>

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

>Number:         40751
>Category:       ports
>Synopsis:       [maintainer update] net/freenet6 - 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:40: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:

This patch updates net/freenet6 to use the REINPLACE_CMD instead of SED.
(no port-revision bump is needed)

>How-To-Repeat:
n/a

>Fix:


diff -ru net/freenet6-old/Makefile net/freenet6/Makefile
--- net/freenet6-old/Makefile	Fri Jul 19 14:19:36 2002
+++ net/freenet6/Makefile	Fri Jul 19 14:25:12 2002
@@ -13,6 +13,8 @@
 
 MAINTAINER=	edwin@mavetju.org
 
+USE_REINPLACE=	yes
+
 MAN8=		tspc.8
 MAN5=		tspc.conf.5
 
@@ -58,16 +60,19 @@
 	@${CAT} ${PKGMESSAGE}
 
 post-patch:
-	@${MV} ${WRKSRC}/src/tspc.c ${WRKSRC}/src/tspc.c.orig
-	@${SED} -e "s|tspc.conf|${PREFIX}/etc/tspc.conf|" < ${WRKSRC}/src/tspc.c.orig > ${WRKSRC}/src/tspc.c
+	@${REINPLACE_CMD} -e "s|tspc.conf|${PREFIX}/etc/tspc.conf|" \
+		${WRKSRC}/src/tspc.c
+
+	@${CP} ${FILESDIR}/freenet6.sh.in ${WRKSRC}/freenet6.sh
+	@${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" ${WRKSRC}/freenet6.sh
 
-	@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${FILESDIR}/freenet6.sh.in > ${WRKSRC}/freenet6.sh
-	@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${FILESDIR}/pkg-message.in > ${WRKSRC}/pkg-message
+	@${CP} ${FILESDIR}/pkg-message.in ${WRKSRC}/pkg-message
+	@${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" ${WRKSRC}/pkg-message
 
-	@${MV} ${WRKSRC}/man/man8/tspc.8 ${WRKSRC}/man/man8/tspc.8.orig
-	@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${WRKSRC}/man/man8/tspc.8.orig > ${WRKSRC}/man/man8/tspc.8
+	@${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" \
+		${WRKSRC}/man/man8/tspc.8
 
-	@${MV} ${WRKSRC}/man/man5/tspc.conf.5 ${WRKSRC}/man/man5/tspc.conf.5.orig
-	@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${WRKSRC}/man/man5/tspc.conf.5.orig > ${WRKSRC}/man/man5/tspc.conf.5
+	@${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" \
+		${WRKSRC}/man/man5/tspc.conf.5
 
 .include <bsd.port.post.mk>
>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?20020719043040.EC3E56A711E>