[packages/percona-toolkit] add global percona-toolkit config

glen glen at pld-linux.org
Mon Apr 7 13:46:23 CEST 2014


commit a088013018e1132cd032fef508046b75f9740b20
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Apr 7 14:45:27 2014 +0300

    add global percona-toolkit config

 percona-toolkit.conf | 2 ++
 percona-toolkit.spec | 3 +++
 2 files changed, 5 insertions(+)
---
diff --git a/percona-toolkit.spec b/percona-toolkit.spec
index 13f6d4b..abfbfa6 100644
--- a/percona-toolkit.spec
+++ b/percona-toolkit.spec
@@ -7,6 +7,7 @@ License:	GPL v2
 Group:		Applications/Databases
 Source0:	https://www.percona.com/downloads/percona-toolkit/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	7514af32e0edff70c4934da2e5e36303
+Source1:	percona-toolkit.conf
 URL:		http://www.percona.com/software/percona-toolkit/
 BuildRequires:	perl-ExtUtils-MakeMaker
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -54,6 +55,7 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
 %{__make} pure_install \
 	PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/percona-version-check
 
 ln -s pt-show-grants $RPM_BUILD_ROOT%{_bindir}/mysqldumpgrants
@@ -68,6 +70,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc Changelog README
 %dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
 %ghost %{_sysconfdir}/%{name}/percona-version-check
 %attr(755,root,root) %{_bindir}/pt-*
 %attr(755,root,root) %{_bindir}/mysqldumpgrants
diff --git a/percona-toolkit.conf b/percona-toolkit.conf
new file mode 100644
index 0000000..63f1ec8
--- /dev/null
+++ b/percona-toolkit.conf
@@ -0,0 +1,2 @@
+# global configuration of all percona-toolkit apps.
+# see percona-toolkit(1) for more details.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/percona-toolkit.git/commitdiff/038a283c0be2933e660530c3f84a8bfdd003b529



More information about the pld-cvs-commit mailing list