homebrew-core/Formula/dnscrypt-wrapper.rb

40 lines
1.9 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"
license "ISC"
revision 1
head "https://github.com/Cofyc/dnscrypt-wrapper.git", branch: "master"
bottle do
sha256 cellar: :any, ventura: "61e6dfcf7a47b5eef4fb86464e366c3bba8b6f04cb9505342115862e5b29480b"
sha256 cellar: :any, monterey: "95c31e73ffe3e10426f4859731e62d1c29bd1d8454bdc4b822828e5cf5f57ba8"
sha256 cellar: :any, big_sur: "6a4ce514c0ec1c41cf197b6201cba95ded39f0e7018755ec1bf42824aa8675d6"
sha256 cellar: :any, catalina: "ea344feb10cc87d14e8b30cd3fcbbabed2b55f5c76014fcdc18aff49cb9fc5cd"
sha256 cellar: :any, mojave: "129be9e2c08af0351401437f09a950f0d4050e99cce47da220561a3153d5334d"
sha256 cellar: :any, high_sierra: "226bbce3fbcc39a1619bfd77451c6e0cf0d0054b61696acc2617e4f30580e69b"
sha256 cellar: :any, sierra: "92da097e90b1cd593efb8d0d1a16c24dd016aa93933a3036be671b5596c6af0d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "9100b272b791ea13c1909e604aa3adf0fab649c86bdb5775e870462c276bb7ac"
end
depends_on "autoconf" => :build
depends_on arch: :x86_64 # https://github.com/cofyc/dnscrypt-wrapper/issues/177
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