]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
meson: do not download effective_tld_names.dat if already existing. 15724/head
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 25 Jun 2025 13:17:55 +0000 (15:17 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 25 Jun 2025 13:17:55 +0000 (15:17 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/recursordist/meson.build

index b81584dd6182bb8500fcfd0138186c86db59b05b..5f7c670799dba23d4e6521a716bf1a406c55a0ba 100644 (file)
@@ -354,12 +354,14 @@ librec_signers_openssl = declare_dependency(
 pubsuffix_dl_source =  'effective_tld_names.dat'
 pubsuffix_cc = src_dir / 'pubsuffix.cc'
 if not fs.is_file(pubsuffix_cc)
-  curl_command = find_program('curl', required: true)
-  pubsuffix_dl_source = custom_target(
-    'pubsuffix-dl',
-    command: [curl_command, '-s', '-S', '-o', '@OUTPUT@', 'https://publicsuffix.org/list/public_suffix_list.dat'],
-    output: pubsuffix_dl_source
-  )
+  if not fs.is_file(pubsuffix_dl_source)
+    curl_command = find_program('curl', required: true)
+    pubsuffix_dl_source = custom_target(
+      'pubsuffix-dl',
+      command: [curl_command, '-s', '-S', '-o', '@OUTPUT@', 'https://publicsuffix.org/list/public_suffix_list.dat'],
+      output: pubsuffix_dl_source
+    )
+  endif
 
   mkpubsuffix_command = find_program('mkpubsuffixcc', required: true)
   pubsuffix_cc = custom_target(