diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2023-05-23 19:22:06 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-05-31 11:37:02 +0300 |
commit | 06449b818c2e69bc58d1b760b324b94cc978db18 (patch) | |
tree | 7910869537e3491666901477421484053a95db5a /sys-auth | |
parent | sys-auth/seatd: drop 0.7.0 (diff) | |
download | gentoo-06449b818c2e69bc58d1b760b324b94cc978db18.tar.gz gentoo-06449b818c2e69bc58d1b760b324b94cc978db18.tar.bz2 gentoo-06449b818c2e69bc58d1b760b324b94cc978db18.zip |
sys-auth/seatd: Use `seat` group with OpenRC
Closes: https://bugs.gentoo.org/906790
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/31236
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'sys-auth')
-rw-r--r-- | sys-auth/seatd/files/seatd.initd-r1 | 4 | ||||
-rw-r--r-- | sys-auth/seatd/seatd-0.7.0-r2.ebuild | 62 | ||||
-rw-r--r-- | sys-auth/seatd/seatd-9999.ebuild | 12 |
3 files changed, 75 insertions, 3 deletions
diff --git a/sys-auth/seatd/files/seatd.initd-r1 b/sys-auth/seatd/files/seatd.initd-r1 new file mode 100644 index 000000000000..a71a9c480aca --- /dev/null +++ b/sys-auth/seatd/files/seatd.initd-r1 @@ -0,0 +1,4 @@ +#!/sbin/openrc-run +supervisor=supervise-daemon +command="seatd" +command_args="-g seat" diff --git a/sys-auth/seatd/seatd-0.7.0-r2.ebuild b/sys-auth/seatd/seatd-0.7.0-r2.ebuild new file mode 100644 index 000000000000..568f20ede190 --- /dev/null +++ b/sys-auth/seatd/seatd-0.7.0-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson systemd + +DESCRIPTION="Minimal seat management daemon and universal library" +HOMEPAGE="https://sr.ht/~kennylevinsen/seatd" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.sr.ht/~kennylevinsen/seatd" +else + KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~ppc ppc64 ~riscv ~sparc x86" + SRC_URI="https://git.sr.ht/~kennylevinsen/seatd/archive/${PV}.tar.gz -> ${P}.tar.gz" +fi +LICENSE="MIT" +SLOT="0/1" +IUSE="builtin elogind server systemd" +REQUIRED_USE="?? ( elogind systemd )" + +DEPEND=" + elogind? ( sys-auth/elogind ) + systemd? ( sys-apps/systemd ) +" +RDEPEND="${DEPEND} + server? ( acct-group/seat ) +" +BDEPEND=">=app-text/scdoc-1.9.7" + +src_configure() { + local emesonargs=( + -Dman-pages=enabled + $(meson_feature builtin libseat-builtin) + $(meson_feature server) + ) + + if use elogind ; then + emesonargs+=( -Dlibseat-logind=elogind ) + elif use systemd; then + emesonargs+=( -Dlibseat-logind=systemd ) + else + emesonargs+=( -Dlibseat-logind=disabled ) + fi + + meson_src_configure +} + +src_install() { + meson_src_install + + if use server; then + newinitd "${FILESDIR}/seatd.initd-r1" seatd + systemd_dounit contrib/systemd/seatd.service + + if has_version '<sys-auth/seatd-0.7.0-r2'; then + elog "For OpenRC users: seatd is now using the 'seat' group instead of the 'video' group" + elog "Make sure your user(s) are in the 'seat' group." + elog "Note: 'video' is still needed for GPU access like OpenGL" + fi + fi +} diff --git a/sys-auth/seatd/seatd-9999.ebuild b/sys-auth/seatd/seatd-9999.ebuild index a3351b9b2463..568f20ede190 100644 --- a/sys-auth/seatd/seatd-9999.ebuild +++ b/sys-auth/seatd/seatd-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2022 Gentoo Authors +# Copyright 2020-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -11,7 +11,7 @@ if [[ ${PV} == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://git.sr.ht/~kennylevinsen/seatd" else - KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" + KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~ppc ppc64 ~riscv ~sparc x86" SRC_URI="https://git.sr.ht/~kennylevinsen/seatd/archive/${PV}.tar.gz -> ${P}.tar.gz" fi LICENSE="MIT" @@ -50,7 +50,13 @@ src_install() { meson_src_install if use server; then - newinitd "${FILESDIR}/seatd.initd" seatd + newinitd "${FILESDIR}/seatd.initd-r1" seatd systemd_dounit contrib/systemd/seatd.service + + if has_version '<sys-auth/seatd-0.7.0-r2'; then + elog "For OpenRC users: seatd is now using the 'seat' group instead of the 'video' group" + elog "Make sure your user(s) are in the 'seat' group." + elog "Note: 'video' is still needed for GPU access like OpenGL" + fi fi } |