# Copyright 2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{13..14} ) inherit python-single-r1 DESCRIPTION="systemctl, systemd-run and socket activation for the EAC Linux v2 service on OpenRC" HOMEPAGE="https://easy.ac" S="${WORKDIR}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND=" ${PYTHON_DEPS} !sys-apps/systemd sys-apps/openrc sys-apps/util-linux sys-auth/elogind sys-auth/polkit " src_install() { dobin "${FILESDIR}"/systemctl "${FILESDIR}"/systemd-run exeinto /usr/libexec/${PN} doexe "${FILESDIR}"/systemd-run-agent "${FILESDIR}"/socket-activate python_fix_shebang "${ED}"/usr/bin/systemd-run "${ED}"/usr/libexec/${PN} newinitd "${FILESDIR}"/socket-activate.initd socket-activate dosym socket-activate /etc/init.d/socket-activate.easyanticheat_eos newconfd "${FILESDIR}"/easyanticheat_eos.confd socket-activate.easyanticheat_eos # EAC's helper links libsystemd.so.0; elogind exports the same LIBSYSTEMD_* symbol versions. dosym libelogind.so.0 /usr/$(get_libdir)/libsystemd.so.0 dodoc "${FILESDIR}"/README.md } pkg_postinst() { elog "Start ${EPREFIX}/usr/libexec/${PN}/systemd-run-agent from your compositor's autostart," elog "and run a session-wide polkit authentication agent there (not pkttyagent)." elog "Details: ${EROOT}/usr/share/doc/${PF}/README.md*" }