# This eclass does most of the work for the sys-user/ packages that
# supply system user accounts.
+# Needed for egetshell and egethome
inherit user
EXPORT_FUNCTIONS pkg_pretend src_unpack src_configure src_compile src_install src_test pkg_preinst pkg_postinst pkg_prerm
sys-user_src_test() { :; }
sys-user_getuid() {
+ [[ $# -eq 1 ]] || die "usage: sys-user_getuid <username>"
+
# Output the real UID of the given user, or the empty string if the
# user does not exist on the system.
echo $(id --real --user "${1}")