2014-11-26 04:04:56 +00:00
|
|
|
class ChinadnsC < Formula
|
|
|
|
homepage "https://github.com/clowwindy/ChinaDNS-C"
|
2015-03-03 17:03:19 +00:00
|
|
|
url "https://github.com/clowwindy/ChinaDNS/releases/download/1.3.0/chinadns-1.3.0.tar.gz"
|
|
|
|
sha1 "0877eed8bb385ca72cede3b3fca35f5d5e40e999"
|
2014-11-26 04:04:56 +00:00
|
|
|
|
2014-11-26 10:06:19 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-01-12 07:40:39 +00:00
|
|
|
sha1 "0dbcdbbc318f54e3b5a9c848bb02c53cf170ddd4" => :yosemite
|
|
|
|
sha1 "e069b91a3284bb1305542dc8be0205a5804499bb" => :mavericks
|
|
|
|
sha1 "aa418b88cf95d41948bcecaaf6a007c6b32d0551" => :mountain_lion
|
2014-11-26 10:06:19 +00:00
|
|
|
end
|
|
|
|
|
2014-11-26 04:04:56 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "chinadns", "-h"
|
|
|
|
end
|
|
|
|
end
|