gdnsd 2.1.0 (new formula)

Closes Homebrew/homebrew#33881.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Ori Livneh 2014-11-03 13:28:04 -08:00 committed by Mike McQuaid
parent e9c2d07226
commit 80b109a55a

36
Formula/gdnsd.rb Normal file
View file

@ -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