acct-*/runner: rename to forgejo-runner

Hasn't hit master yet, so no pkgmove needed.

Drop systemd service file patch. Use sed to inject `PN` and `EPREFIX`.

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
Paul Zander
2026-03-27 15:14:35 +01:00
parent b6876d75bf
commit cb6a910c88
7 changed files with 26 additions and 27 deletions

View File

@@ -31,13 +31,9 @@ DEPEND="
"
RDEPEND="
acct-user/runner[docker=,podman=,lxc=]
acct-user/${PN}[docker=,podman=,lxc=]
"
PATCHES=(
"${FILESDIR}/${PN}-systemd-rundir.patch"
)
src_unpack() {
if [[ "${PV}" == *9999* ]]; then
git-r3_src_unpack
@@ -47,6 +43,17 @@ src_unpack() {
fi
}
src_prepare() {
default
sed \
-e "/ExecStart=/s#=.*#=${EPREFIX}/usr/bin/forgejo-runner daemon -c %h/runner-config.yml#g" \
-e "/ExecReload=/s#=#=${EPREFIX}#g" \
-e "/User=/s#=.*#=${PN}#g" \
-e '/WorkingDirectory=/s#=.*#/=~#g' \
-i contrib/forgejo-runner.service || die
}
src_compile() {
# export version information
# https://github.com/gentoo/guru/pull/205