aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDominyk Tiller2015-01-30 16:41:51 +0000
committerJack Nagel2015-01-31 18:04:31 -0500
commitcd33e680fa72b15b0743b5c29f9f89073e6170ef (patch)
treec3342abce177334a5d319762403c9f5c9c49583d /Library/Formula
parent45ad54aeb97770c01375b76d2ca5d9e481b64b30 (diff)
downloadhomebrew-cd33e680fa72b15b0743b5c29f9f89073e6170ef.tar.bz2
ike-scan: system openssl fix
Another system OpenSSL Fix, and added the HEAD, and strict audit fixes. Closes #36384. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ike-scan.rb31
1 files changed, 23 insertions, 8 deletions
diff --git a/Library/Formula/ike-scan.rb b/Library/Formula/ike-scan.rb
index d178d50b2..61be2d7d2 100644
--- a/Library/Formula/ike-scan.rb
+++ b/Library/Formula/ike-scan.rb
@@ -1,15 +1,30 @@
-require 'formula'
-
class IkeScan < Formula
- homepage 'http://www.nta-monitor.com/tools/ike-scan/'
- url 'http://www.nta-monitor.com/tools/ike-scan/download/ike-scan-1.9.tar.gz'
- sha1 'e973742c32c7b65fe134233482c94e3e94db3b32'
+ homepage "http://www.nta-monitor.com/tools/ike-scan/"
+ url "http://www.nta-monitor.com/tools/ike-scan/download/ike-scan-1.9.tar.gz"
+ sha1 "e973742c32c7b65fe134233482c94e3e94db3b32"
+ revision 1
+
+ head do
+ url "https://github.com/royhills/ike-scan.git"
+
+ depends_on "automake" => :build
+ depends_on "autoconf" => :build
+ depends_on "libtool" => :build
+ end
+
+ depends_on "openssl"
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ system "autoreconf", "-fvi" if build.head?
+ system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
- "--with-openssl"
- system "make install"
+ "--with-openssl=#{Formula["openssl"].opt_prefix}"
+ system "make", "install"
+ end
+
+ test do
+ # We probably shouldn't probe any host for VPN servers, so let's keep this simple.
+ system bin/"ike-scan", "--version"
end
end