From: Fred Morcos Date: Mon, 24 Jul 2023 09:27:12 +0000 (+0200) Subject: Meson: Auth GeoIP backend X-Git-Tag: rec-5.1.0-alpha1~80^2~326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47fc7a816170d37617b0a454012431e3ace5cbfb;p=thirdparty%2Fpdns.git Meson: Auth GeoIP backend --- diff --git a/meson.build b/meson.build index 3baeb15618..6bb2590871 100644 --- a/meson.build +++ b/meson.build @@ -122,6 +122,7 @@ all_modules = [ ['ldap', 'ldap'], ['remote', 'curl'], ['tinydns', 'cdb'], + ['geoip', 'geoip'], ] selected_modules = [] foreach module: all_modules diff --git a/meson/geoip/meson.build b/meson/geoip/meson.build new file mode 100644 index 0000000000..0822650b5e --- /dev/null +++ b/meson/geoip/meson.build @@ -0,0 +1,11 @@ +# GeoIP +# Outputs: deps_geoip + +deps_geoip = [] +deps_geoip += dependency('geoip', required: true) +deps_geoip += dependency('libmaxminddb', required: true) +deps_geoip += dependency('yaml-cpp', version: '>= 0.5', required: true) + +conf.set10('HAVE_GEOIP', deps_geoip[0].found(), description: 'Whether we have GeoIP') +conf.set10('HAVE_MMDB', deps_geoip[1].found(), description: 'Whether we have MaxMindDB') +summary('GeoIP', deps_geoip[0].found(), bool_yn: true, section: 'Configuration') diff --git a/meson_options.txt b/meson_options.txt index e501ed34f3..74c4d9bffb 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -31,3 +31,5 @@ option('module-remote', type: 'boolean', value: false, description: 'Build the r option('module-remote-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable remote backend') option('module-tinydns', type: 'boolean', value: false, description: 'Build the tinyDNS backend') option('module-tinydns-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable tinyDNS backend') +option('module-geoip', type: 'boolean', value: false, description: 'Build the GeoIP backend') +option('module-geoip-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable GeoIP backend')