homebrew-core/Formula/monit.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

18 lines
469 B
Ruby

require 'formula'
class Monit < Formula
homepage 'http://mmonit.com/monit/'
url 'http://mmonit.com/monit/dist/monit-5.6.tar.gz'
sha256 '38e09bd8b39abc59e6b9a9bb7a78f7eac2b02a92f4de1f3a6dc24e84dfedae0d'
def install
system "./configure", "--prefix=#{prefix}",
"--localstatedir=#{var}/monit",
"--sysconfdir=#{etc}/monit"
system "make install"
end
test do
system "#{bin}/monit", "-h"
end
end