2014-11-26 04:04:56 +00:00
|
|
|
class ChinadnsC < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Port of ChinaDNS to C: fix irregularities with DNS in China"
|
2014-11-26 04:04:56 +00:00
|
|
|
homepage "https://github.com/clowwindy/ChinaDNS-C"
|
2015-08-09 20:56:55 +00:00
|
|
|
url "https://github.com/clowwindy/ChinaDNS/releases/download/1.3.2/chinadns-1.3.2.tar.gz"
|
|
|
|
sha256 "abfd433e98ac0f31b8a4bd725d369795181b0b6e8d1b29142f1bb3b73bbc7230"
|
2014-11-26 04:04:56 +00:00
|
|
|
|
2014-11-26 10:06:19 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-08-10 00:48:17 +00:00
|
|
|
sha256 "329351a4f82e4f871cbc2b384902b0c84040bd1df222970d67be7513bbead207" => :yosemite
|
|
|
|
sha256 "4266825a8ecbb6a84d459b41465fe9318a918b171880ac8ddfd8bdf3e37573d1" => :mavericks
|
|
|
|
sha256 "c994af6ca279fa06b42ca3a851d550a04d279b2337c06fb21e91a0fe42708036" => :mountain_lion
|
2014-11-26 10:06:19 +00:00
|
|
|
end
|
|
|
|
|
2015-08-09 20:56:55 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/clowwindy/ChinaDNS.git"
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
end
|
|
|
|
|
2014-11-26 04:04:56 +00:00
|
|
|
def install
|
2015-08-09 20:56:55 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2014-11-26 04:04:56 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "chinadns", "-h"
|
|
|
|
end
|
|
|
|
end
|