sysuser-tools/macros.sysusers
Thorsten Kukuk e839e06bcf Accepting request 853102 from home:lnussel:branches:Base:System
- useradd_or_adduser_dep must be PreReq so ordering makes sure it gets
  installed before.
- suggest shadow where useradd_or_adduser_dep is actually required

OBS-URL: https://build.opensuse.org/request/show/853102
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=32
2020-12-07 12:26:22 +00:00

20 lines
499 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
#
###
%sysusers_requires Requires(pre): sysuser-shadow
%sysusers_generate_pre() \
%{_prefix}/lib/rpm/sysusers-generate-pre "%1" > "%2".pre