dev-util/forgejo-runner: use acct-user/runner

Signed-off-by: Ceres <ceres@ceressees.dev>
Part-of: https://codeberg.org/gentoo/guru/pulls/3
Merges: https://codeberg.org/gentoo/guru/pulls/3
This commit is contained in:
Ceres
2026-03-17 17:07:47 +00:00
parent e97519fdff
commit e6ffac282f
4 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
diff --git a/contrib/forgejo-runner.service b/contrib/forgejo-runner.service
index 785d35df..0cbe146d 100644
--- a/contrib/forgejo-runner.service
+++ b/contrib/forgejo-runner.service
@@ -8,8 +8,8 @@ ExecStart=/usr/local/bin/forgejo-runner daemon
ExecReload=/bin/kill -s HUP $MAINPID
# This user and working directory must already exist
-User=runner
-WorkingDirectory=/home/runner
+User=runner
+WorkingDirectory=/var/lib/runner
Restart=on-failure
TimeoutSec=0
RestartSec=10

View File

@@ -22,13 +22,22 @@ fi
LICENSE="MIT"
SLOT="0"
IUSE="examples"
IUSE="examples docker podman lxc"
RESTRICT="test"
REQUIRED_USE="|| ( docker podman lxc )"
DEPEND="
>=dev-lang/go-1.25.8
"
RDEPEND="
acct-user/runner[docker=,podman=,lxc=]
"
PATCHES=(
"${FILESDIR}/${PN}-systemd-rundir.patch"
)
src_unpack() {
if [[ "${PV}" == *9999* ]]; then
git-r3_src_unpack

View File

@@ -22,13 +22,22 @@ fi
LICENSE="MIT"
SLOT="0"
IUSE="examples"
IUSE="examples docker podman lxc"
RESTRICT="test"
REQUIRED_USE="|| ( docker podman lxc )"
DEPEND="
>=dev-lang/go-1.25.8
"
RDEPEND="
acct-user/runner[docker=,podman=,lxc=]
"
PATCHES=(
"${FILESDIR}/${PN}-systemd-rundir.patch"
)
src_unpack() {
if [[ "${PV}" == *9999* ]]; then
git-r3_src_unpack

View File

@@ -9,6 +9,11 @@
<email>ceres@ceressees.dev</email>
<name>Ceres Milner</name>
</maintainer>
<use>
<flag name="docker">Have forgejo-runner use <pkg>app-containers/docker</pkg></flag>
<flag name="podman">Have forgejo-runner use <pkg>app-containers/podman</pkg></flag>
<flag name="lxc">Have forgejo-runner use <pkg>app-containers/lxc</pkg></flag>
</use>
<upstream>
<remote-id type="github">gentoo-golang-dist/forgejo-runner</remote-id>
</upstream>