Created
December 14, 2011 08:48
-
-
Save alvin2ye/1475782 to your computer and use it in GitHub Desktop.
proxychains_formula
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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