2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-17 13:52:33 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Monit < Formula
|
2011-12-21 12:09:13 +00:00
|
|
|
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/'
|
2011-12-21 12:09:13 +00:00
|
|
|
sha256 '406a06ac912525c8e76066d07235c848466b331532b2b3de931b61fe455ae915'
|
2009-09-17 13:52:33 +00:00
|
|
|
|
|
|
|
def install
|
2010-10-22 19:52:06 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--localstatedir=#{var}/monit",
|
|
|
|
"--sysconfdir=#{etc}/monit"
|
2009-09-17 13:52:33 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2011-11-18 04:21:11 +00:00
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/monit", "-h"
|
2011-11-18 04:21:11 +00:00
|
|
|
end
|
2009-09-17 13:52:33 +00:00
|
|
|
end
|