dnsdist: make net-snmp support optional
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 22 Apr 2021 15:57:25 +0000 (17:57 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 28 May 2021 21:24:11 +0000 (23:24 +0200)
Signed-off-by: Peter van Dijk <peter.van.dijk@powerdns.com>
net/dnsdist/Makefile

index b0d8f3c502425e361f7a02f456b587910a5cae30..353b0d6fcaef769a7f18a29f5f222270aaded079 100644 (file)
@@ -62,6 +62,12 @@ menu "Configuration"
                help
                        "Enabled DNS over TLS Support for dnsdist"
                default y
+
+       config DNSDIST_NET_SNMP
+               bool "Net-SNMP support"
+               help
+                       "Enable Net-SNMP support for dnsdist"
+               default y
 endmenu
 endef
 
@@ -74,11 +80,11 @@ define Package/dnsdist
          +DNSDIST_DNS_OVER_HTTPS:libh2o-evloop \
          +DNSDIST_GNUTLS:libgnutls \
          +DNSDIST_OPENSSL:libopenssl \
+         +DNSDIST_NET_SNMP:libnetsnmp \
          +libatomic \
          +libcap \
          +libedit \
          +libfstrm \
-         +libnetsnmp \
          +libsodium \
          +lmdb \
          +re2 \
@@ -110,7 +116,7 @@ CONFIGURE_ARGS+= \
        --with-pic \
        --with-re2 \
        --with-lua=lua \
-       --with-net-snmp \
+       $(if $(CONFIG_DNSDIST_NET_SNMP),--with,--without)-net-snmp \
        $(if $(CONFIG_DNSDIST_GNUTLS),--with,--without)-gnutls \
        $(if $(CONFIG_DNSDIST_OPENSSL),--with,--without)-libssl \
        $(if $(CONFIG_DNSDIST_DNS_OVER_TLS),--enable-dns-over-tls,) \