Gentoo Archives: gentoo-dev

From: Michael Weber <xmw@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup
Date: Sat, 12 May 2012 22:50:21
Message-Id: 4FAEE8A0.3080607@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup by Mike Frysinger
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
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 (The example was a trivial desktop manager x11-misc/trivdm in [1])
16
17 [1]
18 http://git.overlays.gentoo.org/gitweb/?p=dev/xmw.git;a=tree;f=x11-misc/trivdm
19
20 - --
21 - --
22 Gentoo Dev
23 http://xmw.de/
24 -----BEGIN PGP SIGNATURE-----
25 Version: GnuPG v2.0.17 (GNU/Linux)
26 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
27
28 iF4EAREIAAYFAk+u6KAACgkQknrdDGLu8JA+awD+K7HLWLkd+6eF+uNteODtIJxC
29 rM46lOPUc7WDf3TXkHoA/job97V3eGMSamAHKp2+kgh7nz1z0VmmNqKxxyD26UE7
30 =zq6G
31 -----END PGP SIGNATURE-----

Replies