2014-11-03 21:28:04 +00:00
|
|
|
class Gdnsd < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Authoritative-only DNS server"
|
2014-11-03 21:28:04 +00:00
|
|
|
homepage "http://gdnsd.org/"
|
2015-09-19 23:43:59 +00:00
|
|
|
url "https://github.com/gdnsd/gdnsd/releases/download/v2.2.1/gdnsd-2.2.1.tar.xz"
|
|
|
|
sha256 "dd78ff355704b2da9dd064efb0cb78b16b58020843d07dc0403684b2afe2d4c0"
|
2014-11-03 21:28:04 +00:00
|
|
|
|
2014-11-10 19:25:23 +00:00
|
|
|
bottle do
|
2015-09-20 09:51:36 +00:00
|
|
|
sha256 "2e07ada030282cd7a8b28640fc7deceaad15edd378516fafc8487a0a99c958a3" => :el_capitan
|
|
|
|
sha256 "c8b85594959295e68360b588463d78a83dc71bda6fed83b48891dac40d66fbb8" => :yosemite
|
|
|
|
sha256 "6fc53b0eb48f03d7480e99db211df0d0c32aba347d695c61e403ab5581db31a0" => :mavericks
|
2014-11-10 19:25:23 +00:00
|
|
|
end
|
|
|
|
|
2014-11-03 21:28:04 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/gdnsd/gdnsd.git"
|
2014-12-04 17:01:21 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2014-11-03 21:28:04 +00:00
|
|
|
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
|