From: Miod Vallat Date: Wed, 25 Jun 2025 13:17:55 +0000 (+0200) Subject: meson: do not download effective_tld_names.dat if already existing. X-Git-Tag: dnsdist-2.1.0-alpha0~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a739383fc223506abea328e3bc73efec29890b5d;p=thirdparty%2Fpdns.git meson: do not download effective_tld_names.dat if already existing. Signed-off-by: Miod Vallat --- diff --git a/pdns/recursordist/meson.build b/pdns/recursordist/meson.build index b81584dd61..5f7c670799 100644 --- a/pdns/recursordist/meson.build +++ b/pdns/recursordist/meson.build @@ -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(