aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-03-18 23:02:18 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-03-18 23:02:18 +0800
commit9657a7b3e8636f383fb451e050d74a7843acf11b (patch)
treef7e4011483ab1ad6d8d045db212ac30f6a71d9ea /net-mgmt
parent87dbf4443f10aab773f3394832eb4af66bd196bb (diff)
downloadfreebsd-ports-gnome-9657a7b3e8636f383fb451e050d74a7843acf11b.tar.gz
freebsd-ports-gnome-9657a7b3e8636f383fb451e050d74a7843acf11b.tar.zst
freebsd-ports-gnome-9657a7b3e8636f383fb451e050d74a7843acf11b.zip
- Support staging
- Define DOCS option
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nagios-check_mysql_slave/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/net-mgmt/nagios-check_mysql_slave/Makefile b/net-mgmt/nagios-check_mysql_slave/Makefile
index 0390fd26bb90..ff2ff138b824 100644
--- a/net-mgmt/nagios-check_mysql_slave/Makefile
+++ b/net-mgmt/nagios-check_mysql_slave/Makefile
@@ -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>