Subject: Re: Overhauling PLIST command set
To: Malcolm Herbert <mjch@mjch.net>
From: Johnny Lam <jlam@pkgsrc.org>
List: tech-pkg
Date: 11/07/2005 19:59:36
Malcolm Herbert wrote:
>
> one thing that really really really annoys me is that users created
> for packages are given uids in the order that the packages are installed.
>
> Makes things really hard to keep machines in sync if you install the
> same packages, but forget the order in which you'd done it ...
>
> It would be nice to have a standard set of account details for
> pkgsrc packages, or if that would be a nightmare to set up (as I think
> it probably would be), allow each site to specify this at package
> build time somehow (this may already be possible and I'm not aware of
> it)
For my own machines, I have PKG_CREATE_USERGROUP=no set in the
environment when I pkg_add binary packages. This causes packages that
want to create users or groups to fail to install unless those users or
groups already exist. When I see a package fail to install, I check the
error message to see what users/groups it wants and create them after
consulting my other machines to see what UIDs/GIDs I used. Then, I just
pkg_add the package again.
Cheers,
-- Johnny Lam <jlam@pkgsrc.org>