diff options
| author | Simon Vetter | 2013-11-01 16:57:47 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-12-15 19:18:49 -0800 |
| commit | 533b6b5d04bf354d88484c952880e10d79b4cbb4 (patch) | |
| tree | 9299cb0700e08000e577550c01dd04c29ca7ba08 /Library/Formula | |
| parent | 969811d89a173504c40e256b31bcdaba0c42341e (diff) | |
| download | homebrew-533b6b5d04bf354d88484c952880e10d79b4cbb4.tar.bz2 | |
vpnc 0.5.3r512
Closes #23880.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/vpnc.rb | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/Library/Formula/vpnc.rb b/Library/Formula/vpnc.rb index 164d14b5d..b60d278d5 100644 --- a/Library/Formula/vpnc.rb +++ b/Library/Formula/vpnc.rb @@ -2,11 +2,15 @@ require 'formula' class Vpnc < Formula homepage 'http://www.unix-ag.uni-kl.de/~massar/vpnc/' - url 'http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.5.3.tar.gz' - sha256 '46cea3bd02f207c62c7c6f2f22133382602baeda1dc320747809e94881414884' + url 'http://ftp.debian.org/debian/pool/main/v/vpnc/vpnc_0.5.3r512.orig.tar.gz' + version '0.5.3r512' + sha256 'd421ac20b6c65d22d2ee88066e487f740f4d367f9143b6045bcb8fa177b384fe' + depends_on 'pkg-config' => :build depends_on 'libgcrypt' depends_on 'libgpg-error' + depends_on 'gnutls' + depends_on 'tuntap' fails_with :llvm do build 2334 @@ -23,7 +27,7 @@ class Vpnc < Formula ENV.no_optimization ENV.deparallelize - inreplace ["vpnc-script.in", "vpnc-disconnect"] do |s| + inreplace ["vpnc-script", "vpnc-disconnect"] do |s| s.gsub! "/var/run/vpnc", (var + 'run/vpnc') end @@ -50,13 +54,35 @@ class Vpnc < Formula end __END__ ---- vpnc-0.5.3/sysdep.h 2008-11-19 15:36:12.000000000 -0500 -+++ vpnc-0.5.3.patched/sysdep.h 2011-07-14 12:49:18.000000000 -0400 -@@ -109,6 +109,7 @@ +--- vpnc/sysdep.h 2008-11-19 15:36:12.000000000 -0500 ++++ vpnc.patched/sysdep.h 2011-07-14 12:49:18.000000000 -0400 +@@ -109,6 +109,8 @@ #define HAVE_FGETLN 1 #define HAVE_UNSETENV 1 #define HAVE_SETENV 1 +#define HAVE_GETLINE 1 ++#define NEW_TUN 1 #endif /***************************************************************************/ +diff -u vpnc.patched/vpnc-script vpnc/vpnc-script +--- vpnc.patched/vpnc-script 2013-11-01 13:17:21.000000000 -0700 ++++ vpnc/vpnc-script 2013-11-01 18:54:33.000000000 -0700 +@@ -388,7 +388,7 @@ + scutil >/dev/null 2>&1 <<-EOF + open + d.init +- d.add ServerAddresses * $INTERNAL_IP4_DNS ++ d.add ServerAddresses * $INTERNAL_IP4_DNS $INTERNAL_IP6_DNS + set State:/Network/Service/$TUNDEV/DNS + d.init + # next line overrides the default gateway and breaks split routing +@@ -598,7 +598,7 @@ + fi + i=`expr $i + 1` + done +- for i in $INTERNAL_IP4_DNS ; do ++ for i in $INTERNAL_IP6_DNS ; do + if echo "$i" | grep : >/dev/null; then + set_ipv6_network_route "$i" "128" + fi |
