homebrew-core/Formula/dnscrypt-wrapper.rb
2018-12-14 21:38:40 -05:00

32 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/archive/v0.4.2.tar.gz"
sha256 "911856dc4e211f906ca798fcf84f5b62be7fdbf73c53e5715ce18d553814ac86"
head "https://github.com/Cofyc/dnscrypt-wrapper.git"
bottle do
cellar :any
sha256 "ae036441753501c0cee673228a38c0b54819f833c21ba82ed20f240eb741a27b" => :mojave
sha256 "ec1c02b9ad1cfe0fd1c4797a651dd258e8ef37d1e2cf4ff00b84c637c0f563c8" => :high_sierra
sha256 "6ff007984fdd69d9bee047dd1199176f79cd86be8593efcf861ef08b80cf32bd" => :sierra
end
depends_on "autoconf" => :build
depends_on "libevent"
depends_on "libsodium"
def install
system "make", "configure"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
system "#{sbin}/dnscrypt-wrapper", "--gen-provider-keypair",
"--provider-name=2.dnscrypt-cert.example.com",
"--ext-address=192.168.1.1"
system "#{sbin}/dnscrypt-wrapper", "--gen-crypt-keypair"
end
end