8d7432ff69
CI / build (push) Successful in 7m35s
gitea.com now redirects unauthenticated requests for /<owner>/<repo>/archive/v*.tar.gz to /user/login, breaking emerge's source fetch (wget saves the login HTML, distfile size verify fails). The /api/v1/repos/<owner>/<repo>/archive/v*.tar.gz endpoint still serves anonymously and returns byte-identical contents, so the Manifest is unchanged. Updated both the live 1.0.4 ebuild SRC_URI and the bump-version.sh template so regenerated ebuilds (and the bump script's own vendor-tarball fetch) use the working URL.
38 lines
990 B
Bash
38 lines
990 B
Bash
# Copyright 2026 Ali Zein Yousuf
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit go-module
|
|
|
|
DESCRIPTION="Gitea Actions runner (formerly act_runner)"
|
|
HOMEPAGE="https://gitea.com/gitea/runner"
|
|
SRC_URI="
|
|
https://gitea.com/api/v1/repos/gitea/runner/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
|
https://git.azy.dev/azy5030/azy5030-overlay/releases/download/${PN}-${PV}-vendor/${P}-vendor.tar.xz
|
|
"
|
|
S="${WORKDIR}/runner"
|
|
|
|
# Upstream is MIT; the remaining licenses cover the vendored Go modules that
|
|
# are statically linked into the binary.
|
|
LICENSE="MIT Apache-2.0 BSD BSD-2 ISC MPL-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
BDEPEND=">=dev-lang/go-1.26.0"
|
|
# The runner shells out to the docker client for the Docker backend.
|
|
RDEPEND="app-containers/docker-cli"
|
|
|
|
src_compile() {
|
|
local ldflags=(
|
|
-s -w
|
|
-X "gitea.com/gitea/runner/internal/pkg/ver.version=v${PV}"
|
|
)
|
|
ego build -ldflags="${ldflags[*]}" -o gitea-runner .
|
|
}
|
|
|
|
src_install() {
|
|
dobin gitea-runner
|
|
einstalldocs
|
|
}
|