fix use flag
This commit is contained in:
1 parent
92c05922e8
commit
83006e0c3e
4 files changed
+59
-4
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
# Configuration for /etc/init.d/dbus
|
||||||
|
|
||||||
|
# Additional arguments to pass to dbus-daemon.
|
||||||
|
#command_args=
|
||||||
|
|
||||||
|
# Uncomment to use process supervisor.
|
||||||
|
#supervisor=supervise-daemon
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
name="System Message Bus"
|
||||||
|
description="An IPC message bus daemo"
|
||||||
|
|
||||||
|
extra_started_commands="reload"
|
||||||
|
|
||||||
|
command="/usr/bin/dbus-daemon"
|
||||||
|
command_args="--system"
|
||||||
|
command_background="yes"
|
||||||
|
pidfile="/run/$RC_SVCNAME.pid"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need localmount
|
||||||
|
after bootmisc
|
||||||
|
}
|
||||||
|
|
||||||
|
start_pre() {
|
||||||
|
mkdir -p /run/dbus
|
||||||
|
/usr/bin/dbus-uuidgen --ensure=/etc/machine-id
|
||||||
|
}
|
||||||
|
|
||||||
|
stop_post() {
|
||||||
|
[ ! -S /run/dbus/system_bus_socket ] || rm -f /run/dbus/system_bus_socket
|
||||||
|
}
|
||||||
|
|
||||||
|
reload() {
|
||||||
|
ebegin "Reloading $name configuration"
|
||||||
|
/usr/bin/dbus-send --print-reply --system --type=method_call \
|
||||||
|
--dest=org.freedesktop.DBus \
|
||||||
|
/ org.freedesktop.DBus.ReloadConfig > /dev/null
|
||||||
|
eend $?
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
if [ ! -f /etc/machine-id ] ; then
|
||||||
|
dbus-uuidgen --ensure=/etc/machine-id
|
||||||
|
fi
|
||||||
|
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / \
|
||||||
|
org.freedesktop.DBUS.ReloadConfig >/dev/null 2>&1 || :
|
||||||
+14
-4
@@ -7,10 +7,16 @@ description='A message bus system, a simple way for applications to talk to each
|
|||||||
email='aliriza.keskin@pardus.org.tr'
|
email='aliriza.keskin@pardus.org.tr'
|
||||||
maintainer='aliriza'
|
maintainer='aliriza'
|
||||||
license=('GPLv3')
|
license=('GPLv3')
|
||||||
source=("https://dbus.freedesktop.org/releases/dbus/dbus-$version.tar.xz")
|
source=("https://dbus.freedesktop.org/releases/dbus/dbus-$version.tar.xz"
|
||||||
|
"dbus.sysconf"
|
||||||
|
"dbus.initd"
|
||||||
|
"dbus.confd")
|
||||||
depends=(audit expat libcap-ng)
|
depends=(audit expat libcap-ng)
|
||||||
makedepends=()
|
makedepends=()
|
||||||
md5sums=('c56de960ea9031b92ee71aaa0e8e72c2')
|
md5sums=('c56de960ea9031b92ee71aaa0e8e72c2'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP')
|
||||||
group=(sys.apps)
|
group=(sys.apps)
|
||||||
uses=(x11)
|
uses=(x11)
|
||||||
x11_depends=(libX11)
|
x11_depends=(libX11)
|
||||||
@@ -23,7 +29,8 @@ setup(){
|
|||||||
--libdir=/usr/lib64/ \
|
--libdir=/usr/lib64/ \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--with-system-pid-file=/run/dbus/dbus.pid
|
--with-system-pid-file=/run/dbus/dbus.pid \
|
||||||
|
$(use_opt x11 --with-x --without-x)
|
||||||
}
|
}
|
||||||
|
|
||||||
build(){
|
build(){
|
||||||
@@ -32,8 +39,11 @@ build(){
|
|||||||
|
|
||||||
package(){
|
package(){
|
||||||
make $jobs install
|
make $jobs install
|
||||||
mkdir "$DESTDIR"/etc/{passwd.d,group.d}
|
mkdir "$DESTDIR"/etc/{passwd,group,sysconf,init,conf}.d
|
||||||
echo "messagebus:x:109:" > "$DESTDIR"/etc/group.d/dbus
|
echo "messagebus:x:109:" > "$DESTDIR"/etc/group.d/dbus
|
||||||
echo "messagebus:x:103:109::/nonexistent:/usr/sbin/nologin" > "$DESTDIR"/etc/passwd.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
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user