Switch from Systemd to Enit
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
name: dbus
|
name: dbus
|
||||||
description: Freedesktop.org message bus system
|
description: Freedesktop.org message bus system
|
||||||
version: 1.14.10
|
version: 1.14.10
|
||||||
|
revision: 3
|
||||||
url: https://www.freedesktop.org/wiki/Software/dbus
|
url: https://www.freedesktop.org/wiki/Software/dbus
|
||||||
license: AFL2.1 or GPL2-or-later
|
license: AFL2.1 or GPL2-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["glibc","systemd"]
|
depends: ["glibc"]
|
||||||
make_depends: ["bash","binutils","coreutils","diffutils","gawk","gcc","glibc","grep","make","pkgconf","sed","systemd","util-linux"]
|
make_depends: ["bash","binutils","coreutils","diffutils","gawk","gcc","glibc","grep","make","pkgconf","sed","util-linux"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
trigger_operations: ["install", "upgrade", "remove"]
|
||||||
|
target_type: "path"
|
||||||
|
targets: ["etc/dbus-1/system.d/", "usr/share/dbus-1/system.d/", "usr/share/dbus-1/system-services/"]
|
||||||
|
depends: ["dbus"]
|
||||||
|
run: "/usr/bin/systemctl try-reload-or-restart dbus"
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
name: dbus
|
||||||
|
description: DBus message system bus
|
||||||
|
type: background
|
||||||
|
start_cmd: bash -c 'install -m755 -g 81 -o 81 -d /run/dbus; exec dbus-daemon --system --nofork --nopidfile'
|
||||||
|
exit_method: kill
|
||||||
|
restart: true
|
||||||
@@ -23,6 +23,8 @@ build() {
|
|||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-doxygen-docs \
|
--disable-doxygen-docs \
|
||||||
--disable-xml-docs \
|
--disable-xml-docs \
|
||||||
|
--with-systemduserunitdir=no \
|
||||||
|
--with-systemdsystemunitdir=no \
|
||||||
--docdir=/usr/share/doc/dbus \
|
--docdir=/usr/share/doc/dbus \
|
||||||
--with-system-socket=/run/dbus/system_bus_socket
|
--with-system-socket=/run/dbus/system_bus_socket
|
||||||
make
|
make
|
||||||
@@ -38,5 +40,10 @@ check() {
|
|||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
chown root:messagebus "$BPM_OUTPUT"/usr/libexec/dbus-daemon-launch-helper
|
||||||
|
chmod 4750 "$BPM_OUTPUT"/usr/libexec/dbus-daemon-launch-helper
|
||||||
ln -sfv /etc/machine-id "$BPM_OUTPUT"/var/lib/dbus
|
ln -sfv /etc/machine-id "$BPM_OUTPUT"/var/lib/dbus
|
||||||
|
|
||||||
|
install -Dm644 "$BPM_WORKDIR"/dbus-reload.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/dbus-reload.bpmhook
|
||||||
|
install -Dm644 "$BPM_WORKDIR"/dbus.esv "$BPM_OUTPUT"/etc/esvm/services/dbus.esv
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user