1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Support staging

- Define DOCS option
This commit is contained in:
Emanuel Haupt 2014-03-18 15:02:18 +00:00
parent 93d7f597f6
commit 8eec3172f8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348568

View File

@ -24,16 +24,17 @@ USES= perl5
USE_PERL5= run
DOC_FILES= check_mysql_slave.html check_mysql_slave.pod
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
do-install:
@${MKDIR} ${PREFIX}/libexec/nagios
${INSTALL_SCRIPT} ${WRKSRC}/check_mysql_slave ${PREFIX}/libexec/nagios/
${INSTALL_SCRIPT} ${WRKSRC}/check_mysql_slave_epn ${PREFIX}/libexec/nagios/
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
${INSTALL_SCRIPT} ${WRKSRC}/check_mysql_slave \
${STAGEDIR}${PREFIX}/libexec/nagios
${INSTALL_SCRIPT} ${WRKSRC}/check_mysql_slave_epn \
${STAGEDIR}${PREFIX}/libexec/nagios
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>