Gentoo Archives: gentoo-dev

From: Kent Fredric <kentnl@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: Userkit.eclass
Date: Wed, 23 Nov 2016 17:46:51
Message-Id: 20161124064611.6c009fae@katipo2.lan
In Reply to: [gentoo-dev] RFC: Userkit.eclass by "Manuel Rüger"
1 On Wed, 23 Nov 2016 09:44:33 +0100
2 Manuel Rüger <mrueg@g.o> wrote:
3
4 > What happens if the ebuild wants to create multiple users/group?
5 > Currently, I want to ignore that case and focus on the 80% ebuilds that
6 > can profit from such an eclass.
7
8 You can solve that part quite easily really.
9
10 Just deem USERKIT_USER and USERKIT_GROUP to be basenames
11 for idenitifiers.
12
13
14 Then you'd have
15
16 get_user == returns "${USERKIT_USER}"
17
18 get_user "admin" == returns "${USERKIT_USER}-admin"
19
20 Its not a perfect solution, but its better than "we just forget about this"

Replies

Subject Author
Re: [gentoo-dev] RFC: Userkit.eclass Zac Medico <zmedico@g.o>