aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ike-scan.rb
blob: 33830d4af1e29f5272dd11ae1253ff34e441f005 (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
36
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"
  revision 1

  bottle do
    sha1 "43ea7f5447f086855d2b536555241c72d6e55df1" => :yosemite
    sha1 "67c1151191bb54bccb2b899a4101eca4f71be022" => :mavericks
    sha1 "2ebab8a22e925846ae35980944b82b142df21326" => :mountain_lion
  end

  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 "autoreconf", "-fvi" if build.head?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}",
                          "--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