| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.9.3 | 8 | 0/1 |
# Copyright 2020-2026 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 ~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_prepare() {
# -fhardened conflicts with user setting -mindirect-branch=thunk
# https://codeberg.org/gentoo/gentoo/pulls/208#issuecomment-11187149
# Also means no longer redefining Gentoo's _FORTIFY_SOURCE
sed -i '/-fhardened/d' meson.build || die
default
}
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
}
elogind? ( sys-auth/elogind ) systemd? ( sys-apps/systemd:= )
elogind? ( sys-auth/elogind ) systemd? ( sys-apps/systemd:= ) server? ( acct-group/seat )
>=app-text/scdoc-1.9.7
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | seatd-0.9.3.tar.gz | 42086 bytes | https://git.sr.ht/~kennylevinsen/seatd/archive/0.9.3.tar.gz |