Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Aug 2015 09:17:42 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   pkg installation && adduser
Message-ID:  <20150804071742.GA35753@c720-r276659>

next in thread | raw e-mail | index | archive | help

Hello,

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'.

When I look into the port's work directory ther is in .metadir:

# ls work/.metadir/
+DESC		+MANIFEST	+MTREE_DIRS	+PRE_INSTALL

the file +PRE_INSTALL which does this:

# cat work/.metadir/+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'." 
  ...

but this is not packaged into the package itself:

# tar tzf work/pkg/dbus-1.8.8.txz | fgrep +
+COMPACT_MANIFEST
+MANIFEST

Can someone help me with this?

Thanks

	matthias
-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/  ☎ +49-176-38902045
No! Nein! ¡No! Όχι! -- Ευχαριστούμε!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150804071742.GA35753>