aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2009-09-07 05:18:50 +0800
committerflz <flz@FreeBSD.org>2009-09-07 05:18:50 +0800
commitaee1abb61b78c082c5d83f9b84996a4e129322b3 (patch)
tree72655187281a51d755f8177c7c85e0ad80cec664 /devel
parent97fa68f3fea860d6efa872e0a7eb28125abed8a2 (diff)
downloadfreebsd-ports-gnome-aee1abb61b78c082c5d83f9b84996a4e129322b3.tar.gz
freebsd-ports-gnome-aee1abb61b78c082c5d83f9b84996a4e129322b3.tar.zst
freebsd-ports-gnome-aee1abb61b78c082c5d83f9b84996a4e129322b3.zip
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
Diffstat (limited to 'devel')
-rw-r--r--devel/dbus/Makefile5
-rw-r--r--devel/dbus/pkg-install27
2 files changed, 4 insertions, 28 deletions
diff --git a/devel/dbus/Makefile b/devel/dbus/Makefile
index 6b9dffbe4eb5..39c8a33cf3f1 100644
--- a/devel/dbus/Makefile
+++ b/devel/dbus/Makefile
@@ -7,7 +7,7 @@
PORTNAME= dbus
PORTVERSION?= 1.2.4.6
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= devel gnome
MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/
DISTNAME= dbus-${PORTVERSION}permissive
@@ -36,6 +36,9 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
USE_RC_SUBR= dbus
USE_GNOME_SUBR= yes
+USERS= messagebus
+GROUPS= messagebus
+
PLIST_SUB= VERSION="1.0"
MAN1= dbus-cleanup-sockets.1 dbus-daemon.1 dbus-launch.1 \
diff --git a/devel/dbus/pkg-install b/devel/dbus/pkg-install
index 4ed46afa771a..5ad0a1f8429c 100644
--- a/devel/dbus/pkg-install
+++ b/devel/dbus/pkg-install
@@ -4,33 +4,6 @@ case $2 in
POST-INSTALL)
USER=messagebus
GROUP=${USER}
- UID=556
- GID=${UID}
- PW=/usr/sbin/pw
-
- if ${PW} group show "${GROUP}" 2>/dev/null; then
- echo "You already have a group \"${GROUP}\", so I will use it."
- else
- if ${PW} groupadd ${GROUP} -g ${GID}; then
- echo "Added group \"${GROUP}\"."
- else
- echo "Adding group \"${GROUP}\" failed..."
- exit 1
- fi
- fi
-
- if ${PW} user show "${USER}" 2>/dev/null; then
- echo "You already have a user \"${USER}\", so I will use it."
- else
- if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \
- -d "/nonexistent" -s /sbin/nologin -c "D-BUS Daemon User"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
- fi
/usr/bin/install -d -o ${USER} -g ${GROUP} /var/run/dbus
/usr/bin/install -d -o ${USER} -g ${GROUP} /var/db/dbus