aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/monit.rb
blob: a9c0889bbb40fc430ea91906fe737a62f5272c7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require "formula"

class Monit < Formula
  homepage "http://mmonit.com/monit/"
  url "http://mmonit.com/monit/dist/monit-5.12.tar.gz"
  sha256 "43075396203569f87b67f7bffd1de739aa2fba302956237a2b0dc7aaf62da343"

  bottle do
    cellar :any
    sha1 "c21b130f1492f1ec2d64aaf2af28e2f7924bd3c7" => :yosemite
    sha1 "a0a3f64fe0ef95bc2adb2e5a3a0cf5647a6d3ef5" => :mavericks
    sha1 "1f6659744cdcfc0324d74ee0237d61ca14d62b25" => :mountain_lion
  end

  depends_on "openssl"

  def install
    system "./configure", "--prefix=#{prefix}",
                          "--localstatedir=#{var}/monit",
                          "--sysconfdir=#{etc}/monit"
    system "make install"
  end

  test do
    system "#{bin}/monit", "-h"
  end
end