homebrew-core/Formula/monit.rb

19 lines
472 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
url 'http://mmonit.com/monit/dist/monit-5.3.2.tar.gz'
2009-09-17 13:52:33 +00:00
homepage 'http://mmonit.com/monit/'
sha256 '406a06ac912525c8e76066d07235c848466b331532b2b3de931b61fe455ae915'
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