aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/nagios-plugins.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/nagios-plugins.rb')
-rw-r--r--Library/Formula/nagios-plugins.rb16
1 files changed, 2 insertions, 14 deletions
diff --git a/Library/Formula/nagios-plugins.rb b/Library/Formula/nagios-plugins.rb
index 344d4fa6d..4fc0aae1b 100644
--- a/Library/Formula/nagios-plugins.rb
+++ b/Library/Formula/nagios-plugins.rb
@@ -1,5 +1,3 @@
-require "formula"
-
class NagiosPlugins < Formula
homepage "https://www.nagios-plugins.org/"
url "https://www.nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz"
@@ -11,8 +9,7 @@ class NagiosPlugins < Formula
sha1 "0f3bb80908ff0cdfaae651c2100b48a048d69257" => :mountain_lion
end
- depends_on "openssl" => :optional
- depends_on "gnutls" => :optional
+ depends_on "openssl"
depends_on "postgresql" => :optional
depends_on :mysql => :optional
@@ -21,16 +18,11 @@ class NagiosPlugins < Formula
--disable-dependency-tracking
--prefix=#{libexec}
--libexecdir=#{libexec}/sbin
+ --with-openssl=#{Formula["openssl"].opt_prefix}
]
args << "--with-pgsql=#{Formula["postgresql"].opt_prefix}" if build.with? "postgresql"
- if build.with? "gnutls"
- args << "--with-gnutls=#{Formula["gnutls"].opt_prefix}"
- else
- args << "--with-openssl=#{Formula["openssl"].opt_prefix}"
- end
-
system "./configure", *args
system "make", "install"
system "make", "install-root" # Do we still want to support root-install Jack?
@@ -43,8 +35,4 @@ class NagiosPlugins < Formula
#{HOMEBREW_PREFIX}/sbin
EOS
end
-
- test do
- system "#{sbin}/check_ntp_time", "-H", "pool.ntp.org"
- end
end