data: Add sysusers configuration

Allows distros to add the feedbackd group by using sd-sysusers.

Closes: https://gitlab.freedesktop.org/agx/feedbackd/-/issues/83
Signed-off-by: Achill Gilgenast <achill@achill.org>
This commit is contained in:
Achill Gilgenast
2025-12-15 13:00:05 +01:00
parent 1b03f66930
commit b7e4fbab3b
3 changed files with 18 additions and 0 deletions
+14
View File
@@ -91,6 +91,20 @@ if get_option('daemon')
install_dir: systemd_user_unit_dir,
)
systemd_sysusers_dir = get_option('systemd_sysusers_dir')
if systemd_sysusers_dir == ''
if systemd_dep.found()
systemd_sysusers_dir = systemd_dep.get_variable('sysusersdir')
else
systemd_sysusers_dir = prefix / libdir / 'sysusers.d'
endif
endif
install_data('feedbackd.sysusers',
rename: 'feedbackd.conf',
install_dir: systemd_sysusers_dir,
)
if get_option('media-roles')
install_data('media-role-nodes.conf', install_dir: wireplumberdir)
endif