aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2017-04-25 16:07:32 +0000
committerMark Felder <feld@FreeBSD.org>2017-04-25 16:07:32 +0000
commit92a95e2cd683fbc00fab623bbc00e35a93e567d8 (patch)
tree522c4e8d1f35fa5c91259881ff090bcefc4b1595 /net-mgmt
parent063e4d757ccac6c649b6f6771bb663e3aafd0323 (diff)
downloadports-92a95e2cd683fbc00fab623bbc00e35a93e567d8.tar.gz
ports-92a95e2cd683fbc00fab623bbc00e35a93e567d8.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/percona-monitoring-plugins/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/net-mgmt/percona-monitoring-plugins/Makefile b/net-mgmt/percona-monitoring-plugins/Makefile
index c3a99dc93f13..7d49edc192a1 100644
--- a/net-mgmt/percona-monitoring-plugins/Makefile
+++ b/net-mgmt/percona-monitoring-plugins/Makefile
@@ -3,7 +3,7 @@
PORTNAME= percona-monitoring-plugins
PORTVERSION= 1.1.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= http://www.percona.com/downloads/percona-monitoring-plugins/${PORTVERSION}/ \
ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/
@@ -20,7 +20,8 @@ RUN_DEPENDS= cacti>=0:net-mgmt/cacti \
p5-Digest-MD5>=0:security/p5-Digest-MD5 \
p5-Getopt-Long>=0:devel/p5-Getopt-Long \
p5-Time-HiRes>=0:devel/p5-Time-HiRes \
- bash:shells/bash
+ bash:shells/bash \
+ wget:ftp/wget
USES= shebangfix perl5 php:cli
USE_PERL5= run
@@ -36,6 +37,12 @@ CACTIDIR?= share/cacti
OPTIONS_DEFINE= DOCS
+post-patch:
+ @${REINPLACE_CMD} 's|/etc/cacti/|${LOCALBASE}/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|${LOCALBASE}/etc/nagios/mysql.cnf|g' ${WRKSRC}/nagios/bin/pmp-check-mysql-*
+ @${REINPLACE_CMD} 's|/etc/cacti/|${LOCALBASE}/etc/cacti/|g' ${WRKSRC}/zabbix/scripts/ss_get_mysql_stats.php
+ @${REINPLACE_CMD} 's|wget|${LOCALBASE}/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