diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/tinc.rb | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/Library/Formula/tinc.rb b/Library/Formula/tinc.rb index dd1aa11c1..eb1d8604f 100644 --- a/Library/Formula/tinc.rb +++ b/Library/Formula/tinc.rb @@ -1,9 +1,10 @@ -require 'formula' +require "formula" class Tinc < Formula - homepage 'http://www.tinc-vpn.org' - url 'http://tinc-vpn.org/packages/tinc-1.0.24.tar.gz' - sha1 'e32f56b234922570a9a8a267b1143e2752133696' + homepage "http://www.tinc-vpn.org" + url "http://tinc-vpn.org/packages/tinc-1.0.24.tar.gz" + sha1 "e32f56b234922570a9a8a267b1143e2752133696" + revision 1 bottle do sha1 "a03cb29d4ab3a2d50ded6eda6be9d0da12d0e9d2" => :mavericks @@ -11,7 +12,13 @@ class Tinc < Formula sha1 "5f2a5edf56d757ad53f9ca02ee7bf51051da3805" => :lion end - depends_on 'lzo' + devel do + url "http://www.tinc-vpn.org/packages/tinc-1.1pre10.tar.gz" + sha1 "085dcb66858dfb2ddaa6c0082c2b22b18bc65a97" + end + + depends_on "lzo" + depends_on "openssl" def install # Tinc does not automatically link against libresolv on Mac OS X. @@ -19,10 +26,11 @@ class Tinc < Formula # make sure the following changes have been applied: # https://github.com/gsliepen/tinc/commit/241670ec23d05800e0a04957d6293de9a39075fb # and remove this comment in addition to the next line. - ENV.append 'LDFLAGS', '-lresolv' + ENV.append "LDFLAGS", "-lresolv" - system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}" + system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}", + "--with-openssl=#{Formula["openssl"].opt_prefix}" system "make" - system "make install" + system "make", "install" end end |
