Review: enroll keeps foreign db keys, configurable paths, on-demand eac-run, launcher ebuild, db dedupe tool
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
# 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
|
||||
sys-process/procps
|
||||
"
|
||||
|
||||
src_install() {
|
||||
local lib=/usr/libexec/${PN}
|
||||
|
||||
dobin "${FILESDIR}"/systemctl "${FILESDIR}"/systemd-run "${FILESDIR}"/eac-run
|
||||
exeinto ${lib}
|
||||
doexe "${FILESDIR}"/systemd-run-agent "${FILESDIR}"/socket-activate "${FILESDIR}"/socket-activate-ctl
|
||||
python_fix_shebang "${ED}"/usr/bin/systemd-run "${ED}"${lib}/systemd-run-agent "${ED}"${lib}/socket-activate
|
||||
|
||||
insinto /usr/share/polkit-1/actions
|
||||
doins "${FILESDIR}"/org.gentoo.eac-openrc-compat.policy
|
||||
|
||||
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 game launchers through eac-run, e.g. eac-run EpicGamesLauncher,"
|
||||
elog "and run a session-wide polkit authentication agent (not pkttyagent)."
|
||||
elog "Details: ${EROOT}/usr/share/doc/${PF}/README.md*"
|
||||
}
|
||||
Reference in New Issue
Block a user