From 80b109a55a23e698beb1df12389778ea3d40012a Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Mon, 3 Nov 2014 13:28:04 -0800 Subject: [PATCH] gdnsd 2.1.0 (new formula) Closes Homebrew/homebrew#33881. Signed-off-by: Mike McQuaid --- Formula/gdnsd.rb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Formula/gdnsd.rb diff --git a/Formula/gdnsd.rb b/Formula/gdnsd.rb new file mode 100644 index 0000000000..8df31517d0 --- /dev/null +++ b/Formula/gdnsd.rb @@ -0,0 +1,36 @@ +require "formula" + +class Gdnsd < Formula + homepage "http://gdnsd.org/" + url "https://github.com/gdnsd/gdnsd/releases/download/v2.1.0/gdnsd-2.1.0.tar.xz" + sha1 "138c7542005de457e756bf84fd7f727d690efe56" + + head do + url "https://github.com/gdnsd/gdnsd.git" + depends_on :autoconf + depends_on :automake + depends_on :libtool + 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