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