f19e9f6801
Closes #34107. Signed-off-by: Chongyu Zhu <i@lembacon.com>
20 lines
730 B
Ruby
20 lines
730 B
Ruby
class Mysqltuner < Formula
|
|
desc "Increase performance and stability of a MySQL installation"
|
|
homepage "https://raw.github.com/major/MySQLTuner-perl/master/mysqltuner.pl"
|
|
url "https://github.com/major/MySQLTuner-perl/archive/1.7.13.tar.gz"
|
|
sha256 "93b34c979a81ab13bd5a3c2f6cc6f3dcd432a344add2885b8ebe1d761905cd15"
|
|
head "https://github.com/major/MySQLTuner-perl.git"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
bin.install "mysqltuner.pl" => "mysqltuner"
|
|
end
|
|
|
|
# mysqltuner analyzes your database configuration by connecting to a
|
|
# mysql server. It is not really feasible to spawn a mysql server
|
|
# just for a test case so we'll stick with a rudimentary test.
|
|
test do
|
|
system "#{bin}/mysqltuner", "--help"
|
|
end
|
|
end
|