commit:     64a9d993d46898553a72f2594e620d3f2a0fa03c
Author:     Anna (navi) Figueiredo Gomes <navi <AT> vlhl <DOT> dev>
AuthorDate: Thu Feb 27 10:52:11 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 28 12:07:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64a9d993

x11-misc/dunst: add user initd

Signed-off-by: Anna (navi) Figueiredo Gomes <navi <AT> vlhl.dev>
Closes: https://github.com/gentoo/gentoo/pull/40798
Signed-off-by: Sam James <sam <AT> gentoo.org>

 x11-misc/dunst/{dunst-9999.ebuild => dunst-1.12.1-r1.ebuild} | 10 ++++++----
 x11-misc/dunst/dunst-9999.ebuild                             |  4 +++-
 x11-misc/dunst/files/dunst.initd                             | 11 +++++++++++
 3 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/x11-misc/dunst/dunst-9999.ebuild 
b/x11-misc/dunst/dunst-1.12.1-r1.ebuild
similarity index 85%
copy from x11-misc/dunst/dunst-9999.ebuild
copy to x11-misc/dunst/dunst-1.12.1-r1.ebuild
index 38f2b2385cea..f5a7861e403a 100644
--- a/x11-misc/dunst/dunst-9999.ebuild
+++ b/x11-misc/dunst/dunst-1.12.1-r1.ebuild
@@ -1,17 +1,17 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit git-r3 systemd toolchain-funcs
-
-EGIT_REPO_URI="https://github.com/dunst-project/dunst";
+inherit systemd toolchain-funcs
 
 DESCRIPTION="Lightweight replacement for common notification daemons"
 HOMEPAGE="https://dunst-project.org/ https://github.com/dunst-project/dunst";
+SRC_URI="https://github.com/dunst-project/dunst/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 
 LICENSE="BSD"
 SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
 IUSE="+completions +dunstify wayland +X +xdg"
 
 DEPEND="
@@ -84,5 +84,7 @@ src_install() {
 
        emake "${myemakeargs[@]}" install
 
+       exeinto /etc/user/init.d
+       newexe "${FILESDIR}/dunst.initd" dunst
        systemd_newuserunit dunst.systemd.service.in dunst.service
 }

diff --git a/x11-misc/dunst/dunst-9999.ebuild b/x11-misc/dunst/dunst-9999.ebuild
index 38f2b2385cea..ffbf4be52163 100644
--- a/x11-misc/dunst/dunst-9999.ebuild
+++ b/x11-misc/dunst/dunst-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -84,5 +84,7 @@ src_install() {
 
        emake "${myemakeargs[@]}" install
 
+       exeinto /etc/user/init.d
+       newexe "${FILESDIR}/dunst.initd" dunst
        systemd_newuserunit dunst.systemd.service.in dunst.service
 }

diff --git a/x11-misc/dunst/files/dunst.initd b/x11-misc/dunst/files/dunst.initd
new file mode 100644
index 000000000000..c5bfa4cc8bc7
--- /dev/null
+++ b/x11-misc/dunst/files/dunst.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+       need dbus
+}
+
+export DBUS_SESSION_BUS_ADDRESS="${XDG_RUNTIME_DIR}/bus"
+supervisor=supervise-daemon
+command="/usr/bin/dunst"

Reply via email to