app-admin/toolbox: Migrate versioned ebuild away from git eclass

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
James Le Cuirot 2025-12-22 16:17:38 +00:00
parent f430165d61
commit e19f399f88
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137
3 changed files with 15 additions and 13 deletions

View File

@ -0,0 +1 @@
DIST toolbox-a33dd49910b9208bcb835662308242494446a0ff.tar.gz 11780 BLAKE2B a12731927492fe118a4d1bae0c43b6d79297dcc25f312dc95045abeebe9b8701948ae95a6c15108ea50ceb81b680a913b0149b59f4444dc939dc8f4b2c3997dc SHA512 537fca7dc3b92715cf88cfb70708e3172c872cbf892433b16c22412086830771b140f0d1455e3747759b45405114662584b5f629c5b065ff1f89a1c363b4da5d

View File

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">flatcar/toolbox</remote-id>
</upstream>
</pkgmetadata>

View File

@ -1,26 +1,24 @@
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGIT_REPO_URI="https://github.com/flatcar/toolbox.git"
EAPI=8
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm64"
DESCRIPTION="Launches a container to bring in your favorite debugging or admin tools"
HOMEPAGE="https://github.com/flatcar/toolbox"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/flatcar/toolbox.git"
inherit git-r3
else
EGIT_COMMIT="2fae95b467d6961a396b88d6aa20a9d6bee943c6" # main
EGIT_VERSION="a33dd49910b9208bcb835662308242494446a0ff" # main
SRC_URI="https://github.com/flatcar/toolbox/archive/${EGIT_VERSION}.tar.gz -> ${PN}-${EGIT_VERSION}.tar.gz"
S="${WORKDIR}/${PN}-${EGIT_VERSION}"
KEYWORDS="amd64 arm64"
fi
inherit git-r3
DESCRIPTION="toolbox"
HOMEPAGE="https://github.com/flatcar/toolbox"
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
src_install() {
dobin ${S}/toolbox
dobin toolbox
}