blob: dd1aa11c151def810ae590bd3dad21af97e2154e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  | 
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
  |