aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalle Dybedahl2013-12-14 14:40:31 +0100
committerAdam Vandenberg2013-12-14 10:07:10 -0800
commit71cba833abc3491edb4fcee5fa1a4c81fe7c6a49 (patch)
tree107f5c6fafd6b26d6e524d3184766f45fed52cbc
parent262c8f41073de72df547c6556ef37c6240b4ef3b (diff)
downloadhomebrew-71cba833abc3491edb4fcee5fa1a4c81fe7c6a49.tar.bz2
ldns: add option to install with GOST support
By default, ldns is installed without support for the GOST family of crypto algorithms, since that support requires a newer version of OpenSSL than that included with OSX. This commit adds an option to the recipe that turns on GOST support and adds a dependency on Homebrew-provided OpenSSL. Closes #25207. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/ldns.rb15
1 files changed, 12 insertions, 3 deletions
diff --git a/Library/Formula/ldns.rb b/Library/Formula/ldns.rb
index e7504cb80..87da1ea17 100644
--- a/Library/Formula/ldns.rb
+++ b/Library/Formula/ldns.rb
@@ -5,18 +5,27 @@ class Ldns < Formula
url 'http://nlnetlabs.nl/downloads/ldns/ldns-1.6.16.tar.gz'
sha1 '5b4fc6c5c3078cd061905c47178478cb1015c62a'
+ option 'with-gost', 'Compile ldns with support for GOST algorithms in DNSSEC'
+
depends_on :python => :optional
depends_on 'swig' if build.with? 'python'
+ # gost requires OpenSSL >= 1.0.0
+ depends_on 'openssl' if build.with? 'gost'
+
def install
- # gost requires OpenSSL >= 1.0.0
args = %W[
--prefix=#{prefix}
- --disable-gost
--with-drill
- --with-ssl=#{MacOS.sdk_path}/usr
]
+ if build.with? 'gost'
+ args << "--with-ssl=#{HOMEBREW_PREFIX}/opt/openssl"
+ else
+ args << "--disable-gost"
+ args << "--with-ssl=#{MacOS.sdk_path}/usr"
+ end
+
if build.with? 'python'
args << "--with-pyldns"
ENV['PYTHON_SITE_PKG'] = python.site_packages