blob: 1d6f8c0713f70753c30c2c6a73caf93761e35d31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require 'formula'
class Dsocks < Formula
homepage 'http://monkey.org/~dugsong/dsocks/'
url 'http://dsocks.googlecode.com/files/dsocks-1.8.tar.gz'
sha1 'd9d58e0ed6ca766841c94b5d15dd268a967c60bc'
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
|