diff options
| author | Nick Lopez | 2014-07-29 00:35:59 -0400 |
|---|---|---|
| committer | Mike McQuaid | 2014-07-29 10:16:44 +0200 |
| commit | 9855abb7fb927e4770458b8f1bce448680e31403 (patch) | |
| tree | 4cdd212736af3468c423085493f201ef734fc750 /Library | |
| parent | 881c2315077b5bcd15b67240d9daa2673c698b8e (diff) | |
| download | homebrew-9855abb7fb927e4770458b8f1bce448680e31403.tar.bz2 | |
dnsmasq: add optional DNSSEC support.
Closes #31204
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/dnsmasq.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/dnsmasq.rb b/Library/Formula/dnsmasq.rb index d5f078a70..0082f7a64 100644 --- a/Library/Formula/dnsmasq.rb +++ b/Library/Formula/dnsmasq.rb @@ -12,8 +12,10 @@ class Dnsmasq < Formula end option 'with-idn', 'Compile with IDN support' + option 'with-dnssec', 'Compile with DNSSEC support' depends_on "libidn" if build.with? "idn" + depends_on "nettle" if build.with? "dnssec" depends_on 'pkg-config' => :build def install @@ -27,6 +29,11 @@ class Dnsmasq < Formula inreplace "src/config.h", "/* #define HAVE_IDN */", "#define HAVE_IDN" end + # Optional DNSSEC support + if build.with? "dnssec" + inreplace "src/config.h", "/* #define HAVE_DNSSEC */", "#define HAVE_DNSSEC" + end + # Fix compilation on Lion ENV.append_to_cflags "-D__APPLE_USE_RFC_3542" if MacOS.version >= :lion inreplace "Makefile" do |s| |
