freebsd-ports/net-mgmt/percona-monitoring-plugins/Makefile
Yuri Victorovich b66056ffed Reset maintainership of the ports maintained by alexey@renatasystems.org
Based on the timeout of 3+ months (2018-03-23-now) on bug#226885 for net/ucarp

Also, looking at the subversion log, there were timeouts on:
* bug#224169 r465659 | ygy | 2018-03-26 19:51:12
* bug#224768 r459066 | swills | 2018-01-15 07:16:28
* bug#224755 r459058 | swills | 2018-01-15 06:55:08

The last approval from alexey@renatasystems.org was over a year ago:
bug#218563 r438885 | lifanov | 2017-04-19 08:30:28 (devel/py-colorama)
2018-07-18 22:20:23 +00:00

68 lines
2.1 KiB
Makefile

# Created by: Alexey V. Degtyarev <alexey@renatasystems.org>
# $FreeBSD$
PORTNAME= percona-monitoring-plugins
PORTVERSION= 1.1.8
PORTREVISION= 0
CATEGORIES= net-mgmt
MASTER_SITES= https://www.percona.com/downloads/percona-monitoring-plugins/${PORTNAME}-${PORTVERSION}/source/tarball/ \
ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= Cacti templates for MySQL, Apache, Memcached, and more by Percona
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= cacti>=0:net-mgmt/cacti \
p5-DBD-mysql>=0:databases/p5-DBD-mysql \
bash:shells/bash \
wget:ftp/wget
USES= mysql perl5 php:cli python:run shebangfix
USE_PERL5= run
SHEBANG_FILES= nagios/bin/pmp-check-pt-table-checksum \
nagios/bin/pmp-check-aws-rds.py \
cacti/bin/pmp-cacti-*
NO_BUILD= yes
NO_ARCH= yes
PORTDOCS= Changelog
CACTIDIR?= share/cacti
OPTIONS_DEFINE= DOCS
REINPLACE_ARGS= -i ''
post-patch:
@${REINPLACE_CMD} 's|/etc/cacti/|${PREFIX}/etc/cacti/|g' ${WRKSRC}/cacti/scripts/ss_get_mysql_stats.php ${WRKSRC}/cacti/scripts/ss_get_by_ssh.php
@${REINPLACE_CMD} 's|/etc/nagios/mysql.cnf|${PREFIX}/etc/nagios/mysql.cnf|g' ${WRKSRC}/nagios/bin/pmp-check-mysql-*
@${REINPLACE_CMD} 's|/usr/bin/php|${PREFIX}/bin/php|g' ${WRKSRC}/zabbix/scripts/get_mysql_stats_wrapper.sh
@${REINPLACE_CMD} 's|wget|${PREFIX}/bin/wget|g' ${WRKSRC}/cacti/scripts/ss_get_by_ssh.php
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/cacti/scripts
${MKDIR} ${STAGEDIR}${PREFIX}/share/percona-monitoring-plugins
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
.for dir in definitions misc
cd ${WRKSRC} && ${PAX} -r -w cacti/${dir} \
${STAGEDIR}${PREFIX}/share/percona-monitoring-plugins
.endfor
.for script in ss_get_by_ssh.php ss_get_mysql_stats.php
${INSTALL_DATA} ${WRKSRC}/cacti/scripts/${script} \
${STAGEDIR}${PREFIX}/share/cacti/scripts/${script}
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/cacti/bin/* ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/nagios/bin/* ${STAGEDIR}${PREFIX}/libexec/nagios
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}/${doc}
.endfor
.include <bsd.port.mk>