require "formula" class Monit < Formula homepage "http://mmonit.com/monit/" url "http://mmonit.com/monit/dist/monit-5.8.1.tar.gz" sha1 "97c67699a4b2ee3b6ab8c51173611408e31173d7" def install system "./configure", "--prefix=#{prefix}", "--localstatedir=#{var}/monit", "--sysconfdir=#{etc}/monit" system "make install" end test do system "#{bin}/monit", "-h" end end