Add staging support.

This commit is contained in:
MIHIRA Sanpei Yoshiro 2014-06-11 09:38:35 +00:00
parent 013764a32f
commit 18879f15d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357446
2 changed files with 6 additions and 7 deletions

View file

@ -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 <bsd.port.mk>

View file

@ -1,3 +1,4 @@
bin/mrtg-ping-cfg
bin/mrtg-ping-probe
etc/mrtg/mrtg.cfg-ping
man/man1/mrtg-ping-probe.1.gz