forked from pool/sysuser-tools
1c0c62a860
- Packages providing users need /usr/bin/cat installed to create them. Add that to the PreRequires. OBS-URL: https://build.opensuse.org/request/show/828539 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=28
22 lines
600 B
Plaintext
22 lines
600 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 /usr/bin/cat \
|
|
Suggests: shadow
|
|
|
|
%sysusers_generate_pre() \
|
|
%{_prefix}/lib/rpm/sysusers-generate-pre "%1" > "%2".pre
|