aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/nagios-plugins.rb
diff options
context:
space:
mode:
authorDominyk Tiller2014-12-16 15:18:50 +0000
committerJack Nagel2014-12-17 20:55:36 -0500
commit5e25e88f7637a703ea32de30d8309b2289660821 (patch)
tree80f1b746c6d219b30bc202dcbbfcc5f48e8b0e4f /Library/Formula/nagios-plugins.rb
parent2c7f534061a0eb37bd08942c78eff2a62ab9c1d3 (diff)
downloadhomebrew-5e25e88f7637a703ea32de30d8309b2289660821.tar.bz2
nrpe: fix system openssl usage
Closes #35024. Closes #35033. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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