From 655f9377c7aef0427091f1e1ed17cdb34213d06e Mon Sep 17 00:00:00 2001 From: Vyacheslav Yurkov Date: Fri, 16 Feb 2024 22:08:24 +0100 Subject: [PATCH] meson: Install DBus policy for the plugin interface Signed-off-by: Vyacheslav Yurkov --- data/de.pengutronix.rauc.InstallConfirmation.conf | 15 +++++++++++++++ data/meson.build | 6 ++++++ meson.build | 8 ++++++++ meson_options.txt | 5 +++++ 4 files changed, 34 insertions(+) create mode 100644 data/de.pengutronix.rauc.InstallConfirmation.conf create mode 100644 data/meson.build diff --git a/data/de.pengutronix.rauc.InstallConfirmation.conf b/data/de.pengutronix.rauc.InstallConfirmation.conf new file mode 100644 index 00000000..c8fadb88 --- /dev/null +++ b/data/de.pengutronix.rauc.InstallConfirmation.conf @@ -0,0 +1,15 @@ + + + + + + + + + + + + + diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 00000000..2259b93a --- /dev/null +++ b/data/meson.build @@ -0,0 +1,6 @@ +rauc_dbus_policy = configure_file( + input : 'de.pengutronix.rauc.InstallConfirmation.conf', + output : 'de.pengutronix.rauc.InstallConfirmation.conf', + copy : true +) +install_data(rauc_dbus_policy, install_dir : dbuspolicydir) diff --git a/meson.build b/meson.build index 029cb305..89ab165a 100644 --- a/meson.build +++ b/meson.build @@ -53,6 +53,13 @@ if systemddep.found() install_data('script/rauc-hawkbit-updater.service', install_dir : systemdsystemunitdir) endif +datadir = get_option('datadir') + +dbuspolicydir = get_option('dbuspolicydir') +if dbuspolicydir == '' + dbuspolicydir = datadir / 'dbus-1' / 'system.d' +endif + gnome = import('gnome') dbus = 'rauc-installer-gen' dbus_ifaces = files('src/rauc-installer.xml') @@ -98,6 +105,7 @@ if doxygen.found() ) endif +subdir('data') subdir('docs') executable('rauc-hawkbit-updater', diff --git a/meson_options.txt b/meson_options.txt index 43912e16..16f92dc3 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -21,3 +21,8 @@ option( type : 'string', value : '', description : 'Directory for systemd service files') +option( + 'dbuspolicydir', + type : 'string', + value : '', + description : 'D-Bus policy directory')