Date: Tue, 04 Aug 2015 20:42:25 +0200 From: Patrick Hess <patrickhess@gmx.net> To: Matthias Apitz <guru@unixarea.de>, freebsd-questions@freebsd.org Subject: Re: pkg installation && adduser Message-ID: <2625928.x9bsQ44ZxQ@desk8.phess.net> In-Reply-To: <20150804071742.GA35753@c720-r276659> References: <20150804071742.GA35753@c720-r276659>
next in thread | previous in thread | raw e-mail | index | archive | help
Matthias Apitz wrote: > I'm trying to understand how the package command creates users during > the installation of packages, for example the dbus-1.8.8.txz does not > contain any file or script for creating the groups and user > 'messagebus'. How this is done during 'pkg install dbus'. > > [...] > > # tar tzf work/pkg/dbus-1.8.8.txz | fgrep + > +COMPACT_MANIFEST > +MANIFEST Take a look at the contents of that +MANIFEST file (linebreaks added here for better readability): # tar xvf dbus-1.8.20.txz x +COMPACT_MANIFEST x +MANIFEST [...] # cat +MANIFEST [...] "scripts": {"pre-install": "echo \"===> Creating users and/or groups.\" if ! /usr/sbin/pw groupshow messagebus >/dev/null 2>&1; then echo \"Creating group 'messagebus' with gid '556'.\" /usr/sbin/pw groupadd messagebus -g 556 [...] Patrick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2625928.x9bsQ44ZxQ>