]> git.pld-linux.org Git - packages/percona-monitoring-plugins.git/commitdiff
make mysql port per source by default
authorElan Ruusamäe <glen@delfi.ee>
Sun, 23 Mar 2014 14:27:18 +0000 (16:27 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 23 Mar 2014 14:27:18 +0000 (16:27 +0200)
percona-monitoring-plugins.spec

index c6cb0d9e0dcbeac87b3afd5c189528dd4b495642..783a7984abdfc38b804c77f91b123f570c70ebb7 100644 (file)
@@ -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}}
This page took 0.106404 seconds and 4 git commands to generate.