31 lines
1.1 KiB
Ruby
31 lines
1.1 KiB
Ruby
class Torsocks < Formula
|
|
desc "Use SOCKS-friendly applications with Tor"
|
|
homepage "https://gitweb.torproject.org/torsocks.git/"
|
|
url "https://git.torproject.org/torsocks.git",
|
|
:tag => "v2.2.0",
|
|
:revision => "e54d80bc9595beeceac637b03e5c5395c07e62f7"
|
|
head "https://git.torproject.org/torsocks.git"
|
|
|
|
bottle do
|
|
sha256 "8ab3874d27a0f2e343b2fe19e596ce369d571055b6aae6cbcf5cf33609731262" => :high_sierra
|
|
sha256 "aa753c8002d5dbd78aa75b5bfd284646dd724a65f4896cb3f902b1c7283fd96a" => :sierra
|
|
sha256 "3b978df65102580b8817d6d92e517ecd3a9f7086970c10af279a8d57fea60cae" => :el_capitan
|
|
sha256 "7f1fd0440c3775776bddcb55f153108d0715a3ac9ee8a6a13798d168fbd71e41" => :yosemite
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
|
|
def install
|
|
system "./autogen.sh"
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/torsocks", "--help"
|
|
end
|
|
end
|