From ebd8074988507c22568f07dd464d1519ba0513d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Sat, 21 Jun 2025 05:59:51 +0200 Subject: [PATCH] Install named-compilezone named-compilezone is an alias for named-checkzone: the two tools are built from the same set of source files, but they behave differently depending on which executable gets invoked. With Automake, named-compilezone was installed as a hard link to named-checkzone using a custom installation hook; try to keep things simple with Meson by using the install_symlink() method, which makes named-compilezone a symbolic link to named-checkzone and is the same thing that is already used for ddns-confgen/tsig-keygen. --- meson.build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meson.build b/meson.build index 9ac66a1e92..49989944df 100644 --- a/meson.build +++ b/meson.build @@ -111,6 +111,7 @@ sphinx_build = find_program('sphinx-build', required: doc_opt) ### Install information prefix = get_option('prefix') +bindir = prefix / get_option('bindir') datadir = prefix / get_option('datadir') libdir = prefix / get_option('libdir') localstatedir = prefix / get_option('localstatedir') @@ -1333,6 +1334,12 @@ executable( ], ) +install_symlink( + 'named-compilezone', + pointing_to: 'named-checkzone', + install_dir: bindir, +) + executable( 'named-journalprint', named_journalprint_src,