aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dnscrypt-wrapper.rb
diff options
context:
space:
mode:
authorYecheng Fu2015-01-05 23:35:25 +0800
committerMike McQuaid2015-01-05 16:22:01 +0000
commite1eb6ba8311be6cee08cf51d5116bd4083ea8332 (patch)
tree99d4a4b29e02575d7e2331143624bcceb3ac30e5 /Library/Formula/dnscrypt-wrapper.rb
parentb07847607480e478565f4e7616252c6611cc4354 (diff)
downloadhomebrew-e1eb6ba8311be6cee08cf51d5116bd4083ea8332.tar.bz2
dnscrypt-wrapper 0.1.15 (new formula)
Closes #35568.
Diffstat (limited to 'Library/Formula/dnscrypt-wrapper.rb')
-rw-r--r--Library/Formula/dnscrypt-wrapper.rb23
1 files changed, 23 insertions, 0 deletions
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