2012-10-01 17:01:14 +02:00
|
|
|
# Created by: Alexey V. Degtyarev <alexey@renatasystems.org>
|
2012-01-30 10:04:54 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2012-09-20 05:56:48 +02:00
|
|
|
PORTNAME= percona-monitoring-plugins
|
2013-02-21 22:01:25 +01:00
|
|
|
PORTVERSION= 1.0.2
|
2012-01-30 10:04:54 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2012-09-20 05:56:48 +02:00
|
|
|
MASTER_SITES= http://www.percona.com/downloads/percona-monitoring-plugins/ \
|
|
|
|
ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/
|
2012-01-30 10:04:54 +01:00
|
|
|
|
|
|
|
MAINTAINER= alexey@renatasystems.org
|
2012-09-20 05:56:48 +02:00
|
|
|
COMMENT= Cacti templates for MySQL, Apache, Memcached, and more by Percona
|
2012-01-30 10:04:54 +01:00
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
RUN_DEPENDS= cacti>=0:${PORTSDIR}/net-mgmt/cacti \
|
|
|
|
p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql \
|
|
|
|
p5-Data-Dumper>=0:${PORTSDIR}/devel/p5-Data-Dumper \
|
|
|
|
p5-Digest-MD5>=0:${PORTSDIR}/security/p5-Digest-MD5 \
|
|
|
|
p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long \
|
|
|
|
p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes
|
|
|
|
|
|
|
|
USE_MYSQL= yes
|
|
|
|
USE_PHP= yes
|
|
|
|
WANT_PHP_CLI= yes
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
2013-02-21 22:01:25 +01:00
|
|
|
PORTDOCS= Changelog
|
2012-01-30 10:04:54 +01:00
|
|
|
|
|
|
|
CACTIDIR?= share/cacti
|
|
|
|
|
2013-09-21 00:24:43 +02:00
|
|
|
NO_STAGE= yes
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2014-02-21 14:38:46 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2013-02-21 22:01:25 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2012-01-30 10:04:54 +01:00
|
|
|
|
|
|
|
do-install:
|
2013-02-21 22:01:25 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2012-01-30 10:04:54 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for doc in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}/${doc}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2012-09-20 05:56:48 +02:00
|
|
|
|
2012-01-30 10:04:54 +01:00
|
|
|
${MKDIR} ${PREFIX}/share/cacti/scripts
|
2012-09-20 05:56:48 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/percona-monitoring-plugins
|
|
|
|
|
|
|
|
.for dir in definitions misc templates
|
|
|
|
cd ${WRKSRC} && ${PAX} -r -w cacti/${dir} \
|
|
|
|
${PREFIX}/share/percona-monitoring-plugins
|
2012-01-30 10:04:54 +01:00
|
|
|
.endfor
|
2012-09-20 05:56:48 +02:00
|
|
|
|
2012-01-30 10:04:54 +01:00
|
|
|
.for script in ss_get_by_ssh.php ss_get_mysql_stats.php
|
2012-09-20 05:56:48 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/cacti/scripts/${script} \
|
2012-01-30 10:04:54 +01:00
|
|
|
${PREFIX}/share/cacti/scripts/${script}
|
|
|
|
.endfor
|
|
|
|
|
2012-09-20 05:56:48 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cacti/bin/* ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/nagios/bin/* ${PREFIX}/bin
|
|
|
|
|
2012-01-30 10:04:54 +01:00
|
|
|
.include <bsd.port.mk>
|