2011-10-06 12:48:53 +00:00
|
|
|
class Dsocks < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "SOCKS client wrapper for *BSD/OS X"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://monkey.org/~dugsong/dsocks/"
|
|
|
|
url "https://dsocks.googlecode.com/files/dsocks-1.8.tar.gz"
|
|
|
|
sha256 "2b57fb487633f6d8b002f7fe1755480ae864c5e854e88b619329d9f51c980f1d"
|
2011-10-06 12:48:53 +00:00
|
|
|
|
2015-10-09 12:36:08 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "9b764e48bfe348433382d030a4aa00eefe1afa63b6bcfaab2450101bb429020e" => :el_capitan
|
|
|
|
sha256 "d537e7fe450742d499835b2ba76a94df1285162709b7d953530d5814a0f78019" => :yosemite
|
|
|
|
sha256 "419d972f1aba39997ec90a4c8e35c98ecfedbfb63506478e8b406ac04a01e5de" => :mavericks
|
|
|
|
end
|
|
|
|
|
2011-10-06 12:48:53 +00:00
|
|
|
def install
|
2015-10-05 13:17:18 +00:00
|
|
|
system ENV.cc, ENV.cflags, "-shared", "-o", "libdsocks.dylib", "dsocks.c", "atomicio.c", "-lresolv"
|
2011-10-06 12:48:53 +00:00
|
|
|
inreplace "dsocks.sh", "/usr/local", HOMEBREW_PREFIX
|
|
|
|
|
|
|
|
lib.install "libdsocks.dylib"
|
|
|
|
bin.install "dsocks.sh"
|
|
|
|
end
|
|
|
|
end
|