From e1eb6ba8311be6cee08cf51d5116bd4083ea8332 Mon Sep 17 00:00:00 2001 From: Yecheng Fu Date: Mon, 5 Jan 2015 23:35:25 +0800 Subject: dnscrypt-wrapper 0.1.15 (new formula) Closes #35568. --- Library/Formula/dnscrypt-wrapper.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Library/Formula/dnscrypt-wrapper.rb (limited to 'Library/Formula/dnscrypt-wrapper.rb') diff --git a/Library/Formula/dnscrypt-wrapper.rb b/Library/Formula/dnscrypt-wrapper.rb new file mode 100644 index 000000000..0e1c41929 --- /dev/null +++ b/Library/Formula/dnscrypt-wrapper.rb @@ -0,0 +1,23 @@ +class DnscryptWrapper < Formula + homepage "http://cofyc.github.io/dnscrypt-wrapper/" + url "https://github.com/Cofyc/dnscrypt-wrapper/releases/download/v0.1.15/dnscrypt-wrapper-v0.1.15.tar.bz2" + sha256 "d486f3f923c6809c830e9db39290b0f44b1683f63f8bd3aeaa6225c64af232c1" + head "https://github.com/Cofyc/dnscrypt-wrapper.git" + + 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 "#{bin}/dnscrypt-wrapper", "--gen-provider-keypair" + system "#{bin}/dnscrypt-wrapper", "--gen-crypt-keypair" + end +end -- cgit v1.2.3