acct-*.eclass: Allow dynamic UID/GID assignment via -1
authorMichał Górny <mgorny@gentoo.org>
Wed, 7 Aug 2019 17:07:45 +0000 (19:07 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 17 Aug 2019 20:36:31 +0000 (22:36 +0200)
commitc871b87b56208684b0a1fedeaf24fe10943748e2
tree53ec8282153965ff28c298ec22dff6abcfd64f2a
parentf2b98d0ceb6babcde595f54cda4fbcec61cbcc8e
acct-*.eclass: Allow dynamic UID/GID assignment via -1

Allow a special value of '-1' to dynamically assign UID/GID for the user
or group.  This is intended to be used in overlays where proper
assignment does not take place but whose owners wish to switch to acct-*
packages.

While technically it is possible to choose a free UID/GID, it could be
taken afterwards by some Gentoo package and unnecessarily introduce
a conflict.  Using '999' was also suggested (as the first dynamic
UID/GID) but it would cause issues for people enabling
ACCT_*_ENFORCE_ID.  To avoid this, '-1' does not trigger collision
checks.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/acct-group.eclass
eclass/acct-user.eclass