Subject: Re: Support adding admin users/groups via defs.${OPSYS}.mk
To: Juan RP <>
From: Jonathan Perkin <>
List: tech-pkg
Date: 01/11/2004 12:20:54
* On 2004-01-11 at 04:08 GMT, Juan RP wrote:

> Actually, we have a problem with pkgsrc, when we want to install a
> package which needs to create new users/groups in some platforms
> (FreeBSD, BSD/OS, Darwin, etc)...

I noticed this a while back when attempting bulk builds on a FreeBSD
machine.  Yes, it's a bit of a problem.

> I would like to commit this patch, and modify all defs.${OPSYS}.mk
> files, with that change all platforms should be able to create
> users/groups when using PKG_{USERS,GROUPS}.

> This patch changes, which was my test system.
> Comments?

I'd much prefer it if we ported pkgsrc/sysutils/user to be portable
across the pkgsrc platforms we support.  That way, we don't get
bitten by changes to the platform-native passwd tools, and we get a
standard interface from the install scripts.

I have this work on my TODO list, and now that I have another
FreeBSD box on which to do bulk builds + fixes, I may get to look at
it relatively soon.  It doesn't seem *too* difficult, for FreeBSD at
least it seems just a matter of providing a few extra libc functions
which don't exist (maybe via libnbcompat).

Jonathan Perkin                         <>
BBC Internet Services