Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 0/9] User/group package draft implementation
Date: Thu, 30 May 2019 12:50:52
Message-Id: 20190530125039.15591-1-mgorny@gentoo.org
1 Hi,
2
3 Please review the following patches, implementing the user/group package
4 concept. The patches incorporate some of the feedback to the proposed
5 GLEP, and I'd like to get them reviewed before I submit the next GLEP
6 update. They are based on earlier work by mjo.
7
8 To recap: the idea is to replace direct calls to enewgroup/enewuser
9 with special packages in user/ & group/ categories that represent
10 the users/groups needed by a package. They create the user/group
11 if necessary and track its usage. When it is no longer needed,
12 the package is unmerged and the user gets a clear signal that the user/
13 group might be removed (but we do not remove them automatically to stay
14 on the safe side).
15
16 The patch set consists of three parts:
17
18 a. Updates and fixes to user.eclass, to provide a good portability base
19 for the new eclasses.
20
21 b. sys-group and sys-user eclasses, used to implement said packages.
22
23 c. Example conversion of 'ftp' user+group, and respective update
24 of net-ftp/ftpbase.
25
26 TIA for your feedback.
27
28 --
29 Best regards,
30 Michał Górny
31
32
33 Michał Górny (9):
34 user.eclass: Do not create user-group automatically
35 user.eclass: Prevent automated home creation in useradd
36 user.eclass: Support disabling home directory creation
37 user.eclass: Support forcing specified UID/GID
38 user.eclass: Die if no free UID/GID is found
39 {group,user}.eclass: WIP eclasses to maintain users/groups
40 group/ftp: Add 'ftp' group (GID 21)
41 user/ftp: Add 'ftp' user (UID 21)
42 net-ftp/ftpbase: Utilize {group,user}/ftp
43
44 eclass/sys-group.eclass | 105 +++++++++++++
45 eclass/sys-user.eclass | 206 +++++++++++++++++++++++++
46 eclass/user.eclass | 39 ++++-
47 group/ftp/ftp-0.ebuild | 8 +
48 group/ftp/metadata.xml | 5 +
49 net-ftp/ftpbase/ftpbase-0.01-r3.ebuild | 39 +++++
50 profiles/categories | 2 +
51 user/ftp/ftp-0.ebuild | 19 +++
52 user/ftp/metadata.xml | 5 +
53 9 files changed, 425 insertions(+), 3 deletions(-)
54 create mode 100644 eclass/sys-group.eclass
55 create mode 100644 eclass/sys-user.eclass
56 create mode 100644 group/ftp/ftp-0.ebuild
57 create mode 100644 group/ftp/metadata.xml
58 create mode 100644 net-ftp/ftpbase/ftpbase-0.01-r3.ebuild
59 create mode 100644 user/ftp/ftp-0.ebuild
60 create mode 100644 user/ftp/metadata.xml
61
62 --
63 2.22.0.rc1

Replies