pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

forgejo-runner: register missing dependencies



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Tue Sep 1 00:19:49 2026 +0200
Changeset:	387a9e13aa788eab7fd7fbe2ab2486656a67c861

Modified Files:
	forgejo-runner/Makefile
	forgejo-runner/files/forgejo-runner.sh

Log Message:
forgejo-runner: register missing dependencies

devel/git-base is necessary to clone the code of the actions, and
lang/nodejs is required to perform them.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=387a9e13aa788eab7fd7fbe2ab2486656a67c861

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 forgejo-runner/Makefile                | 6 +++++-
 forgejo-runner/files/forgejo-runner.sh | 3 +++
 2 files changed, 8 insertions(+), 1 deletion(-)

diffs:
diff --git a/forgejo-runner/Makefile b/forgejo-runner/Makefile
index a0ba7b360c..227c0caec4 100644
--- a/forgejo-runner/Makefile
+++ b/forgejo-runner/Makefile
@@ -11,10 +11,13 @@ HOMEPAGE=	https://forgejo.com/forgejo/runner/
 COMMENT=	Runner for forgejo
 LICENSE=	mit
 
-GO_VERSION_REQD=125
+GO_VERSION_REQD=	125
 
 WRKSRC=		${WRKDIR}/${DIST_SUBDIR}
 
+DEPENDS+=	git-base-[0-9]*:../../devel/git-base
+DEPENDS+=	nodejs-[0-9]*:../../lang/nodejs
+
 BUILD_DEFS+=	VARBASE FORGEJO_RUNNER_USER FORGEJO_RUNNER_GROUP
 
 EGDIR=		${PREFIX}/share/examples/forgejo-runner
@@ -46,6 +49,7 @@ CONF_FILES_PERMS+=	${EGDIR}/config.yaml ${PKG_SYSCONFDIR}/config.yaml \
 
 FILES_SUBST+=		FORGEJO_RUNNER_USER=${FORGEJO_RUNNER_USER}
 FILES_SUBST+=		FORGEJO_RUNNER_GROUP=${FORGEJO_RUNNER_GROUP}
+FILES_SUBST+=		FORGEJO_RUNNER_USER_HOME=${VARBASE}/db/forgejo-runner
 
 RCD_SCRIPTS+=		forgejo-runner
 
diff --git a/forgejo-runner/files/forgejo-runner.sh b/forgejo-runner/files/forgejo-runner.sh
index cda04c7ecd..822f9d7922 100644
--- a/forgejo-runner/files/forgejo-runner.sh
+++ b/forgejo-runner/files/forgejo-runner.sh
@@ -17,6 +17,9 @@ required_files="@PKG_SYSCONFDIR@/config.yaml"
 command="@PREFIX@/bin/forgejo-runner"
 command_args="--config @PKG_SYSCONFDIR@/config.yaml daemon > /dev/null &"
 
+forgejo_runner_env="HOME=@FORGEJO_RUNNER_USER_HOME@"
+forgejo_runner_env="${forgejo_runner_env} PATH=@PREFIX@/bin:$PATH"
+
 forgejo_runner_user="@FORGEJO_RUNNER_USER@"
 forgejo_runner_group="@FORGEJO_RUNNER_GROUP@"
 


Home | Main Index | Thread Index | Old Index