]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Auth GeoIP backend
authorFred Morcos <fred.morcos@open-xchange.com>
Mon, 24 Jul 2023 09:27:12 +0000 (11:27 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:30 +0000 (13:28 +0100)
meson.build
meson/geoip/meson.build [new file with mode: 0644]
meson_options.txt

index 3baeb15618c5bd18d04b9941180905f35274a02b..6bb2590871e7e12b6b4732172950b80d01ddc34a 100644 (file)
@@ -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 (file)
index 0000000..0822650
--- /dev/null
@@ -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')
index e501ed34f32c55d56e27b1ca25dfafd766c2971a..74c4d9bffb16a3d567a581f0e0d5d2e41ca9eeae 100644 (file)
@@ -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')