homebrew-core/Formula/gdnsd.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

41 lines
1.3 KiB
Ruby

class Gdnsd < Formula
desc "Authoritative-only DNS server"
homepage "http://gdnsd.org/"
url "https://github.com/gdnsd/gdnsd/releases/download/v2.2.0/gdnsd-2.2.0.tar.xz"
sha256 "6f245be97351dbe0f437f1edb2324f2a331869f0f028918ffbd627f0ae911180"
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