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