From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 1/2] dbus-broker: New package
Date: Sat, 07 Jan 2023 22:05:04 +0100 [thread overview]
Message-ID: <20230107210505.131637-1-stefan.schantl@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2990 bytes --]
This will replace the legacy dbus-daemon.
Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
dbus-broker/dbus-broker.nm | 100 +++++++++++++++++++++++++++++++++++++
1 file changed, 100 insertions(+)
create mode 100644 dbus-broker/dbus-broker.nm
diff --git a/dbus-broker/dbus-broker.nm b/dbus-broker/dbus-broker.nm
new file mode 100644
index 000000000..a65a1e0d6
--- /dev/null
+++ b/dbus-broker/dbus-broker.nm
@@ -0,0 +1,100 @@
+###############################################################################
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info(a)ipfire.org> #
+###############################################################################
+
+name = dbus-broker
+version = 32
+release = 1
+
+maintainer = Stefan Schantl <stefan.schantl(a)ipfire.org>
+groups = System/Daemons
+url = https://github.com/bus1/dbus-broker
+license = Apache 2.0
+summary = Linux D-Bus Message Broker
+
+description
+ D-BUS is a system for sending messages between applications. It is
+ used both for the system-wide message bus service, and as a
+ per-user-login-session messaging facility.
+end
+
+source_dl = https://github.com/bus1/%{name}/releases/download/v%{version}/
+sources = %{thisapp}.tar.xz
+
+build
+ requires
+ meson
+ python3-docutils
+ expat-devel
+ libcap-ng-devel
+ systemd-devel
+ end
+
+ build
+ %{meson} \
+ -Ddocs=true \
+ -Dlinux-4-17=true
+
+ %{meson_build}
+ end
+
+ install
+ %{meson_install}
+ end
+end
+
+packages
+ package %{name}
+ obsoletes
+ dbus <= 1.15.2-2
+ end
+
+ provides
+ dbus
+ end
+
+ requires
+ dbus-common
+ end
+
+ prerequires += shadow-utils
+
+ script prein
+ getent group dbus >/dev/null || groupadd -r dbus
+ getent passwd dbus >/dev/null || \
+ useradd -r -g dbus -d / -s /sbin/nologin \
+ -c "User for dbus service" dbus
+ exit 0
+ end
+
+ # Just search for new unit files that were just installed.
+ script postin
+ systemctl daemon-reload >/dev/null 2>&1 || :
+
+ # The dbus service should be started on default.
+ systemctl enable dbus-broker.service > /dev/null 2>&1 || :
+ end
+
+ # Disable the service that is to be removed and stop it if it is still running.
+ script preun
+ systemctl --no-reload disable dbus-broker.service >/dev/null 2>&1 || :
+ systemctl stop dbus-broker.service >/dev/null 2>&1 || :
+ end
+
+ # Just tell systemd that unitfiles have been removed.
+ script postun
+ systemctl daemon-reload >/dev/null 2>&1 || :
+ end
+
+ # Try to restart the service if it is running.
+ script postup
+ systemctl daemon-reload >/dev/null 2>&1 || :
+ systemctl try-restart dbus-broker.service >/dev/null 2>&1 || :
+ end
+ end
+
+ package %{name}-debuginfo
+ template DEBUGINFO
+ end
+end
--
2.30.2
next reply other threads:[~2023-01-07 21:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-07 21:05 Stefan Schantl [this message]
2023-01-07 21:05 ` [PATCH 2/2] dbus: Refactor package Stefan Schantl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230107210505.131637-1-stefan.schantl@ipfire.org \
--to=stefan.schantl@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox