aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-12-05 02:15:10 +0800
committereadler <eadler@FreeBSD.org>2012-12-05 02:15:10 +0800
commit0eeeb5951764a5fe5731cd022460acc79acec160 (patch)
tree739721f16b58a737b54ab6a435ef159ea3331bd1 /net-mgmt
parent6575f59de7dfbd65219b970b0746c0a05bb213e7 (diff)
downloadfreebsd-ports-gnome-0eeeb5951764a5fe5731cd022460acc79acec160.tar.gz
freebsd-ports-gnome-0eeeb5951764a5fe5731cd022460acc79acec160.tar.zst
freebsd-ports-gnome-0eeeb5951764a5fe5731cd022460acc79acec160.zip
Simplify post-patch target
Submitted by: sunpoet Feature safe: yes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/p5-Net-IP/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/net-mgmt/p5-Net-IP/Makefile b/net-mgmt/p5-Net-IP/Makefile
index 0e47330096df..e9c7ef73c650 100644
--- a/net-mgmt/p5-Net-IP/Makefile
+++ b/net-mgmt/p5-Net-IP/Makefile
@@ -18,11 +18,7 @@ post-configure:
${PERL} -pi -e 's/-I\S+PERL\S+ //g if m{PERL_DL_NONLAZY}' ${WRKSRC}/Makefile
post-patch:
- @${CP} ${WRKSRC}/IP.pm ${WRKSRC}/IP.pm.presed
- @${SED} -e "1853s#\\s+#\s*#g" ${WRKSRC}/IP.pm.presed > \
- ${WRKSRC}/IP.pm
- @${CP} ${WRKSRC}/ipcount ${WRKSRC}/ipcount.presed
- @${SED} -e "76s#count#count = 0#" ${WRKSRC}/ipcount.presed > \
- ${WRKSRC}/ipcount
+ ${REINPLACE_CMD} "1853s#\\s+#\s*#g" ${WRKSRC}/IP.pm
+ ${REINPLACE_CMD} "76s#count#count = 0#" ${WRKSRC}/ipcount
.include <bsd.port.mk>