[packages/percona-monitoring-plugins] use make to regenerate project files

glen glen at pld-linux.org
Thu Mar 15 12:51:46 CET 2018


commit 69e9a37f7eec8d93ff4aa561f0453cedcd967e78
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Thu Mar 15 13:39:14 2018 +0200

    use make to regenerate project files

 percona-monitoring-plugins.spec | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/percona-monitoring-plugins.spec b/percona-monitoring-plugins.spec
index a84faec..91c9865 100644
--- a/percona-monitoring-plugins.spec
+++ b/percona-monitoring-plugins.spec
@@ -101,6 +101,16 @@ chmod a+rx cacti/scripts/*.php
 install -d cacti/templates
 
 %build
+./make.sh nodocs
+
+cd release/%{name}-%{version}
+
+# rename to include fixed names
+for xml in cacti/templates/cacti_host_template_*.xml; do
+	normalized=${xml%_0.8.*-sver%{version}.xml}.xml
+	mv $xml $normalized
+done
+
 # regenerate to make port per source
 # https://www.percona.com/doc/percona-monitoring-plugins/1.1/cacti/customizing-templates.html
 cd cacti
@@ -112,6 +122,8 @@ bin/pmp-cacti-template \
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{resourcedir},%{scriptsdir},%{cachedir}}
 
+cd release/%{name}-%{version}
+
 cd cacti
 # tools for modifying templates
 # https://www.percona.com/doc/percona-monitoring-plugins/1.1/cacti/customizing-templates.html
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list