diff options
| author | Rifat Nabi | 2011-10-15 22:30:20 +0600 |
|---|---|---|
| committer | Adam Vandenberg | 2012-01-29 17:20:54 -0800 |
| commit | cf00ed294a2899db1cd0fc522e2d8522e874a65e (patch) | |
| tree | 89dc22d6d51b9f4661ffce7b46d8dcbab8245249 | |
| parent | da433e4fc73e2ff2bb935d36f1b94c3e5b45a625 (diff) | |
| download | homebrew-cf00ed294a2899db1cd0fc522e2d8522e874a65e.tar.bz2 | |
Percona Toolkit 2.0.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/percona-toolkit.rb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Library/Formula/percona-toolkit.rb b/Library/Formula/percona-toolkit.rb new file mode 100644 index 000000000..85547fddf --- /dev/null +++ b/Library/Formula/percona-toolkit.rb @@ -0,0 +1,38 @@ +require 'formula' + +class PerconaToolkit < Formula + homepage 'http://www.percona.com/software/percona-toolkit/' + url 'http://www.percona.com/redir/downloads/percona-toolkit/2.0.2/percona-toolkit-2.0.2.tar.gz' + md5 '74f55df529b2527853d4d907f0175c0d' + + 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 "pt-archiver" + system "pt-config-diff" + system "pt-deadlock-logger" + system "pt-duplicate-key-checker" + system "pt-find" + system "pt-fk-error-logger" + system "pt-heartbeat" + system "pt-kill" + system "pt-log-player" + system "pt-pmp" + system "pt-slave-delay" + system "pt-slave-find" + system "pt-slave-restart" + system "pt-summary" + system "pt-table-checksum" + system "pt-table-sync" + system "pt-upgrade" + system "pt-variable-advisor" + end +end |
