diff options
Diffstat (limited to 'src/rpm/meson.build')
-rw-r--r-- | src/rpm/meson.build | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/rpm/meson.build b/src/rpm/meson.build index fc72fee73c..2ad3308cc1 100644 --- a/src/rpm/meson.build +++ b/src/rpm/meson.build @@ -1,9 +1,13 @@ # SPDX-License-Identifier: LGPL-2.1-or-later in_files = [ - ['macros.systemd', rpmmacrosdir != 'no'], - ['triggers.systemd', false], - ['triggers.systemd.sh', false]] + ['macros.systemd', rpmmacrosdir != 'no', rpmmacrosdir], + + # we conditionalize on rpmmacrosdir, but install into rootlibexecdir + ['systemd-update-helper', rpmmacrosdir != 'no', rootlibexecdir, 'rwxr-xr-x'], + + ['triggers.systemd', false], + ['triggers.systemd.sh', false]] # The last two don't get installed anywhere, one of them needs to included in # the rpm spec file definition instead. @@ -17,6 +21,7 @@ foreach tuple : in_files command : [meson_render_jinja2, config_h, '@INPUT@'], capture : true, install : tuple[1], - install_dir : rpmmacrosdir, + install_dir : tuple.length() > 2 ? tuple[2] : '', + install_mode : tuple.length() > 3 ? tuple[3] : false, build_by_default : true) endforeach |