diff --git a/Formula/chinadns-c.rb b/Formula/chinadns-c.rb new file mode 100644 index 0000000000..40ab388634 --- /dev/null +++ b/Formula/chinadns-c.rb @@ -0,0 +1,16 @@ +require "formula" + +class ChinadnsC < Formula + homepage "https://github.com/clowwindy/ChinaDNS-C" + url "https://github.com/clowwindy/ChinaDNS-C/releases/download/1.1.8/chinadns-c-1.1.8.tar.gz" + sha1 "e712aab436e555a242f6c3c8acd7474b0b445bf1" + + def install + system "./configure", "--prefix=#{prefix}" + system "make", "install" + end + + test do + system "chinadns", "-h" + end +end