[Bug 291630] devel/forgejo-runner: 15 releases behind upstream and broken rc script, missing dirs
Date: Sat, 13 Dec 2025 18:38:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291630
--- Comment #2 from João Santiago <me@jcpsantiago.xyz> ---
Comment on attachment 266156
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266156
Update to 12.1.2 and fix missing dirs and rc script
>diff --color=auto -ruN /home/santi/freebsd-ports/devel/forgejo-runner/Makefile forgejo-runner/Makefile
>--- /home/santi/freebsd-ports/devel/forgejo-runner/Makefile 2025-12-11 21:44:34.200587000 +0100
>+++ forgejo-runner/Makefile 2025-12-11 23:27:13.663398000 +0100
>@@ -1,7 +1,7 @@
> PORTNAME= act_runner
> DISTVERSIONPREFIX= v
>-DISTVERSION= 9.1.0
>-PORTREVISION= 6
>+DISTVERSION= 12.1.2
> CATEGORIES= devel
> PKGNAMEPREFIX= forgejo-
>
>@@ -12,33 +12,50 @@
> COMMENT= Act runner is a runner for Forgejo based on the Gitea Act runner
> WWW= https://code.forgejo.org/forgejo/runner
>
>-LICENSE= MIT APACHE20
>+LICENSE= APACHE20 MIT
> LICENSE_COMB= multi
> LICENSE_FILE_APACHE20= ${WRKSRC}/act/container/DOCKER_LICENSE
> LICENSE_FILE_MIT= ${WRKSRC}/LICENSE
>
>-USES= go:modules
>+USES= go:modules
> USE_RC_SUBR= ${PORTNAME}
>
>-GO_MODULE= code.forgejo.org/forgejo/runner/v9
>+GO_MODULE= code.forgejo.org/forgejo/runner/v12
> GO_BUILDFLAGS= -ldflags "${LD_FLAG_STRING}"
>
>-LD_FLAG_STRING= -s ${LD_FLAG_X_PREFIX}.version=${DISTVERSION}
>+LD_FLAG_STRING= -s ${LD_FLAG_X_PREFIX}.version=${DISTVERSION}
> LD_FLAG_X_PREFIX= -X ${GO_MODULE}/internal/pkg/ver
>
> DATADIR= /var/db/${PORTNAME}
>+SUB_LIST= ACT_RUNNER_USER=${ACT_RUNNER_USER} \
>+ LOGDIR=${LOGDIR} \
>+ PIDDIR=${PIDDIR}
>
> ACT_RUNNER_USER?= ${PORTNAME}
> ACT_RUNNER_GROUP?= ${PORTNAME}
> .if ${ACT_RUNNER_USER} == ${PORTNAME}
>-USERS= ${ACT_RUNNER_USER}
>+USERS= ${ACT_RUNNER_USER}
> .endif
> .if ${ACT_RUNNER_GROUP} == ${PORTNAME}
>-GROUPS= ${ACT_RUNNER_GROUP}
>+GROUPS= ${ACT_RUNNER_GROUP}
> .endif
>
>+LOGDIR= /var/log/${PORTNAME}
>+PIDDIR= /var/run/${PORTNAME}
>+
>+PLIST_SUB= ACT_RUNNER_GROUP=${ACT_RUNNER_GROUP} \
>+ ACT_RUNNER_USER=${ACT_RUNNER_USER} \
>+ DATADIR=${DATADIR} \
>+ LOGDIR=${LOGDIR} \
>+ PIDDIR=${PIDDIR}
>+
> post-install:
>- ${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${ETCDIR}
>+ ${MKDIR} \
>+ ${STAGEDIR}${ETCDIR} \
>+ ${STAGEDIR}${DATADIR} \
>+ ${STAGEDIR}${LOGDIR} \
>+ ${STAGEDIR}${PIDDIR}
>+
> ${INSTALL_DATA} ${BUILD_WRKSRC}/internal/pkg/config/config.example.yaml \
> ${STAGEDIR}${ETCDIR}/act_runner.conf.sample
>
>diff --color=auto -ruN /home/santi/freebsd-ports/devel/forgejo-runner/distinfo forgejo-runner/distinfo
>--- /home/santi/freebsd-ports/devel/forgejo-runner/distinfo 2025-12-11 21:44:34.200692000 +0100
>+++ forgejo-runner/distinfo 2025-12-11 21:44:28.285657000 +0100
>@@ -1,7 +1,7 @@
>-TIMESTAMP = 1755498518
>-SHA256 (go/devel_forgejo-runner/act_runner-v9.1.0/v9.1.0.mod) = 18d6c2c0fe0ff15434a5a60eb0a26d3c17ad1103d9e93f4c1272d551fcb756a7
>-SIZE (go/devel_forgejo-runner/act_runner-v9.1.0/v9.1.0.mod) = 4728
>-SHA256 (go/devel_forgejo-runner/act_runner-v9.1.0/v9.1.0.zip) = c7b6012a46048aeddb49e0429a20fdc72905974667516fcf0884af8007c4ac02
>-SIZE (go/devel_forgejo-runner/act_runner-v9.1.0/v9.1.0.zip) = 3878583
>-SHA256 (go/devel_forgejo-runner/act_runner-v9.1.0/34731a41be456d5b6328d8c118ba8e0b6c6a226b.diff) = fe7da83cfa0170b819ced458bafec9dd4b8353b275256409e269153d65b3fe8a
>-SIZE (go/devel_forgejo-runner/act_runner-v9.1.0/34731a41be456d5b6328d8c118ba8e0b6c6a226b.diff) = 3891
>+TIMESTAMP = 1765480217
>+SHA256 (go/devel_forgejo-runner/act_runner-v12.1.2/v12.1.2.mod) = 57ca4519dcacf63f03daec6352731fcac4d7f191cc2d52ac2dce4347412a8537
>+SIZE (go/devel_forgejo-runner/act_runner-v12.1.2/v12.1.2.mod) = 4812
>+SHA256 (go/devel_forgejo-runner/act_runner-v12.1.2/v12.1.2.zip) = 026fe110955283e27258e82da698882705337a6a4f243eef32ff88e7bcba4347
>+SIZE (go/devel_forgejo-runner/act_runner-v12.1.2/v12.1.2.zip) = 3968489
>+SHA256 (go/devel_forgejo-runner/act_runner-v12.1.2/34731a41be456d5b6328d8c118ba8e0b6c6a226b.diff) = fe7da83cfa0170b819ced458bafec9dd4b8353b275256409e269153d65b3fe8a
>+SIZE (go/devel_forgejo-runner/act_runner-v12.1.2/34731a41be456d5b6328d8c118ba8e0b6c6a226b.diff) = 3891
>diff --color=auto -ruN /home/santi/freebsd-ports/devel/forgejo-runner/files/act_runner.in forgejo-runner/files/act_runner.in
>--- /home/santi/freebsd-ports/devel/forgejo-runner/files/act_runner.in 2025-12-11 21:44:34.200815000 +0100
>+++ forgejo-runner/files/act_runner.in 2025-12-11 21:44:28.888207000 +0100
>@@ -16,19 +16,18 @@
>
> load_rc_config "${name}"
>
>-: ${act_runner_user:="act_runner"}
>+: ${act_runner_user:="%%ACT_RUNNER_USER%%"}
> : ${act_runner_enable:="NO"}
> : ${act_runner_facility:="daemon"}
> : ${act_runner_priority:="debug"}
> : ${act_runner_config:="%%ETCDIR%%/act_runner.conf"}
>-: ${act_runner_cache_dir:="%%DATADIR%%"}
>-: ${act_runner_log_dir:="/var/log/act_runner"}
>-: ${act_runner_log_file:="${act_runner_log_dir}/act_runner.log"}
>+: ${act_runner_log_dir:="%%LOGDIR%%"}
>+: ${act_runner_log_file:="${act_runner_log_dir}/${name}.log"}
> : ${act_runner_args:="-c ${act_runner_config} daemon"}
>
> command="/usr/sbin/daemon"
>
>-pidfile="/var/run/${name}.pid"
>+pidfile="%%PIDDIR%%/${name}.pid"
> exec_path="%%PREFIX%%/bin/act_runner"
>
> required_files=${act_runner_config}
>@@ -48,7 +47,7 @@
>
> command_args=" -r -S -l ${act_runner_facility} -s ${act_runner_priority} \
> -T ${name} \
>- -u ${act_runner_user} -P ${pidfile} \
>+ -P ${pidfile} \
> -o ${act_runner_log_file} \
> ${exec_path} ${act_runner_args}"
>
>diff --color=auto -ruN /home/santi/freebsd-ports/devel/forgejo-runner/pkg-plist forgejo-runner/pkg-plist
>--- /home/santi/freebsd-ports/devel/forgejo-runner/pkg-plist 2025-12-11 21:44:34.200886000 +0100
>+++ forgejo-runner/pkg-plist 2025-12-11 21:44:28.888133000 +0100
>@@ -1,3 +1,7 @@
> bin/act_runner
> @sample %%ETCDIR%%/act_runner.conf.sample
>-@dir(%%ACT_RUNNER_USER%%,%%ACT_RUNNER_GROUP%%,750) %%DATADIR%%
>+@owner %%ACT_RUNNER_USER%%
>+@group %%ACT_RUNNER_GROUP%%
>+@dir %%DATADIR%%
>+@dir %%LOGDIR%%
>+@dir %%PIDDIR%%
--
You are receiving this mail because:
You are the assignee for the bug.