From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-dev] [PATCH 0/9] User/group package draft implementation
Date: Thu, 30 May 2019 14:50:30 +0200 [thread overview]
Message-ID: <20190530125039.15591-1-mgorny@gentoo.org> (raw)
Hi,
Please review the following patches, implementing the user/group package
concept. The patches incorporate some of the feedback to the proposed
GLEP, and I'd like to get them reviewed before I submit the next GLEP
update. They are based on earlier work by mjo.
To recap: the idea is to replace direct calls to enewgroup/enewuser
with special packages in user/ & group/ categories that represent
the users/groups needed by a package. They create the user/group
if necessary and track its usage. When it is no longer needed,
the package is unmerged and the user gets a clear signal that the user/
group might be removed (but we do not remove them automatically to stay
on the safe side).
The patch set consists of three parts:
a. Updates and fixes to user.eclass, to provide a good portability base
for the new eclasses.
b. sys-group and sys-user eclasses, used to implement said packages.
c. Example conversion of 'ftp' user+group, and respective update
of net-ftp/ftpbase.
TIA for your feedback.
--
Best regards,
Michał Górny
Michał Górny (9):
user.eclass: Do not create user-group automatically
user.eclass: Prevent automated home creation in useradd
user.eclass: Support disabling home directory creation
user.eclass: Support forcing specified UID/GID
user.eclass: Die if no free UID/GID is found
{group,user}.eclass: WIP eclasses to maintain users/groups
group/ftp: Add 'ftp' group (GID 21)
user/ftp: Add 'ftp' user (UID 21)
net-ftp/ftpbase: Utilize {group,user}/ftp
eclass/sys-group.eclass | 105 +++++++++++++
eclass/sys-user.eclass | 206 +++++++++++++++++++++++++
eclass/user.eclass | 39 ++++-
group/ftp/ftp-0.ebuild | 8 +
group/ftp/metadata.xml | 5 +
net-ftp/ftpbase/ftpbase-0.01-r3.ebuild | 39 +++++
profiles/categories | 2 +
user/ftp/ftp-0.ebuild | 19 +++
user/ftp/metadata.xml | 5 +
9 files changed, 425 insertions(+), 3 deletions(-)
create mode 100644 eclass/sys-group.eclass
create mode 100644 eclass/sys-user.eclass
create mode 100644 group/ftp/ftp-0.ebuild
create mode 100644 group/ftp/metadata.xml
create mode 100644 net-ftp/ftpbase/ftpbase-0.01-r3.ebuild
create mode 100644 user/ftp/ftp-0.ebuild
create mode 100644 user/ftp/metadata.xml
--
2.22.0.rc1
next reply other threads:[~2019-05-30 12:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-30 12:50 Michał Górny [this message]
2019-05-30 12:50 ` [gentoo-dev] [PATCH 1/9] user.eclass: Do not create user-group automatically Michał Górny
2019-05-30 12:50 ` [gentoo-dev] [PATCH 2/9] user.eclass: Prevent automated home creation in useradd Michał Górny
2019-05-30 12:50 ` [gentoo-dev] [PATCH 3/9] user.eclass: Support disabling home directory creation Michał Górny
2019-05-30 12:50 ` [gentoo-dev] [PATCH 4/9] user.eclass: Support forcing specified UID/GID Michał Górny
2019-05-30 12:50 ` [gentoo-dev] [PATCH 5/9] user.eclass: Die if no free UID/GID is found Michał Górny
2019-05-31 8:02 ` Jaco Kroon
2019-05-30 12:50 ` [gentoo-dev] [PATCH 6/9] {group,user}.eclass: WIP eclasses to maintain users/groups Michał Górny
2019-05-30 12:50 ` [gentoo-dev] [PATCH 7/9] group/ftp: Add 'ftp' group (GID 21) Michał Górny
2019-05-30 12:50 ` [gentoo-dev] [PATCH 8/9] user/ftp: Add 'ftp' user (UID 21) Michał Górny
2019-05-30 12:50 ` [gentoo-dev] [PATCH 9/9] net-ftp/ftpbase: Utilize {group,user}/ftp Michał Górny
2019-05-30 20:17 ` [gentoo-dev] [PATCH 0/9] User/group package draft implementation James Le Cuirot
2019-05-31 14:02 ` William Hubbs
2019-05-31 14:08 ` Michał Górny
2019-05-31 16:37 ` William Hubbs
2019-05-31 16:52 ` Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190530125039.15591-1-mgorny@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox