From d57b3d08e9e2d2266b33939fbf40037de3a58393 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Mon, 3 Nov 2014 13:28:04 -0800 Subject: gdnsd 2.1.0 (new formula) Closes #33881. Signed-off-by: Mike McQuaid --- Library/Formula/gdnsd.rb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Library/Formula/gdnsd.rb (limited to 'Library/Formula') diff --git a/Library/Formula/gdnsd.rb b/Library/Formula/gdnsd.rb new file mode 100644 index 000000000..8df31517d --- /dev/null +++ b/Library/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 -- cgit v1.2.3