38 lines
1.2 KiB
Ruby
38 lines
1.2 KiB
Ruby
class IkeScan < Formula
|
|
desc "Discover and fingerprint IKE hosts"
|
|
homepage "https://github.com/royhills/ike-scan"
|
|
url "https://github.com/royhills/ike-scan/releases/download/1.9/ike-scan-1.9.tar.gz"
|
|
sha256 "05d15c7172034935d1e46b01dacf1101a293ae0d06c0e14025a4507656f1a7b6"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha256 "70276baa029ee6c1a451175e3254cc74754fd5de83fe748d17ba4fcf0586349a" => :yosemite
|
|
sha256 "a0967f6ce6e9903068149c9b379926a25b315c3bdb9aca451f28b0d9cc744abd" => :mavericks
|
|
sha256 "2281b3d5f1f590e69e435a39c1032872db80439411ea74410a58243096645668" => :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
|