[packages/percona-monitoring-plugins] make mysql port per source by default

glen glen at pld-linux.org
Sun Mar 23 15:27:20 CET 2014


commit 976a1fbf7f5756fe06132b4eae23cd6907062027
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 23 16:27:18 2014 +0200

    make mysql port per source by default

 percona-monitoring-plugins.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/percona-monitoring-plugins.spec b/percona-monitoring-plugins.spec
index c6cb0d9..783a798 100644
--- a/percona-monitoring-plugins.spec
+++ b/percona-monitoring-plugins.spec
@@ -11,7 +11,7 @@
 Summary:	MySQL cacti templates
 Name:		percona-monitoring-plugins
 Version:	1.1.3
-Release:	0.9
+Release:	0.11
 License:	GPL v2
 Group:		Applications/WWW
 Source0:	http://www.percona.com/redir/downloads/percona-monitoring-plugins/LATEST/%{name}-%{version}.tar.gz
@@ -101,6 +101,14 @@ done
 
 %{__sed} -i -e '1i#!/usr/bin/php' scripts/*.php
 
+%build
+# regenerate to make port per source
+# http://www.percona.com/doc/percona-monitoring-plugins/1.1/cacti/customizing-templates.html
+cd cacti
+bin/pmp-cacti-template \
+  --script scripts/ss_get_mysql_stats.php definitions/mysql.def \
+  --mpds port > ./templates/cacti_host_template_percona_mysql_server_ht.xml
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{resourcedir},%{scriptsdir},%{cachedir}}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/percona-monitoring-plugins.git/commitdiff/976a1fbf7f5756fe06132b4eae23cd6907062027



More information about the pld-cvs-commit mailing list