9712e908a5
updated the vpnc-script git ref as well Closes Homebrew/homebrew#18845. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
38 lines
1,016 B
Ruby
38 lines
1,016 B
Ruby
require 'formula'
|
|
|
|
class VpncScript < Formula
|
|
url 'http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/d2c5a77f3f0ea6ad80fc59158127d63ede81a6cb:/vpnc-script'
|
|
sha1 '9915539c34393c1f8d7de9c3fc2c7396476bd998'
|
|
end
|
|
|
|
class Openconnect < Formula
|
|
homepage 'http://www.infradead.org/openconnect.html'
|
|
url 'ftp://ftp.infradead.org/pub/openconnect/openconnect-4.99.tar.gz'
|
|
sha1 '60a25be5014f5fdd49dc0b50649037cf51be8737'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'gettext'
|
|
|
|
def install
|
|
VpncScript.new.brew { etc.install Dir['*'] }
|
|
chmod 0755, "#{etc}/vpnc-script"
|
|
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--sbindir=#{bin}
|
|
--localstatedir=#{var}
|
|
--with-vpnc-script=#{etc}/vpnc-script
|
|
]
|
|
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
OpenConnect requires the use of a TUN/TAP driver.
|
|
|
|
You can download one at http://tuntaposx.sourceforge.net/
|
|
and install it prior to running OpenConnect.
|
|
EOS
|
|
end
|
|
end
|