d1ad28272a
Closes Homebrew/homebrew#30360. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
28 lines
943 B
Ruby
28 lines
943 B
Ruby
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'
|
|
|
|
bottle do
|
|
sha1 "a03cb29d4ab3a2d50ded6eda6be9d0da12d0e9d2" => :mavericks
|
|
sha1 "d86df6150577c443038ac8bef39596980b454158" => :mountain_lion
|
|
sha1 "5f2a5edf56d757ad53f9ca02ee7bf51051da3805" => :lion
|
|
end
|
|
|
|
depends_on 'lzo'
|
|
|
|
def install
|
|
# Tinc does not automatically link against libresolv on Mac OS X.
|
|
# A fix has been already merged upstream. When updating this 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'
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|