[Buildroot] [git commit branch/2022.05.x] package/bind: add libmaxminddb optional dependency

Peter Korsgaard peter at korsgaard.com
Thu Aug 11 17:32:22 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=0dbc290484b7995ec562210dc922d2a35fd8cd0e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.05.x

Add libmaxminddb optional dependency (which is enabled by default), two
options must be used to enable/disable this dependency:
 [pairwise: --enable-geoip --with-maxminddb=auto, --enable-geoip --with-maxminddb=yes, --disable-geoip]

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 25eea4424f12f7cb1f7da04f802478f503b0ae19)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/bind/bind.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/bind/bind.mk b/package/bind/bind.mk
index c84abe91a0..1646fc6237 100644
--- a/package/bind/bind.mk
+++ b/package/bind/bind.mk
@@ -61,6 +61,13 @@ else
 BIND_CONF_OPTS += --with-gssapi=no
 endif
 
+ifeq ($(BR2_PACKAGE_LIBMAXMINDDB),y)
+BIND_CONF_OPTS += --enable-geoip --with-maxminddb
+BIND_DEPENDENCIES += libmaxminddb
+else
+BIND_CONF_OPTS += --disable-geoip
+endif
+
 ifeq ($(BR2_PACKAGE_LIBXML2),y)
 BIND_CONF_OPTS += --with-libxml2
 BIND_DEPENDENCIES += libxml2



More information about the buildroot mailing list