aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/nagios-plugins.rb
blob: 1978621767188ef055fde138a19fb2d57c3362e7 (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
28
29
30
31
32
33
34
35
require 'formula'

class NagiosPlugins < Formula
  url 'http://downloads.sourceforge.net/project/nagiosplug/nagiosplug/1.4.15/nagios-plugins-1.4.15.tar.gz'
  homepage 'http://nagiosplugins.org/'
  md5 '56abd6ade8aa860b38c4ca4a6ac5ab0d'

  def nagios_sbin; sbin+'nagios-plugins'; end

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--libexecdir=#{nagios_sbin}"
    system "make install"
    system "make install-root"
  end

  def caveats
    <<-EOS.undent
    All plugins are accessible under

      #{nagios_sbin}

    and get symlinked to

      #{HOMEBREW_PREFIX}/sbin/nagios-plugins

    so that they don't appear in your search path but still can be found by
    nagios across version updates.

    Please feel free to update your PATH if you want to use them standalone!
    EOS
  end
end