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.4.tar.gz'
sha256 '805c6545de2dd7f3d9e6e0c68018b2aadd5fc98b243c8868178f247a60906038'
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