aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gdnsd.rb36
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/Formula/gdnsd.rb b/Library/Formula/gdnsd.rb
new file mode 100644
index 000000000..8df31517d
--- /dev/null
+++ b/Library/Formula/gdnsd.rb
@@ -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