diff --git a/data/de.pengutronix.rauc.InstallConfirmation.conf b/data/de.pengutronix.rauc.InstallConfirmation.conf new file mode 100644 index 0000000..c8fadb8 --- /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 0000000..2259b93 --- /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 029cb30..89ab165 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 43912e1..16f92dc 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')