aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-07-19 17:26:31 +0800
committerijliao <ijliao@FreeBSD.org>2002-07-19 17:26:31 +0800
commit23bde94bb6ad2c4c84be0516393a9c4f472b6b72 (patch)
treeb04926c23f5adf16ac39b7d8ac9cfc542d09e4ca /net
parent646a0f2432451c7a003379f4c3cc36bce649f0c6 (diff)
downloadfreebsd-ports-gnome-23bde94bb6ad2c4c84be0516393a9c4f472b6b72.tar.gz
freebsd-ports-gnome-23bde94bb6ad2c4c84be0516393a9c4f472b6b72.tar.zst
freebsd-ports-gnome-23bde94bb6ad2c4c84be0516393a9c4f472b6b72.zip
${PERL} -> ${REINPLACE_CMD}
${SED} -> ${REINPLACE_CMD} PR: 40750 Submitted by: 40751 Reviewed by: maintainer
Diffstat (limited to 'net')
-rw-r--r--net/freenet6/Makefile21
-rw-r--r--net/ipfw-graph/Makefile3
2 files changed, 15 insertions, 9 deletions
diff --git a/net/freenet6/Makefile b/net/freenet6/Makefile
index fd21fd1e14ba..72ec3c316527 100644
--- a/net/freenet6/Makefile
+++ b/net/freenet6/Makefile
@@ -13,6 +13,8 @@ EXTRACT_SUFX= .tgz
MAINTAINER= edwin@mavetju.org
+USE_REINPLACE= yes
+
MAN8= tspc.8
MAN5= tspc.conf.5
@@ -58,16 +60,19 @@ post-install:
@${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>
diff --git a/net/ipfw-graph/Makefile b/net/ipfw-graph/Makefile
index 90fb357aee0b..f6093c5601b1 100644
--- a/net/ipfw-graph/Makefile
+++ b/net/ipfw-graph/Makefile
@@ -12,12 +12,13 @@ MASTER_SITES= http://www.mavetju.org/download/
MAINTAINER= edwin@mavetju.org
+USE_REINPLACE= yes
USE_GTK= yes
MAKE_ENV+= MANPREFIX="${MANPREFIX}"
MAN8= ipfw-al.8 ipfw-graph.8
pre-patch:
- @${PERL} -pi -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/ipfw-graph.h
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/ipfw-graph.h
.include <bsd.port.mk>