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