From 18879f15d5107cb9cbc5bd89e30af5aa7583b224 Mon Sep 17 00:00:00 2001 From: MIHIRA Sanpei Yoshiro Date: Wed, 11 Jun 2014 09:38:35 +0000 Subject: [PATCH] Add staging support. --- net-mgmt/mrtg-ping-probe/Makefile | 12 +++++------- net-mgmt/mrtg-ping-probe/pkg-plist | 1 + 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/net-mgmt/mrtg-ping-probe/Makefile b/net-mgmt/mrtg-ping-probe/Makefile index e71615eaca32..147d8d98fefd 100644 --- a/net-mgmt/mrtg-ping-probe/Makefile +++ b/net-mgmt/mrtg-ping-probe/Makefile @@ -16,17 +16,15 @@ FETCH_BEFORE_ARGS= -p # MASTER_SITE needs PASSIVE FTP. USES= perl5 -MAN1= ${PORTNAME}.1 - -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|%%PERL%%|${PERL5}|' ${WRKSRC}/${PORTNAME} @${CHMOD} +x ${WRKSRC}/${PORTNAME} do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - @${INSTALL_SCRIPT} ${WRKSRC}/mrtg-ping-cfg ${PREFIX}/bin - @${INSTALL_DATA} ${WRKSRC}/mrtg.cfg-ping ${PREFIX}/etc/mrtg - @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${PREFIX}/man/man1 + @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + @${INSTALL_SCRIPT} ${WRKSRC}/mrtg-ping-cfg ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/mrtg + @${INSTALL_DATA} ${WRKSRC}/mrtg.cfg-ping ${STAGEDIR}${PREFIX}/etc/mrtg + @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1 .include diff --git a/net-mgmt/mrtg-ping-probe/pkg-plist b/net-mgmt/mrtg-ping-probe/pkg-plist index abef662a5bd1..cc63af07d80e 100644 --- a/net-mgmt/mrtg-ping-probe/pkg-plist +++ b/net-mgmt/mrtg-ping-probe/pkg-plist @@ -1,3 +1,4 @@ bin/mrtg-ping-cfg bin/mrtg-ping-probe etc/mrtg/mrtg.cfg-ping +man/man1/mrtg-ping-probe.1.gz