a509a811ad
- Version 3.2 - update sysusers_requires to request sysuser-shadow 3.2 - Use TAB consistently for indention in sysusers2shadow.sh - This pkg needs to follow behavior which is described in sysusers.d(5). Always create a system group of the same name as the system user, even if the user already exists. (bsc#1205161, bsc#1207778, bsc#1213240) - Disable systemd-sysuser on SLE15 to stay compatible (disable-systemd-sysusers.patch) OBS-URL: https://build.opensuse.org/request/show/1099442 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=54
25 lines
777 B
Plaintext
25 lines
777 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> [<config>]" to build section
|
|
#
|
|
## <source file> is the source file as defined in the spec file header
|
|
## <account> is just a random name, the output file will be "<account>.pre"
|
|
## <config> is the name of the configuration file as stored in
|
|
## /usr/lib/sysusers.d/<config>
|
|
#
|
|
# add "%pre -f <account>.pre" to spec file
|
|
#
|
|
###
|
|
|
|
%sysusers_requires Requires(pre): sysuser-shadow >= 3.2
|
|
|
|
%sysusers_generate_pre() \
|
|
%{_prefix}/lib/rpm/sysusers-generate-pre "%1" "%3" >> "%2".pre
|