40a79239bf
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
29 lines
825 B
Ruby
29 lines
825 B
Ruby
require 'formula'
|
|
|
|
class DnscryptProxy < Formula
|
|
homepage 'http://dnscrypt.org'
|
|
url 'https://github.com/downloads/opendns/dnscrypt-proxy/dnscrypt-proxy-1.2.0.tar.gz'
|
|
sha256 '02ae6360887995d73d4c02ea7fa0cc8cad4a4de61f89c2fd68674a65f427b333'
|
|
|
|
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 "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
|