blob: d998cd54d298f518a2a0e1a469033c2b66b39cc9 (
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/'
sha1 '7be86578e525312008e36c0c5800fefee0ea481a'
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
|