summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* user.eclass: EAPI 8 supportDavid Michael2021-06-241-3/+4
| | | | | | | Also drop support for EAPIs 0-4 to match user-info.eclass. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* user.eclass: fix @SUPPORTED_EAPIS eclassdocSam James2021-06-211-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* user.eclass: add _assert_pkg_ebuild_phase @DESCRIPTIONSam James2021-06-201-0/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* user.eclass: change variable reference style for ${1}Sam James2021-06-201-19/+19
| | | | | | For consistency with the rest of the eclass. Signed-off-by: Sam James <sam@gentoo.org>
* user.eclass: update _assert_pkg_ebuild_phase fatal errorSam James2021-06-201-2/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* user.eclass: [QA] add @SUPPORTED_EAPIS tagSam James2021-06-201-0/+1
| | | | | Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* user.eclass: fix whitespace in elogsSam James2021-03-311-12/+12
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* eclass/*: Add @DEPRECATED tags, based on pkgcheck listMichał Górny2020-11-061-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Deprecate general use for future EAPIs.Ulrich Müller2020-11-041-0/+13
| | | | | | | | | No functional difference for existing EAPIs. Reviewed-by: David Seifert <soap@gentoo.org> Reviewed-by: Michał Górny <mgorny@gentoo.org> Reviewed-by: Andreas K. Hüttel <dilfridge@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* user.eclass: enewgroup, allow -1 as gidMichał Górny2020-02-261-1/+1
| | | | | | | | | Allow using '-1' to specify 'next free GID' for enewgroup. While technically this can already be specified by omitting gid, allowing -1 improves consistency with enewuser. Closes: https://bugs.gentoo.org/707508 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Use more verbose loggingMichał Górny2020-02-261-20/+20
| | | | | | | | Replace 'einfo' calls with either 'elog' or 'ewarn'. Practically all messages printed by the eclass functions are important, in particular regarding account changes and lack of permissions. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: move read-only functionality to user-info.eclassMike Gilbert2020-02-061-146/+3
| | | | | | | The new eclass can be used by ebuilds to look up user information without triggering a deprecation warning from repoman and pkgcheck. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* user.eclass: Use egetent in eget{user,group}nameMichał Górny2019-08-121-2/+2
| | | | | | | | | | Use egetent+cut to obtain user/group names rather than id(1). The latter has no real advantage (besides being shorter to type), and does not work correctly for getting groups. Closes: https://bugs.gentoo.org/691056 Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* user.eclass: Allocate next free UID or GID from 999 downwards.Ulrich Müller2019-07-291-4/+4
| | | | | | | | | | | Fixed UIDs and GIDs are mostly located in the low range, therefore going downwards from 999 to 101 will minimise collisions between fixed and dynamically allocated IDs. Note that on Linux and other targets using "groupadd -r" from sys-apps/shadow, GIDs are already allocated that way implicitly. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* user.eclass: Fix egetgroups bash compliance, and make it simplerMichał Górny2019-07-271-4/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Introduce e{get,set}groupsMichał Górny2019-06-201-0/+88
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Support getting & setting comment fieldMichał Górny2019-06-201-0/+77
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Also permit using functions in pkg_*rm phasesMichał Górny2019-06-201-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Introduce eget{user,group}nameMichał Górny2019-06-201-0/+20
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Introduce esetshellMichał Górny2019-06-201-0/+61
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Factor out finding nologin into separate functionMichał Górny2019-06-201-13/+26
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Die if no free UID/GID is foundMichał Górny2019-06-201-0/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Support forcing specified UID/GIDMichał Górny2019-06-201-2/+21
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Support disabling home directory creationMichał Górny2019-06-201-2/+14
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Prevent automated home creation in useraddMichał Górny2019-06-201-1/+1
| | | | | | | | | Pass '-M' to prevent useradd from automatically creating the home directory (depending on system configuration). We create the home directory ourselves anyway, and we have better control over how it's created this way. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Do not create user-group automaticallyMichał Górny2019-06-201-1/+1
| | | | | Closes: https://bugs.gentoo.org/512220 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: NetBSD has 'getent'Michał Górny2019-06-201-1/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Remove dead/broken Darwin supportMichał Górny2019-06-201-51/+3
| | | | | Closes: https://bugs.gentoo.org/687568 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: avoid calling nscd if it doesn't existTim Harder2019-02-251-2/+2
| | | | Signed-off-by: Tim Harder <radhermit@gentoo.org>
* user.eclass: gracefully return when unprivilegedBenda Xu2017-11-261-1/+9
| | | | | enewgroup and enewuser does not apply when executed as a normal user, e.g. under Gentoo Prefix.
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* user.eclass: Remove retired maintainersMichał Górny2017-02-221-2/+0
|
* user.eclass: Removed superfluous "shift" call (bug #592176).Lars Wendler2016-08-291-1/+0
|
* Cleanup maintainer per bug #64843Pacho Ramos2016-08-061-1/+0
|
* proj/gentoo: Initial commitRobin H. Johnson2015-08-081-0/+466
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed