sysuser-tools/macros.sysusers
Thorsten Kukuk dc1a70f2b6 Accepting request 718841 from home:kukuk:container
- Use suggest shadow to prefer that over busybox in normal systems

- Add support for busybox adduser/addgroup
- Change requirements from shadow to useradd_or_adduser_dep

OBS-URL: https://build.opensuse.org/request/show/718841
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=17
2019-07-26 11:29:41 +00:00

22 lines
586 B
Plaintext

# -*- Mode: makefile; indent-tabs-mode: t -*- */
# RPM macros for packages creating system accounts
#
###
#
# When a package creates a system account, it should use the following macros:
#
# add %sysusers_requires in the package section
#
# add "%sysusers_generate_pre <source file> <account>" to build section
#
# add "%pre -f <account>.pre" to spec file
#
###
# This is for useradd/usermod/groupadd
%sysusers_requires Requires(pre): useradd_or_adduser_dep sysuser-shadow \
Suggest: shadow
%sysusers_generate_pre() \
%{_prefix}/lib/rpm/sysusers-generate-pre "%1" > "%2".pre