mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -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:
@@ -31,13 +31,9 @@ DEPEND="
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/runner[docker=,podman=,lxc=]
|
||||
acct-user/${PN}[docker=,podman=,lxc=]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-systemd-rundir.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
git-r3_src_unpack
|
||||
@@ -47,6 +43,17 @@ src_unpack() {
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed \
|
||||
-e "/ExecStart=/s#=.*#=${EPREFIX}/usr/bin/forgejo-runner daemon -c %h/runner-config.yml#g" \
|
||||
-e "/ExecReload=/s#=#=${EPREFIX}#g" \
|
||||
-e "/User=/s#=.*#=${PN}#g" \
|
||||
-e '/WorkingDirectory=/s#=.*#/=~#g' \
|
||||
-i contrib/forgejo-runner.service || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# export version information
|
||||
# https://github.com/gentoo/guru/pull/205
|
||||
|
||||
Reference in New Issue
Block a user