2010-12-30 10:32:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-07-05 04:54:38 +00:00
|
|
|
class VpncScript < Formula
|
2012-09-07 10:20:03 +00:00
|
|
|
url 'http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/a92baacc79914de9d29704f0fd2ac6fe7a0cd7c4:/vpnc-script'
|
|
|
|
sha1 'ee76aa0adc085784871cd55e2a4ab70310d848b8'
|
2012-07-05 04:54:38 +00:00
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Openconnect < Formula
|
2010-12-30 10:32:25 +00:00
|
|
|
homepage 'http://www.infradead.org/openconnect.html'
|
2012-09-07 10:20:03 +00:00
|
|
|
url 'ftp://ftp.infradead.org/pub/openconnect/openconnect-4.07.tar.gz'
|
|
|
|
sha1 '6ed84bda36578b4eb67beb4b39f03aec90270a77'
|
2012-07-05 04:54:38 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'gettext'
|
2010-12-30 10:32:25 +00:00
|
|
|
|
|
|
|
def install
|
2012-07-05 04:54:38 +00:00
|
|
|
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
|
2010-12-30 10:32:25 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2012-07-05 04:54:38 +00:00
|
|
|
|
|
|
|
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
|
2010-12-30 10:32:25 +00:00
|
|
|
end
|