On Tue, 2005-10-18 at 22:58 +0300, Petteri Räty wrote: > I am trying to solve http://bugs.gentoo.org/show_bug.cgi?id=109079. I > asked on #gentoo-dev and ciaramn said that we do not have a policy on > where to make a home directory. So I would now like the input of other > developers on howto solve this bug.
Assuming that the tomcat user is in /etc/passwd (or available via getent) then you can use this if you inherit eutils. local homedir=$( egethome tomcat ) Now you have the homedir and if it's /dev/null you can either warn about it in the ebuild or abort. As to where to make homedirs - well, you can't go wrong with /var/lib - postgres, openldap and others have their "homes" there (where they store data). AFAIK ciaramn is right and we don't have a set policy. But then I don't think we can have a fixed policy as there would be many exceptions. Roy -- gentoo-dev@gentoo.org mailing list