1 |
On Mon, 2006-10-02 at 22:58 -0400, Mike Kelly wrote: |
2 |
> I have a list of all packages in the tree that currently use either of |
3 |
> those functions[2]. If you maintain one of these packages, I'd |
4 |
> especially appreciate your feedback. |
5 |
|
6 |
You missed games-* (yes, all of them) via the games.eclass, but I'm sure |
7 |
there's a couple more eclasses that do user/group modification. |
8 |
|
9 |
> Summarized, the format is: |
10 |
> |
11 |
> For each profile dir (e.g. profiles/base, profiles/default-linux, etc), |
12 |
> a new subdirectory, called accounts is created as necessary. Inside |
13 |
> that is a file called defaults, containing default uid/gid ranges, |
14 |
> shells, etc for the given profile. Also, there are two directories, |
15 |
> user/ and group/, which contain files named after the users and groups |
16 |
> to be added. Those files contain more specific uid/gid info, etc. |
17 |
> |
18 |
> All the files are handled like other files in cascading profiles. Each |
19 |
> line in the file is either a shell-style comment, or of the form: |
20 |
> "key: value". The keys are: uid, shell, home, groups, comment, and gid. |
21 |
|
22 |
What about applications that aren't tied to a profile? How do they |
23 |
work? Doesn't this increase the size of the profiles pretty |
24 |
dramatically? Does it need to be tons and tons of small files, or can |
25 |
we get away with a set of larger files with some sort of header? |
26 |
|
27 |
eg. |
28 |
$ cat defaults |
29 |
|
30 |
[default] |
31 |
uid: 1-999 |
32 |
shell: /bin/false |
33 |
home: /dev/null |
34 |
groups: |
35 |
comment: user created by portage |
36 |
gid: 1-999 |
37 |
|
38 |
$ cat accounts |
39 |
|
40 |
[portage] |
41 |
uid: 250 |
42 |
shell: /bin/false |
43 |
home: /var/tmp/portage |
44 |
groups: portage |
45 |
comment: portage |
46 |
gid: 250 |
47 |
|
48 |
[apache] |
49 |
uid: 81 |
50 |
shell: /bin/false |
51 |
home: /var/www/localhost |
52 |
groups: apache |
53 |
comment: apache |
54 |
gid: 81 |
55 |
|
56 |
As you can see, this changes very little, but reduces the number of |
57 |
small files in the portage tree. Is this necessary? Who knows? Will |
58 |
it makes syncs slightly faster? Not a clue. I'm just throwing out an |
59 |
idea. |
60 |
|
61 |
Anyway, this looks really good. =] |
62 |
|
63 |
-- |
64 |
Chris Gianelloni |
65 |
Release Engineering Strategic Lead |
66 |
Alpha/AMD64/x86 Architecture Teams |
67 |
Games Developer/Council Member/Foundation Trustee |
68 |
Gentoo Foundation |