aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tinc.rb
diff options
context:
space:
mode:
authorDominyk Tiller2014-09-28 19:29:38 +0100
committerJack Nagel2014-09-28 17:34:58 -0500
commit816bc55c50bc18e77a7987f104aced766f19c293 (patch)
tree2e1ff5bda5e9243ff41a0f7037bf1fb35cf40bdc /Library/Formula/tinc.rb
parent50fb443a68e7325871c0fdbdbd0d61ea15eb1654 (diff)
downloadhomebrew-816bc55c50bc18e77a7987f104aced766f19c293.tar.bz2
Tinc Devel & OpenSSL Dep
We’ve been tapping the system OpenSSL for Tinc, this fixes that, and I’ve thrown the devel link in as well. Please don’t merge till #32755 goes in. Closes #32759. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/tinc.rb')
-rw-r--r--Library/Formula/tinc.rb24
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