2017-02-16 16:08:58 +01:00
|
|
|
# -*- 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
|
|
|
|
#
|
|
|
|
###
|
|
|
|
|
2017-06-19 08:26:55 +02:00
|
|
|
# This is for useradd/usermod/groupadd
|
2019-07-26 13:29:41 +02:00
|
|
|
%sysusers_requires Requires(pre): useradd_or_adduser_dep sysuser-shadow \
|
|
|
|
Suggest: shadow
|
2017-02-16 16:08:58 +01:00
|
|
|
|
|
|
|
%sysusers_generate_pre() \
|
|
|
|
%{_prefix}/lib/rpm/sysusers-generate-pre "%1" > "%2".pre
|