1 |
On 23:04 Sun 14 Nov , Justin Bronder (jsbronder) wrote: |
2 |
> pkg_setup() { |
3 |
> enewgroup munge |
4 |
> enewuser munge -1 -1 /var/lib/munge munge |
5 |
> } |
6 |
|
7 |
This is kind of a strange time to run these, since then you'll end up |
8 |
with a new user and group even if the build fails or is killed. You'll |
9 |
also end up with extraneous users and groups on build servers. Does this |
10 |
user/group need to be present on the build system for some reason? I'd |
11 |
much prefer to see it in pkg_{pre,post}inst(), despite pkg_setup() being |
12 |
much more common in the tree (from a dumb grep/sort/uniq): |
13 |
|
14 |
74 pkg_preinst() { |
15 |
101 pkg_postinst() { |
16 |
369 pkg_setup() { |
17 |
|
18 |
-- |
19 |
Thanks, |
20 |
Donnie |
21 |
|
22 |
Donnie Berkholz |
23 |
Sr. Developer, Gentoo Linux |
24 |
Blog: http://dberkholz.wordpress.com |