homebrew-core/Formula/dnscrypt-wrapper.rb
Miguel Araújo 9d02e8c336 dnscrypt-wrapper: fix audit
dnscrypt-wrapper:
  * `revision` (line 7) should be put before `head` (line 6)
2017-02-12 16:19:06 +00:00

31 lines
1.1 KiB
Ruby

class DnscryptWrapper < Formula
desc "Server-side proxy that adds dnscrypt support to name resolvers"
homepage "https://cofyc.github.io/dnscrypt-wrapper/"
url "https://github.com/Cofyc/dnscrypt-wrapper/releases/download/v0.2.2/dnscrypt-wrapper-v0.2.2.tar.bz2"
sha256 "6fa0d2bea41a11c551d6b940bf4dffeaaa0e034fffd8c67828ee2093c1230fee"
revision 1
head "https://github.com/Cofyc/dnscrypt-wrapper.git"
bottle do
cellar :any
sha256 "268ac696b183becf2ad001f937a3e9600f1c5f20c89585fac6c21bf83ab509d0" => :sierra
sha256 "ef4e5a23248e73f8a1b06e6704e5b6fbd3f7720dd55b2a64394eb29ea41a9b12" => :el_capitan
sha256 "7665c7555c22ad8faee36719e8b10535b064f1d16beda2501d8968ddfac95f00" => :yosemite
end
depends_on "autoconf" => :build
depends_on "libsodium"
depends_on "libevent"
def install
system "make", "configure"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
system "#{sbin}/dnscrypt-wrapper", "--gen-provider-keypair"
system "#{sbin}/dnscrypt-wrapper", "--gen-crypt-keypair"
end
end