2014-11-03 21:28:04 +00:00
|
|
|
class Gdnsd < Formula
|
|
|
|
homepage "http://gdnsd.org/"
|
2015-01-11 17:42:10 +00:00
|
|
|
url "https://github.com/gdnsd/gdnsd/releases/download/v2.2.0/gdnsd-2.2.0.tar.xz"
|
|
|
|
sha1 "5546b68296d7bbca3c9ca9308589fd224ba3e2a1"
|
2014-11-03 21:28:04 +00:00
|
|
|
|
2014-11-10 19:25:23 +00:00
|
|
|
bottle do
|
2015-01-12 06:08:55 +00:00
|
|
|
sha1 "417699f0b71b184131db79fd6e466c0f80d90a55" => :yosemite
|
|
|
|
sha1 "40f29aa1659183526ef70f229d842d928a3f3d19" => :mavericks
|
|
|
|
sha1 "90600419a4ef662adb4c9d05c65bd8cabf953e32" => :mountain_lion
|
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
|