blob: 307856dd81ac48ba274125af8bfcca6ca6014232 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 | class Gdnsd < Formula
  homepage "http://gdnsd.org/"
  url "https://github.com/gdnsd/gdnsd/releases/download/v2.2.0/gdnsd-2.2.0.tar.xz"
  sha1 "5546b68296d7bbca3c9ca9308589fd224ba3e2a1"
  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
 |