mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
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:
32
acct-user/forgejo-runner/forgejo-runner-0.ebuild
Normal file
32
acct-user/forgejo-runner/forgejo-runner-0.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user