From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2D582138334 for ; Thu, 30 May 2019 12:50:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 148F8E0893; Thu, 30 May 2019 12:50:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C1F06E085A for ; Thu, 30 May 2019 12:50:47 +0000 (UTC) Received: from localhost.localdomain (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 3F10834533E; Thu, 30 May 2019 12:50:45 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 0/9] User/group package draft implementation Date: Thu, 30 May 2019 14:50:30 +0200 Message-Id: <20190530125039.15591-1-mgorny@gentoo.org> X-Mailer: git-send-email 2.22.0.rc1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: ee6e6695-3b01-43e5-9281-ea63959216c9 X-Archives-Hash: ef87b12a0fdbaf123ae50380fb1caf84 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