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

@@ -0,0 +1,32 @@
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit acct-user
DESCRIPTION="Forgejo-Runner user account"
IUSE="docker podman lxc"
ACCT_USER_HOME="/var/lib/${PN}"
ACCT_USER_ID=-1
ACCT_USER_GROUPS=( "${PN}" )
acct-user_add_deps
BDEPEND+="
docker? ( acct-group/docker )
podman? ( acct-group/docker )
lxc? ( acct-group/lxc )
"
pkg_setup() {
if use docker || use podman; then
ACCT_USER_GROUPS+=( docker )
fi
if use lxc; then
ACCT_USER_GROUPS+=( lxc )
fi
}