aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorFrank Denis2012-09-24 23:09:27 +0200
committerAdam Vandenberg2012-09-25 08:20:02 -0700
commit0e1fe90e49b8827d2fbfd2c014d939fd3d434f87 (patch)
tree69b93f852c485ef980d6e048fa3b05225522ef3a /Library
parent34fb67df2f7e20ab966cfefba4f1a53931093434 (diff)
downloadhomebrew-0e1fe90e49b8827d2fbfd2c014d939fd3d434f87.tar.bz2
dnscrypt-proxy 1.1.0, -HEAD and plugins
Closes #15088. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/dnscrypt-proxy.rb25
1 files changed, 20 insertions, 5 deletions
diff --git a/Library/Formula/dnscrypt-proxy.rb b/Library/Formula/dnscrypt-proxy.rb
index 4e7df3a21..d69c98d21 100644
--- a/Library/Formula/dnscrypt-proxy.rb
+++ b/Library/Formula/dnscrypt-proxy.rb
@@ -1,14 +1,29 @@
require 'formula'
class DnscryptProxy < Formula
- homepage 'http://www.opendns.com/technology/dnscrypt'
- url 'https://github.com/downloads/opendns/dnscrypt-proxy/dnscrypt-proxy-1.0.1.tar.gz'
- sha256 '9852a8dcae200c9965697b29fdaffb8ee1dc8602420afdb8763811a7996d6a7f'
+ homepage 'http://dnscrypt.org'
+ url 'https://github.com/downloads/opendns/dnscrypt-proxy/dnscrypt-proxy-1.1.0.tar.gz'
+ sha256 '73c1042f6ba68dedd89ab518c319f5e46b3536a3c49e697ef9ba504601b26c71'
- head 'https://github.com/opendns/dnscrypt-proxy.git', :branch => '1.0.x'
+ 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
def install
- system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
+ 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
system "make install"
end
end