1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/devel/dbus/pkg-install
Florent Thoumie 80ce349ead Add support to create users and groups from information stored in UIDs/GIDs
files. Users and groups won't be deleted at deinstall time as we're lacking
a refcount to know if any port is using them.

Also convert a few ports while I'm here.

PR:		ports/108514
Submitted by:	mm, self
2009-09-06 21:18:50 +00:00

15 lines
315 B
Bash

#!/bin/sh
case $2 in
POST-INSTALL)
USER=messagebus
GROUP=${USER}
/usr/bin/install -d -o ${USER} -g ${GROUP} /var/run/dbus
/usr/bin/install -d -o ${USER} -g ${GROUP} /var/db/dbus
/usr/bin/chgrp ${GROUP} ${PKG_PREFIX}/libexec/dbus-daemon-launch-helper
${PKG_PREFIX}/bin/dbus-uuidgen --ensure
exit 0
;;
esac