package/dbus: use /run for runtime data

All init systems supported by Buildroot have a /run directory and have
a symlink for /var/run -> /run.

Use the /run directory directly.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020.08.x
Norbert Lange 2020-07-17 23:55:20 +02:00 committed by Yann E. MORIN
parent 3e186cee00
commit 6b9a75a5bd
2 changed files with 6 additions and 6 deletions

View File

@ -7,11 +7,11 @@
# and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
# pidfile: /run/messagebus.pid
#
# Create needed directories.
[ -d /var/run/dbus ] || mkdir -p /var/run/dbus
[ -d /run/dbus ] || mkdir -p /run/dbus
[ -d /var/lock/subsys ] || mkdir -p /var/lock/subsys
[ -d /tmp/dbus ] || mkdir -p /tmp/dbus
@ -38,7 +38,7 @@ stop() {
echo "done"
if [ $RETVAL -eq 0 ]; then
rm -f /var/lock/subsys/dbus-daemon
rm -f /var/run/messagebus.pid
rm -f /run/messagebus.pid
fi
}

View File

@ -15,7 +15,7 @@ define DBUS_PERMISSIONS
endef
define DBUS_USERS
dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user
dbus -1 dbus -1 * /run/dbus - dbus DBus messagebus user
endef
DBUS_DEPENDENCIES = host-pkgconf expat
@ -27,8 +27,8 @@ DBUS_CONF_OPTS = \
--disable-xml-docs \
--disable-doxygen-docs \
--with-xml=expat \
--with-system-socket=/var/run/dbus/system_bus_socket \
--with-system-pid-file=/var/run/messagebus.pid
--with-system-socket=/run/dbus/system_bus_socket \
--with-system-pid-file=/run/messagebus.pid
ifeq ($(BR2_STATIC_LIBS),y)
DBUS_CONF_OPTS += LIBS='-pthread'