homebrew-core/Formula/dsocks.rb
Vincent Beffara 7e7c9e8b7c New Formula: dsocks
Closes Homebrew/homebrew#8049.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-10-11 10:08:29 -07:00

15 lines
430 B
Ruby

require 'formula'
class Dsocks < Formula
url 'http://dsocks.googlecode.com/files/dsocks-1.7.tar.gz'
homepage 'http://monkey.org/~dugsong/dsocks/'
md5 'b2c87206e3f526bdab8e990a0168ab6c'
def install
system "#{ENV.cc} #{ENV.cflags} -shared -o libdsocks.dylib dsocks.c atomicio.c -lresolv"
inreplace "dsocks.sh", "/usr/local", HOMEBREW_PREFIX
lib.install "libdsocks.dylib"
bin.install "dsocks.sh"
end
end