This commit is contained in:
aliriza committed 2023-02-16 08:36:12 +00:00
1 parent c6166d54eb
commit 3738f45aa2
4 files changed
+14 -5

No files matched your search

-2
View File
@@ -3,5 +3,3 @@
# Additional arguments to pass to dbus-daemon.
#command_args=
# Uncomment to use process supervisor.
#supervisor=supervise-daemon
+2 -1
View File
@@ -4,8 +4,9 @@ description="An IPC message bus daemon"
extra_started_commands="reload"
supervisor=supervise-daemon
command="/usr/bin/dbus-daemon"
command_args="--system"
command_args="--system --nofork --nopidfile --syslog-only ${command_args:-}"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
## test for an existing bus daemon, just to be safe
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
## if not found, launch a new one
eval `dbus-launch --sh-syntax`
echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
fi
+5 -2
View File
@@ -10,10 +10,12 @@ license=('GPLv3')
source=("https://dbus.freedesktop.org/releases/dbus/dbus-$version.tar.xz"
"dbus.sysconf"
"dbus.initd"
"dbus.confd")
"dbus.confd"
"dbus.xinit")
depends=(audit expat libcap-ng)
makedepends=()
md5sums=('c56de960ea9031b92ee71aaa0e8e72c2'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
@@ -39,11 +41,12 @@ build(){
package(){
make $jobs install
mkdir "$DESTDIR"/etc/{passwd,group,sysconf,init,conf}.d
mkdir -p "$DESTDIR"/etc/{passwd,group,sysconf,init,conf}.d "$DESTDIR"/etc/X11/xinit/xinitrc.d/
echo "messagebus:x:109:" > "$DESTDIR"/etc/group.d/dbus
echo "messagebus:x:103:109::/nonexistent:/usr/sbin/nologin" > "$DESTDIR"/etc/passwd.d/dbus
install ../dbus.sysconf "$DESTDIR"/etc/sysconf.d/dbus
install ../dbus.initd "$DESTDIR"/etc/init.d/dbus
install ../dbus.confd "$DESTDIR"/etc/conf.d/dbus
install ../dbus.xinit "$DESTDIR"/etc/X11/xinit/xinitrc.d/30-dbus-launch.sh
}