blob: 2594cd476598b39cc1707bf0235c4cc9fb3c6fbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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"
bottle do
cellar :any
sha1 "6275cdc455d328a0b1201c0b4dd6543487b42715" => :yosemite
sha1 "384d364ee11cfb150b8072d303de6a7ed72ba450" => :mavericks
sha1 "db2434e57e8deb88e066cc575ca1052076156eec" => :mountain_lion
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 "#{bin}/dnscrypt-wrapper", "--gen-provider-keypair"
system "#{bin}/dnscrypt-wrapper", "--gen-crypt-keypair"
end
end
|