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:
@@ -0,0 +1 @@
|
|||||||
|
g feedbackd -
|
||||||
@@ -91,6 +91,20 @@ if get_option('daemon')
|
|||||||
install_dir: systemd_user_unit_dir,
|
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')
|
if get_option('media-roles')
|
||||||
install_data('media-role-nodes.conf', install_dir: wireplumberdir)
|
install_data('media-role-nodes.conf', install_dir: wireplumberdir)
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ option('tests',
|
|||||||
option('systemd_user_unit_dir',
|
option('systemd_user_unit_dir',
|
||||||
type: 'string', value: '',
|
type: 'string', value: '',
|
||||||
description: 'Directory for systemd user units')
|
description: 'Directory for systemd user units')
|
||||||
|
option('systemd_sysusers_dir',
|
||||||
|
type: 'string', value: '',
|
||||||
|
description: 'Directory for sysusers configuration')
|
||||||
option('media-roles',
|
option('media-roles',
|
||||||
type: 'boolean', value: false,
|
type: 'boolean', value: false,
|
||||||
description: 'Use media roles')
|
description: 'Use media roles')
|
||||||
|
|||||||
Reference in New Issue
Block a user