From f6a53e85670aaf1150ba14bfc2848e1a4b8a3218 Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Jun 21 2008 18:23:53 +0000 Subject: Initial EL-5 import (#452172). --- diff --git a/.cvsignore b/.cvsignore index e69de29..d99e4c0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +mysqltuner.pl.gz diff --git a/mysqltuner-0.9.1-checkversion.patch b/mysqltuner-0.9.1-checkversion.patch new file mode 100644 index 0000000..3e85c53 --- /dev/null +++ b/mysqltuner-0.9.1-checkversion.patch @@ -0,0 +1,41 @@ +Index: mysqltuner.pl +=================================================================== +--- mysqltuner.pl (revision 37) ++++ mysqltuner.pl (working copy) +@@ -50,7 +50,7 @@ + "noinfo" => 0, + "nocolor" => 0, + "skipsize" => 0, +- "skipversion" => 0, ++ "checkversion" => 0, + ); + + # Gather the options from the command line +@@ -60,7 +60,8 @@ + 'noinfo', + 'nocolor', + 'skipsize', +- 'skipversion', ++ 'checkversion', ++ 'skipversion', # ignored (use --checkversion), present for backwards compatibility + 'help', + ); + +@@ -79,7 +80,7 @@ + " Performance and Reporting Options\n". + " --skipsize Don't enumerate tables and their types/sizes\n". + " (Recommended for servers with many tables)\n". +- " --skipversion Don't check for updates to MySQLTuner\n\n". ++ " --checkversion Check for updates to MySQLTuner\n\n". + " Output Options:\n". + " --nogood Remove OK responses\n". + " --nobad Remove negative/suggestion responses\n". +@@ -269,7 +270,7 @@ + # Checks for updates to MySQLTuner + sub validate_tuner_version { + print "\n-------- General Statistics --------------------------------------------------\n"; +- if ($opt{skipversion} eq 1) { ++ if ($opt{checkversion} ne 1) { + infoprint "Skipped version check for MySQLTuner script\n"; + return; + } diff --git a/mysqltuner.spec b/mysqltuner.spec new file mode 100644 index 0000000..faa488a --- /dev/null +++ b/mysqltuner.spec @@ -0,0 +1,66 @@ +Name: mysqltuner +Version: 0.9.1 +Release: 3 +Summary: MySQL high performance tuning script + +Group: Applications/Databases +License: GPLv3+ +URL: http://mysqltuner.com/ +Source0: http://mysqltuner.com/mysqltuner.pl.gz +# Sent upstream @0.9.0 time, seems rejected. +Patch0: %{name}-0.9.1-checkversion.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +Requires: mysql +Requires: which + +%description +MySQLTuner is a MySQL high performance tuning script written in perl +that will provide you with a snapshot of a MySQL server's health. +Based on the statistics gathered, specific recommendations will be +provided that will increase a MySQL server's efficiency and +performance. The script gives you automated MySQL tuning that is on +the level of what you would receive from a MySQL DBA. + + +%prep +%setup -q -c -T +gzip -dc %{SOURCE0} > mysqltuner.pl +%patch0 +sed -i -e 's/\r\+//g' mysqltuner.pl + + +%build + + +%install +rm -rf $RPM_BUILD_ROOT +install -Dpm 755 mysqltuner.pl $RPM_BUILD_ROOT%{_bindir}/mysqltuner + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_bindir}/mysqltuner + + +%changelog +* Sat Jun 21 2008 Ville Skyttä - 0.9.1-3 +- Don't warn if --skipversion is used (#452172). + +* Thu Jun 19 2008 Ville Skyttä - 0.9.1-1 +- 0.9.1. +- Patch to not "phone home" by default (--skipversion -> --checkversion). + +* Sat Apr 12 2008 Ville Skyttä - 0.9.0-1 +- 0.9.0. + +* Sun Mar 2 2008 Ville Skyttä - 0.8.6-1 +- 0.8.6. + +* Mon Feb 18 2008 Ville Skyttä - 0.8.5-1 +- 0.8.5. diff --git a/sources b/sources index e69de29..cf48fa0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +56f3e3aa6cf9f1c2573c937ca6190fb3 mysqltuner.pl.gz