Subject: Re: mk/install/usergroup and FreeBSD and DragonFly
To: None <tech-pkg@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: tech-pkg
Date: 09/07/2005 16:16:40
On Wed, 7 Sep 2005 16:03:07 +0200
Joerg Sonnenberger <joerg@britannica.bec.de> wrote:

> On Wed, Sep 07, 2005 at 05:15:10AM -0700, Jeremy C. Reed wrote:
> > - force DragonFly to install sysutils/user
> 
> IMO not a good idea :-)

pkgsrc MUST not force to install the sysutils/user pkg,
because it's not ready for most systems... (any volunteer to fix
the code? :-)

> > - new sysutils/user_dragonfly package providing wrapper scripts
> > (similar to user_interix and user_darwin)
> 
> Why not change the mk/install/usergroup instead to have the proper
> magic included? I mean the script is hardly performance sensitive and
> it keeps all the logic in one place. I have played with this idea,
> but didn't bother enough to finish writing it.

I sent a patch (maybe 1 year or more ago) that used the FreeBSD
native user tools for this... but I don't remember why this wasn't
committed.

> > - provide code snippets to use like mk/platform/DragonFly.usergroup
> > if available, so the ordering of username will be done before other
> >   options.
> 
> Isn't the usergroup script included in +INSTALL? That might make the
> logic more complicated.
> 
> > 
> > - get DragonFly and FreeBSD to fix their pw to accept the username
> > at end of arguments too.
> 
> It won't help existing systems.

Agreed.