homebrew-core/Formula/monit.rb

19 lines
470 B
Ruby
Raw Normal View History

require 'formula'
2009-09-17 13:52:33 +00:00
2011-03-10 05:11:03 +00:00
class Monit < Formula
2009-09-17 13:52:33 +00:00
homepage 'http://mmonit.com/monit/'
url 'http://mmonit.com/monit/dist/monit-5.5.tar.gz'
sha256 '8276b060b3f0e6453c9748d421dec044ddae09d3e4c4666e13472aab294d7c53'
2009-09-17 13:52:33 +00:00
def install
system "./configure", "--prefix=#{prefix}",
"--localstatedir=#{var}/monit",
"--sysconfdir=#{etc}/monit"
2009-09-17 13:52:33 +00:00
system "make install"
end
def test
system "#{bin}/monit", "-h"
end
2009-09-17 13:52:33 +00:00
end