3dc1d21c43
Closes Homebrew/homebrew#15142. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
38 lines
1.1 KiB
Ruby
38 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
class PerconaToolkit < Formula
|
|
homepage 'http://www.percona.com/software/percona-toolkit/'
|
|
url 'http://www.percona.com/redir/downloads/percona-toolkit/2.1.4/percona-toolkit-2.1.4.tar.gz'
|
|
sha1 '2dac3abb6b0a255b67102c415fcf10965f1fe913'
|
|
|
|
depends_on 'Time::HiRes' => :perl
|
|
depends_on 'DBD::mysql' => :perl
|
|
|
|
def install
|
|
system "perl", "Makefile.PL", "PREFIX=#{prefix}"
|
|
system "make"
|
|
system "make test"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
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"
|
|
end
|
|
end
|