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
|
2010-10-21 02:38:01 +00:00
|
|
|
url 'http://mmonit.com/monit/dist/monit-5.2.1.tar.gz'
|
2009-09-17 13:52:33 +00:00
|
|
|
homepage 'http://mmonit.com/monit/'
|
2010-10-21 02:38:01 +00:00
|
|
|
sha256 '31b37dd4a6f6b48e6d6926d97bfe5ad998a2a0611af0586525a5dd1b5847e41e'
|
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
|
|
|
|
end
|