dev-util/forgejo-runner: drop 12.10.1

Signed-off-by: Ceres <ceres@ceressees.dev>
This commit is contained in:
Ceres
2026-05-28 21:15:59 +01:00
parent 69d983e9ab
commit 52a27e6b4d
2 changed files with 0 additions and 97 deletions

View File

@@ -1,4 +1,2 @@
DIST forgejo-runner-12.10.1-deps.tar.xz 41920120 BLAKE2B e4e9fce749a097a5883e67c2ee3d01c808674ae3d18a2d8ab56bde61cab52cfe50198fb843f19ad55cdf34f502ce3bf35740a71a087ef363373225d8d1e4333b SHA512 534498defbc3fe3a64bc2c0a6584408bdfc17c4681849258e4e717ed18cb345d2ab02ea6abd425dad993aaf2ad68ba00e7635369bbe463506604ecd66481ee72
DIST forgejo-runner-12.10.1.tar.gz 3527716 BLAKE2B 544143af36de909ce1ab60d2f7b52641baef509d51c4575b66c45a074063c940fe74ff4763a2dc11a3a535079a3bffa3a057f0d1e38d340e011bba926a57ee27 SHA512 76b63ea474fa99d196ad1eba24bc269e041dc6676e71aa29587870f0ea6efdf375d1309630abc903084c7454014b1f4f2862dbe2e69eab92b5df3434288ec328
DIST forgejo-runner-12.10.2-deps.tar.xz 41852292 BLAKE2B bac2447f40db70fba40c46424f6ac72f925c9f17efd7b3a999cd0fb63db209f640f765885947e2f71211ea81416dea3953f9f3998c8af1aae4e06433a7840bc3 SHA512 240651ec8029c252a3e1205d7a4a0a9652e78f1ac1b4fd64db0dd4d5fbee3cdee0a5027668cf5a7ffafca7b09eb72bbe9e52283e4727598a691228bd4a9853cc
DIST forgejo-runner-12.10.2.tar.gz 3529492 BLAKE2B b405b21ba1f36d68a2a28d76294084543a10e2be658ce011e34f0a465d2a55e0704705951de090cec2446dd25cc3d11377adcbfbd2518b919d9cb958d4263008 SHA512 b121611069f5bfdb709f5b61e739c9c94ed3950c96cf8fee29ebe735a302cbac152c39062ec37739db68efa4421da51909f0a7aa64b2032f4c559a300935e6ec

View File

@@ -1,95 +0,0 @@
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd
DESCRIPTION="A daemon that connects to a Forgejo instance and runs jobs for CI"
HOMEPAGE="https://code.forgejo.org/forgejo/runner https://forgejo.org/docs/next/admin/actions/"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://code.forgejo.org/forgejo/runner.git"
else
SRC_URI="
https://code.forgejo.org/forgejo/runner/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-deps.tar.xz
"
S="${WORKDIR}/runner"
KEYWORDS="~amd64 ~arm64"
fi
LICENSE="MIT"
SLOT="0"
IUSE="examples +docker podman lxc"
RESTRICT="mirror test"
REQUIRED_USE="|| ( docker podman lxc )"
DEPEND="
>=dev-lang/go-1.25.9
"
RDEPEND="
acct-user/${PN}[docker=,podman=,lxc=]
"
src_unpack() {
if [[ "${PV}" == *9999* ]]; then
git-r3_src_unpack
go-module_live_vendor
else
go-module_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
# https://forums.gentoo.org/viewtopic-p-8831646.html
local VERSION
if [[ "${PV}" == *9999* ]]; then
VERSION="$(
git describe --tags --first-parent --abbrev=7 --long --dirty --always \
| sed -e "s/^v//g"
)"
else
VERSION="${PVR}"
fi
local EXTRA_GOFLAGS_LD=(
# "-w" # disable DWARF generation
# "-s" # disable symbol table
"-X=code.forgejo.org/forgejo/runner/v11/internal/pkg/ver.version=v${VERSION}"
)
GOFLAGS+=" '-ldflags=${EXTRA_GOFLAGS_LD[*]}'"
ego build -tags 'netgo osusergo' -o forgejo-runner
# Makefile does this
# emake forgejo-runner
}
src_install() {
dobin forgejo-runner
systemd_dounit "contrib/forgejo-runner.service"
dodoc "README.md"
if use examples; then
dodoc -r "examples"
docompress -x "/usr/share/doc/${PF}/examples"
fi
}