class Gdnsd < Formula homepage "http://gdnsd.org/" url "https://github.com/gdnsd/gdnsd/releases/download/v2.2.0/gdnsd-2.2.0.tar.xz" sha1 "5546b68296d7bbca3c9ca9308589fd224ba3e2a1" bottle do sha1 "417699f0b71b184131db79fd6e466c0f80d90a55" => :yosemite sha1 "40f29aa1659183526ef70f229d842d928a3f3d19" => :mavericks sha1 "90600419a4ef662adb4c9d05c65bd8cabf953e32" => :mountain_lion end head do url "https://github.com/gdnsd/gdnsd.git" depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build end depends_on "libev" depends_on "ragel" depends_on "libunwind-headers" => :recommended def install system "autoreconf", "-fvi" if build.head? system "./configure", "--disable-debug", "--disable-dependency-tracking", "--disable-silent-rules", "--prefix=#{prefix}", "--with-rundir=#{var}/run", "--localstatedir=#{var}", "--sysconfdir=#{etc}", "--without-urcu" system "make", "install" end test do (testpath/"config").write("options => { listen => [ 127.0.0.1 ] }") system "#{sbin}/gdnsd", "-c", testpath, "checkconf" end end