user-info: import from Gentoo & adjust to CrOS APIs
We use egetent from our user.eclass since it handles our account db,
and it has a compatible API. All other functions are imported as-is
except for egetgroups which is disabled. Nothing in Gentoo uses it,
and the Gentoo implementation doesn't work well with our setup.
The egethome & egetshell funcs are duplicated between the user eclasses
for now, but since they're implemented the same, it isn't a big deal.
We have to clean up some ebuilds in the tree before we can delete from
our user.eclass.
BUG=b:187790077
TEST=CQ passes
Change-Id: If97d81d523b5b53aae752055e1e487b8a5805456
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/eclass-overlay/+/4111961
Reviewed-by: Ram Chandrasekar <rchandrasekar@google.com>
Commit-Queue: Ram Chandrasekar <rchandrasekar@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 files changed