1 |
On Sun, 13 May 2012 00:48:00 +0200 |
2 |
Michael Weber <xmw@g.o> wrote: |
3 |
|
4 |
> On 01/19/2011 11:44 PM, Mike Frysinger wrote: |
5 |
> > this is why we allow people to pick the appropriate step. ebuilds |
6 |
> > should be using pkg_{pre,post}inst unless the user/group is needed |
7 |
> > at src_* time. -mike |
8 |
> |
9 |
> I noticed a rather annoying test inside enewuser for existence of the |
10 |
> provided "shell" path in the filesystem ( user.eclass lines 153-156 ). |
11 |
> |
12 |
> If you want to create an user and set the shell variable to an program |
13 |
> you just emerge, you have to call it from pkg_postinst. |
14 |
|
15 |
If you don't need it in install-time (i.e. don't install any files |
16 |
owned by it), you should indeed defer the check as late as possible. |
17 |
There's no point in creating user earlier when the emerge can still |
18 |
fail/be aborted. |
19 |
|
20 |
-- |
21 |
Best regards, |
22 |
Michał Górny |