2011-12-14 18:48:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class DnscryptProxy < Formula
|
2012-09-24 21:09:27 +00:00
|
|
|
homepage 'http://dnscrypt.org'
|
|
|
|
url 'https://github.com/downloads/opendns/dnscrypt-proxy/dnscrypt-proxy-1.1.0.tar.gz'
|
|
|
|
sha256 '73c1042f6ba68dedd89ab518c319f5e46b3536a3c49e697ef9ba504601b26c71'
|
2012-07-31 19:13:19 +00:00
|
|
|
|
2012-09-24 21:09:27 +00:00
|
|
|
head 'https://github.com/opendns/dnscrypt-proxy.git', :branch => 'master'
|
|
|
|
|
|
|
|
option "plugins", "Support plugins and install example plugins."
|
|
|
|
|
|
|
|
if build.head?
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
2011-12-14 18:48:01 +00:00
|
|
|
|
|
|
|
def install
|
2012-09-24 21:09:27 +00:00
|
|
|
system "autoreconf", "-if" if build.head?
|
|
|
|
|
|
|
|
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
|
|
|
|
if build.include? "plugins"
|
|
|
|
args << "--enable-plugins"
|
|
|
|
args << "--enable-relaxed-plugins-permissions"
|
|
|
|
args << "--enable-plugins-root"
|
|
|
|
end
|
|
|
|
system "./configure", *args
|
2011-12-14 18:48:01 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|