dnscrypt-proxy: modernize and add test
This commit is contained in:
parent
24068ae62a
commit
16dce1a70c
1 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,3 @@
|
|||
require "formula"
|
||||
|
||||
class DnscryptProxy < Formula
|
||||
homepage "http://dnscrypt.org"
|
||||
url "https://github.com/jedisct1/dnscrypt-proxy/releases/download/1.4.2/dnscrypt-proxy-1.4.2.tar.bz2"
|
||||
|
@ -20,7 +18,8 @@ class DnscryptProxy < Formula
|
|||
depends_on "libtool" => :build
|
||||
end
|
||||
|
||||
option "plugins", "Support plugins and install example plugins."
|
||||
option "with-plugins", "Support plugins and install example plugins."
|
||||
deprecated_option "plugins" => "with-plugins"
|
||||
|
||||
depends_on "libsodium"
|
||||
|
||||
|
@ -28,7 +27,7 @@ class DnscryptProxy < Formula
|
|||
system "autoreconf", "-if" if build.head?
|
||||
|
||||
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
|
||||
if build.include? "plugins"
|
||||
if build.with? "plugins"
|
||||
args << "--enable-plugins"
|
||||
args << "--enable-relaxed-plugins-permissions"
|
||||
args << "--enable-plugins-root"
|
||||
|
@ -94,4 +93,8 @@ class DnscryptProxy < Formula
|
|||
</plist>
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/hostip", "-r", "8.8.8.8", "www.google.com"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue