aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/torsocks.rb
blob: 6359b5a1425eb297b28ad3805b6f562946d4bd70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class Torsocks < Formula
  url 'http://torsocks.googlecode.com/files/torsocks-1.2.tar.gz'
  homepage 'http://code.google.com/p/torsocks/'
  md5 '9bdc8786951e7eec6915433f324f22a4'
  head 'git://git.torproject.org/git/torsocks.git'

  depends_on 'tor'

  def install
    system "./autogen.sh" if ARGV.build_head?
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end