aboutsummaryrefslogtreecommitdiff
path: root/net/freenet6
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-19 09:26:31 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-19 09:26:31 +0000
commitfe89b08a0b3d4b087e1e69dec4aedfaad53cf4fa (patch)
treee3d3ba4862ab52be1a1a3b041452e3e6944b245c /net/freenet6
parent73a790fd3972b97caa1d9aa09a58a2d76a6b819e (diff)
downloadports-fe89b08a0b3d4b087e1e69dec4aedfaad53cf4fa.tar.gz
ports-fe89b08a0b3d4b087e1e69dec4aedfaad53cf4fa.zip
Notes
Diffstat (limited to 'net/freenet6')
-rw-r--r--net/freenet6/Makefile21
1 files changed, 13 insertions, 8 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>