aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAnand Buddhdev2014-01-29 15:56:56 +0100
committerMike McQuaid2014-01-29 15:56:56 +0100
commiteecbe89a51c243da7f2e0145bccda3a69ef9f6d4 (patch)
treebeb777f216c735ab41dcf493c8c44a444f11fafb /Library
parent7fd7b40210fa1fd114b10e87d13c76922757f10b (diff)
downloadhomebrew-eecbe89a51c243da7f2e0145bccda3a69ef9f6d4.tar.bz2
nsd 4.0.1
Also add some options. Closes #25215. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/nsd.rb19
1 files changed, 16 insertions, 3 deletions
diff --git a/Library/Formula/nsd.rb b/Library/Formula/nsd.rb
index f3df55cf5..683827bfd 100644
--- a/Library/Formula/nsd.rb
+++ b/Library/Formula/nsd.rb
@@ -2,13 +2,26 @@ require 'formula'
class Nsd < Formula
homepage 'http://www.nlnetlabs.nl/projects/nsd/'
- url 'http://www.nlnetlabs.nl/downloads/nsd/nsd-4.0.0.tar.gz'
- sha1 'b3ebd669be8e830f62062d12be55242ca41da369'
+ url 'http://www.nlnetlabs.nl/downloads/nsd/nsd-4.0.1.tar.gz'
+ sha1 '788cc290ade7fc6a61fe4391837d3abddbda4df0'
+
+ option 'with-root-server', 'Allow NSD to run as a root name server'
+ option 'with-bind8-stats', 'Enable BIND8-like NSTATS & XSTATS'
+ option 'with-ratelimit', 'Enable rate limiting'
depends_on 'libevent'
def install
- system "./configure", "--prefix=#{prefix}"
+ args = %W[
+ --prefix=#{prefix}
+ --with-libevent=#{Formula.factory('libevent').opt_prefix}
+ ]
+
+ args << '--enable-root-server' if build.with? 'root-server'
+ args << '--enable-bind8-stats' if build.with? 'bind8-stats'
+ args << '--enable-ratelimit' if build.with? 'ratelimit'
+
+ system "./configure", *args
system "make install"
end
end