Subject: Re: creating user before configuration starts
To: Lubomir Sedlacik <salo@Xtrmntr.org>
From: Alistair Crooks <agc@wasabisystems.com>
List: tech-pkg
Date: 05/21/2002 19:55:35
On Tue, May 21, 2002 at 07:48:43PM +0200, Lubomir Sedlacik wrote:
> On Tue, May 21, 2002 at 07:44:04PM +0200, Alistair Crooks wrote:
> > On Tue, May 21, 2002 at 07:13:09PM +0200, Lubomir Sedlacik wrote:
> > > On Tue, May 21, 2002 at 07:52:48PM +0200, Hannes Frederic Sowa wrote:
> > > > I need to create a user before the configuration of the port starts.
> > >
> > > check mail/qmail-users and mail/qmail how to do it better way.
> > 
> > Actually, I believe that qmail and qmail-users don't need the uid until
> > package install time, and so they use the PKG_USERS/PKG_GROUPS mechanism,
> > in conjuntion with bsd.pkg.install.mk
> 
> you cannot build qmail unless you have created users/groups for it's
> future use. that's the reason why there is prerequisite package
> qmail-users which creates users before qmail itself is compiled.

Sure, but qmail-users is a separate package. I don't advocate the creation
of a separate package just so that the users exist before a package can be
configured. That's why I mentioned that majordomo is the example to follow.
 
Regards,
Alistair