01837c0c08
Allows OpenConnect 8 to support SecurID software tokens by default.
54 lines
1.7 KiB
Ruby
54 lines
1.7 KiB
Ruby
class Openconnect < Formula
|
|
desc "Open client for Cisco AnyConnect VPN"
|
|
homepage "https://www.infradead.org/openconnect/"
|
|
url "ftp://ftp.infradead.org/pub/openconnect/openconnect-8.02.tar.gz"
|
|
mirror "https://fossies.org/linux/privat/openconnect-8.02.tar.gz"
|
|
sha256 "1ca8f2c279f12609bf061db78b51e5f913b3bce603a0d4203230a413d8dfe012"
|
|
|
|
bottle do
|
|
sha256 "53521355595b9b5ad7c67c5d37ea772eb4e8a47131e4431e95ae1473bacc70f2" => :mojave
|
|
sha256 "54aa04eb941ed606b81340e16b2ea50d53f7adb9be2df3bd4e309bdc6b34a400" => :high_sierra
|
|
sha256 "25cdd4355fa850a16dfd16498f1034b9bd6f8a8b753727fa9401a7d88934a2fc" => :sierra
|
|
end
|
|
|
|
head do
|
|
url "git://git.infradead.org/users/dwmw2/openconnect.git", :shallow => false
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gettext"
|
|
depends_on "gnutls"
|
|
depends_on "stoken"
|
|
|
|
resource "vpnc-script" do
|
|
url "http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/6e04e0bbb66c0bf0ae055c0f4e58bea81dbb5c3c:/vpnc-script"
|
|
sha256 "48b1673e1bfaacbfa4e766c41e15dd8458726cca8f3e07991d078d0d5b7c55e9"
|
|
end
|
|
|
|
def install
|
|
etc.install resource("vpnc-script")
|
|
chmod 0755, "#{etc}/vpnc-script"
|
|
|
|
if build.head?
|
|
ENV["LIBTOOLIZE"] = "glibtoolize"
|
|
system "./autogen.sh"
|
|
end
|
|
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--sbindir=#{bin}
|
|
--localstatedir=#{var}
|
|
--with-vpnc-script=#{etc}/vpnc-script
|
|
]
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match "Open client for multiple VPN protocols", pipe_output("#{bin}/openconnect 2>&1")
|
|
end
|
|
end
|