1 |
Donnie Berkholz wrote: |
2 |
> On 10:37 Sat 03 Nov , Alin Năstac wrote: |
3 |
> |
4 |
>> You have to create users and groups in both pkg_ functions: |
5 |
>> - pkg_setup : when installation is performed the usual way, through |
6 |
>> compilation |
7 |
>> - pkg_preinst: when installed from binary package (-k) |
8 |
>> |
9 |
> |
10 |
> You shouldn't, all pkg_* functions should always be run regardless of |
11 |
> binary or source package. File a portage bug if pkg_setup() isn't |
12 |
> getting run, don't work around it. |
13 |
> |
14 |
|
15 |
If that is true (dunno, I didn't tested it yet) then someone should |
16 |
correct http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml . |
17 |
|
18 |
Quote from the aforementioned document: |
19 |
|
20 |
pkg_setup Use this function to perform any miscellaneous |
21 |
prerequisite tasks. This might include checking for an existing |
22 |
configuration file. If it is necessary to add users here, you must |
23 |
also do this check in pkg_preinst() before the package gets installed. |