2011-10-15 16:30:20 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class PerconaToolkit < Formula
|
|
|
|
homepage 'http://www.percona.com/software/percona-toolkit/'
|
2012-06-12 21:44:15 +00:00
|
|
|
url 'http://www.percona.com/redir/downloads/percona-toolkit/2.1.2/percona-toolkit-2.1.2.tar.gz'
|
|
|
|
sha1 '739e4e97c61762fa1b7bbdf2c16f660b3ffc43e1'
|
2011-10-15 16:30:20 +00:00
|
|
|
|
|
|
|
depends_on 'Time::HiRes' => :perl
|
|
|
|
depends_on 'DBD::mysql' => :perl
|
|
|
|
|
|
|
|
def install
|
2012-05-15 18:31:21 +00:00
|
|
|
system "perl", "Makefile.PL", "PREFIX=#{prefix}"
|
2011-10-15 16:30:20 +00:00
|
|
|
system "make"
|
|
|
|
system "make test"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-05 21:49:32 +00:00
|
|
|
system "#{bin}/pt-archiver"
|
|
|
|
system "#{bin}/pt-config-diff"
|
|
|
|
system "#{bin}/pt-deadlock-logger"
|
|
|
|
system "#{bin}/pt-duplicate-key-checker"
|
|
|
|
system "#{bin}/pt-find"
|
|
|
|
system "#{bin}/pt-fk-error-logger"
|
|
|
|
system "#{bin}/pt-heartbeat"
|
|
|
|
system "#{bin}/pt-kill"
|
|
|
|
system "#{bin}/pt-log-player"
|
|
|
|
system "#{bin}/pt-pmp"
|
|
|
|
system "#{bin}/pt-slave-delay"
|
|
|
|
system "#{bin}/pt-slave-find"
|
|
|
|
system "#{bin}/pt-slave-restart"
|
|
|
|
system "#{bin}/pt-summary"
|
|
|
|
system "#{bin}/pt-table-checksum"
|
|
|
|
system "#{bin}/pt-table-sync"
|
|
|
|
system "#{bin}/pt-upgrade"
|
|
|
|
system "#{bin}/pt-variable-advisor"
|
2011-10-15 16:30:20 +00:00
|
|
|
end
|
|
|
|
end
|