homebrew-core/Formula/mysqltuner.rb

22 lines
750 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.17.tar.gz"
sha256 "c82f29aa017360ab8888808393bd06e79af6fa447a62908a3b3dddea92b768b5"
license "GPL-3.0"
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