homebrew-core/Formula/proxychains-ng.rb

30 lines
838 B
Ruby
Raw Normal View History

2014-09-02 14:32:57 +00:00
require "formula"
class ProxychainsNg < Formula
2014-09-02 14:32:57 +00:00
homepage "https://sourceforge.net/projects/proxychains-ng"
url "https://downloads.sourceforge.net/project/proxychains-ng/proxychains-4.7.tar.bz2"
sha1 "5e5b10009f785434ebdbd7ede5a79efee4e59c5a"
2014-09-02 14:32:57 +00:00
head "https://github.com/rofl0r/proxychains-ng.git"
bottle do
sha1 "2dec4dda5f1ee8656133141ee50a0a1bcf616c7d" => :mavericks
sha1 "ff402165a6ad4edde426615ef64513f0bb3ce92a" => :mountain_lion
sha1 "5f26998480a6c040cf016f0c1521299c052c24b3" => :lion
end
2014-09-01 15:29:24 +00:00
option :universal
def install
2014-09-02 14:32:57 +00:00
args = ["--prefix=#{prefix}", "--sysconfdir=#{prefix}/etc"]
2014-09-01 15:29:24 +00:00
if build.universal?
ENV.universal_binary
2014-09-02 14:32:57 +00:00
args.unshift "--fat-binary"
2014-09-01 15:29:24 +00:00
end
system "./configure", *args
system "make"
2014-09-02 14:32:57 +00:00
system "make", "install"
system "make", "install-config"
end
end