aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dsocks.rb
diff options
context:
space:
mode:
authorVincent Beffara2011-10-06 14:48:53 +0200
committerCharlie Sharpsteen2011-10-11 10:08:29 -0700
commit9db076f2a125233cafab2803e0bec7c146856b29 (patch)
tree6cb5507f238f069726257c981f5a9957b23eda45 /Library/Formula/dsocks.rb
parent66e3aba5d37cdb759c7fcaf3fbef7e44b98c04ea (diff)
downloadhomebrew-9db076f2a125233cafab2803e0bec7c146856b29.tar.bz2
New Formula: dsocks
Closes #8049. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula/dsocks.rb')
-rw-r--r--Library/Formula/dsocks.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/dsocks.rb b/Library/Formula/dsocks.rb
new file mode 100644
index 000000000..960d61f71
--- /dev/null
+++ b/Library/Formula/dsocks.rb
@@ -0,0 +1,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