blob: 960d61f71fdbbb89061fd8226847162386ec41a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
|