app-misc/systembus-notify - 1.1 (jacksonchen666)

Search

Package Information

Description:
Send desktop notifications from the system bus to the user bus
Homepage:
https://github.com/rfjakob/systembus-notify
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit systemd

DESCRIPTION="Send desktop notifications from the system bus to the user bus"
HOMEPAGE="https://github.com/rfjakob/systembus-notify"
SRC_URI="https://github.com/rfjakob/systembus-notify/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

# TODO
DEPEND="
	sys-apps/systemd
"
RDEPEND="${DEPEND}"
BDEPEND="
	test? (
		dev-util/cppcheck
		sys-apps/dbus
	)
"
# TODO: tests affects real system's notifications
IUSE="test"

RESTRICT="!test? ( test )"

src_install() {
	# emulate makefile but do things correctly
	# and systemd user service instead
	default
	dobin "${S}/systembus-notify"
	systemd_douserunit "${FILESDIR}/systembus-notify.service"
}

pkg_postinst() {
	elog "Please report issues regarding the systemd unit to jacksonchen666, not upstream."
	elog ""
	elog "Untrusted users can cause a denial-of-service by spamming notifications. Pending"
	elog "https://github.com/rfjakob/systembus-notify/issues/9"
	elog ""
	elog "Gentoo's own earlyoom will not have functional notifications without editing the"
	elog "systemd unit to disable DynamicUsers (a user can be manually specified, like"
	elog "nobody)."
	elog "See https://github.com/rfjakob/earlyoom/issues/270#issuecomment-1155020972"
}

USE Flags

Dependencies

DEPEND

	sys-apps/systemd

RDEPEND

	sys-apps/systemd

BDEPEND

	test? (
		dev-util/cppcheck
		sys-apps/dbus
	)

Manifest for 1.1

Type File Size Source URLs
DIST systembus-notify-1.1.tar.gz 12561 bytes https://github.com/rfjakob/systembus-notify/archive/refs/tags/v1.1.tar.gz