2010-08-09 09:18:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ldns < Formula
|
2010-08-09 09:18:48 +00:00
|
|
|
homepage 'http://nlnetlabs.nl/projects/ldns/'
|
2014-02-03 09:53:12 +00:00
|
|
|
url 'http://nlnetlabs.nl/downloads/ldns/ldns-1.6.17.tar.gz'
|
|
|
|
sha1 '4218897b3c002aadfc7280b3f40cda829e05c9a4'
|
2010-08-09 09:18:48 +00:00
|
|
|
|
2014-03-25 15:36:17 +00:00
|
|
|
bottle do
|
2014-05-02 16:23:15 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "e7c38081f1bfef2b0cc38284bc735f7021ea415c" => :mavericks
|
|
|
|
sha1 "6ebe8d12f028f61d06b65435741c948f3b5cdc6e" => :mountain_lion
|
|
|
|
sha1 "99a0c73caa2ef8289e06730b39d56da5fa886cc5" => :lion
|
2014-03-25 15:36:17 +00:00
|
|
|
end
|
|
|
|
|
2013-12-14 13:40:31 +00:00
|
|
|
option 'with-gost', 'Compile ldns with support for GOST algorithms in DNSSEC'
|
|
|
|
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python => :optional
|
|
|
|
depends_on 'swig' if build.with? 'python'
|
2012-01-22 21:42:17 +00:00
|
|
|
|
2013-12-14 13:40:31 +00:00
|
|
|
# gost requires OpenSSL >= 1.0.0
|
|
|
|
depends_on 'openssl' if build.with? 'gost'
|
|
|
|
|
2010-08-09 09:18:48 +00:00
|
|
|
def install
|
2012-06-19 03:16:43 +00:00
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--with-drill
|
|
|
|
]
|
2013-01-21 09:33:56 +00:00
|
|
|
|
2013-12-14 13:40:31 +00:00
|
|
|
if build.with? 'gost'
|
|
|
|
args << "--with-ssl=#{HOMEBREW_PREFIX}/opt/openssl"
|
|
|
|
else
|
|
|
|
args << "--disable-gost"
|
|
|
|
args << "--with-ssl=#{MacOS.sdk_path}/usr"
|
|
|
|
end
|
|
|
|
|
2014-01-04 13:07:59 +00:00
|
|
|
args << "--with-pyldns" if build.with? 'python'
|
2012-06-19 03:16:43 +00:00
|
|
|
|
2012-01-22 21:42:17 +00:00
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
2013-06-22 22:19:28 +00:00
|
|
|
system "make", "install-pyldns" if build.with? 'python'
|
2014-05-02 16:11:47 +00:00
|
|
|
(lib/"pkgconfig").install "packaging/libldns.pc"
|
2010-08-09 09:18:48 +00:00
|
|
|
end
|
|
|
|
end
|