app-crypt/go-tspi: Migrate versioned ebuild away from git eclass

Note that 9999 does not currently build.

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

View File

@ -0,0 +1 @@
DIST go-tspi-27182e3e7b1dfcfb398b5408a619abc4f652a38b.tar.gz 36280 BLAKE2B 4736f354834fe31212c8530e287bb0dd36f3bdb560e4501492c14204078ca411bb53d1578012bbe08a3c27f1c5f8d345d6364d2a1f51483dce6797ae54d3968c SHA512 06f05b0abfdcfd2572607d19903338167992d60197c156638daa4a593508e6203727d260d8140cff13f280bf89db0a29fd97837b17acf77ccf6a1c61ff696977

View File

@ -1,19 +1,25 @@
EAPI=7
# Copyright 2025 The Flatcar Container Linux Maintainers
# Distributed under the terms of the Apache License 2.0
inherit coreos-go git-r3 systemd
EAPI=8
inherit coreos-go systemd
COREOS_GO_PACKAGE="github.com/coreos/go-tspi"
COREOS_GO_GO111MODULE="off"
EGIT_REPO_URI="https://github.com/coreos/go-tspi.git"
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm64"
DESCRIPTION="Go bindings and support code for libtspi and TPM communication"
HOMEPAGE="https://github.com/google/go-tspi"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/google/go-tspi.git"
inherit git-r3
else
EGIT_COMMIT="27182e3e7b1dfcfb398b5408a619abc4f652a38b"
KEYWORDS="amd64 arm64"
EGIT_VERSION="27182e3e7b1dfcfb398b5408a619abc4f652a38b"
SRC_URI="https://github.com/google/go-tspi/archive/${EGIT_VERSION}.tar.gz -> ${PN}-${EGIT_VERSION}.tar.gz"
S="${WORKDIR}/${PN}-${EGIT_VERSION}"
KEYWORDS="amd64 arm64"
fi
IUSE=""
LICENSE="Apache-2.0"
SLOT="0"
@ -21,11 +27,11 @@ RDEPEND="app-crypt/trousers"
DEPEND="${RDEPEND}"
src_compile() {
go_build "${COREOS_GO_PACKAGE}/tpmd"
go_build "${COREOS_GO_PACKAGE}/tpmown"
go_build "${COREOS_GO_PACKAGE}"/tpmd
go_build "${COREOS_GO_PACKAGE}"/tpmown
}
src_install() {
dobin ${GOBIN}/*
dobin "${GOBIN}"/*
systemd_dounit "${FILESDIR}"/tpmd.service
}

View File

@ -0,0 +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">google/go-tspi</remote-id>
</upstream>
</pkgmetadata>