Skip to content

Instantly share code, notes, and snippets.

@alvin2ye
Created December 14, 2011 08:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alvin2ye/1475782 to your computer and use it in GitHub Desktop.
Save alvin2ye/1475782 to your computer and use it in GitHub Desktop.
proxychains_formula
# copy from https://github.com/lxneng/homebrew/commit/25da1bef5a9631315e078a5124c91ec785ff5efe#commitcomment-792526
# install
# curl -sL https://raw.github.com/gist/1475782/proxychains.rb > /usr/local/Library/Formula/proxychains.rb
# brew install proxychains
require 'formula'
class Proxychains < Formula
url 'http://pkgs.fedoraproject.org/repo/pkgs/proxychains/proxychains-3.1.tar.gz/4629c156001ab70aa7e98960eb513148/proxychains-3.1.tar.gz'
homepage 'http://proxychains.sourceforge.net/'
md5 '4629c156001ab70aa7e98960eb513148'
def patches
# use os x style dylib
{:p1 => "https://raw.github.com/ephesus/Proxychains-OS-X-Homebrew-patch/master/proxychains-3.1_osx.diff"}
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
inreplace "proxychains/libproxychains.c" do |s|
s.gsub!('/etc/proxychains.conf', "#{etc}/proxychains.conf")
end
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment