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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user