This will allow the user to be created automatically and the scriptlets
to create the user and group dropped from the spec file:
https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers
The config is equivalent to what the Fedora package does, i.e. a
dynamically-allocated uid and gid, and an account with nologin as the
shell.
systemdsystemunitdir = systemd.get_variable(pkgconfig : 'systemdsystemunitdir')
endif
+systemd_sysusers_dir = ''
+if systemd.found()
+ systemd_sysusers_dir = systemd.get_variable(pkgconfig : 'sysusers_dir')
+endif
+
sysvinit = get_option('sysvinit').enabled()
sysvinitrcdir = sysconfdir + '/init.d'
install_data(
uuidd_socket,
install_dir : systemdsystemunitdir)
+
+ install_data(
+ 'uuidd-sysusers.conf',
+ install_dir: systemd_sysusers_dir,
+ rename : 'uuidd.conf')
endif
if build_uuidd and sysvinit
uuidd_rc = configure_file(
--- /dev/null
+u uuidd - "UUID generator helper daemon" /var/lib/libuuid