pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/dbus dbus: let the RC script work unprivileged
details: https://anonhg.NetBSD.org/pkgsrc/rev/ddef2a9189cf
branches: trunk
changeset: 769095:ddef2a9189cf
user: khorben <khorben%pkgsrc.org@localhost>
date: Sun Nov 07 19:14:15 2021 +0000
description:
dbus: let the RC script work unprivileged
This takes advantage of the introduction of the SYSCONFBASE variable.
Tested on NetBSD/amd64.
Bumps PKGREVISION.
diffstat:
sysutils/dbus/MESSAGE.rcd | 6 +++---
sysutils/dbus/Makefile | 4 ++--
sysutils/dbus/files/dbus.sh | 8 ++++++--
3 files changed, 11 insertions(+), 7 deletions(-)
diffs (52 lines):
diff -r ca48e28f13bf -r ddef2a9189cf sysutils/dbus/MESSAGE.rcd
--- a/sysutils/dbus/MESSAGE.rcd Sun Nov 07 18:49:28 2021 +0000
+++ b/sysutils/dbus/MESSAGE.rcd Sun Nov 07 19:14:15 2021 +0000
@@ -1,10 +1,10 @@
===========================================================================
-$NetBSD: MESSAGE.rcd,v 1.1 2021/03/14 08:31:17 nia Exp $
+$NetBSD: MESSAGE.rcd,v 1.2 2021/11/07 19:14:15 khorben Exp $
You should enable the dbus system-wide daemon for correct operation. Use:
-$ cp ${PREFIX}/share/examples/rc.d/dbus /etc/rc.d/dbus
+$ cp ${PREFIX}/share/examples/rc.d/dbus ${SYSCONFBASE}/rc.d/dbus
-Edit /etc/rc.conf to set dbus=YES.
+Edit ${SYSCONFBASE}/rc.conf to set dbus=YES.
===========================================================================
diff -r ca48e28f13bf -r ddef2a9189cf sysutils/dbus/Makefile
--- a/sysutils/dbus/Makefile Sun Nov 07 18:49:28 2021 +0000
+++ b/sysutils/dbus/Makefile Sun Nov 07 19:14:15 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.125 2021/03/30 16:16:03 ryoon Exp $
+# $NetBSD: Makefile,v 1.126 2021/11/07 19:14:15 khorben Exp $
DISTNAME= dbus-1.12.20
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/
diff -r ca48e28f13bf -r ddef2a9189cf sysutils/dbus/files/dbus.sh
--- a/sysutils/dbus/files/dbus.sh Sun Nov 07 18:49:28 2021 +0000
+++ b/sysutils/dbus/files/dbus.sh Sun Nov 07 19:14:15 2021 +0000
@@ -1,12 +1,16 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: dbus.sh,v 1.10 2016/05/22 23:02:24 youri Exp $
+# $NetBSD: dbus.sh,v 1.11 2021/11/07 19:14:16 khorben Exp $
#
# PROVIDE: dbus
# REQUIRE: DAEMON
# KEYWORD: shutdown
+#
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start dbus:
+#
+# dbus=YES
-. /etc/rc.subr
+$_rc_subr_loaded . @SYSCONFBASE@/rc.subr
name="dbus"
rcvar=$name
Home |
Main Index |
Thread Index |
Old Index