]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Install named-compilezone
authorMichał Kępień <michal@isc.org>
Sat, 21 Jun 2025 03:59:51 +0000 (05:59 +0200)
committerMichał Kępień <michal@isc.org>
Sat, 21 Jun 2025 03:59:51 +0000 (05:59 +0200)
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

index 9ac66a1e9261a37d75d1171a9fba245191a383ae..49989944df9eba6cf1523ad14b8d26835cde6a01 100644 (file)
@@ -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,