commit: 14ce761c9060eeb6ea0ff494f8990be06f2b04ac Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Sat Jul 23 20:54:59 2022 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Sat Jul 23 20:58:49 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14ce761c
app-misc/spire: add 1.3.3 Bug: https://bugs.gentoo.org/844376 Signed-off-by: William Hubbs <williamh <AT> gentoo.org> app-misc/spire/Manifest | 2 ++ app-misc/spire/spire-1.3.3.ebuild | 56 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/app-misc/spire/Manifest b/app-misc/spire/Manifest index 1f7bf02bcda3..306cac4a26c6 100644 --- a/app-misc/spire/Manifest +++ b/app-misc/spire/Manifest @@ -1581,3 +1581,5 @@ DIST sigs.k8s.io%2Fyaml%2F@v%2Fv1.2.0.mod 106 BLAKE2B bd5d8af6c5046c6de9b171ea29 DIST sigs.k8s.io%2Fyaml%2F@v%2Fv1.2.0.zip 20937 BLAKE2B 1bc20da34d11c6704b2d34eb93b06fd376d1b0932626c7dcbdaf43df8c8eb14e07529e84e028576bb67ce1961c3c86d0303d375d8d0aa372ded259c3561b9291 SHA512 52a52b3d380ae6e2cbe1b2c849d3089f74aa876fb3fadfbd02eada97446e0f2cf387f10ddb527f2dfefd57dccba8c82b0b349efbecaa0e6e3d00dc2b5d4fc21e DIST spire-1.1.0.tar.gz 2321572 BLAKE2B 3668089e05839d5e212325902d1a0fca6f8bd530999be4e2eea15c87ea134722095a32747ea25c457c722bf2200c44cf57b64401560fdd1196b07a4d0e0dc5f4 SHA512 62a198c148e693172874ab31014b7113e8bc68a9cce4b3f7bc023c143ea52e68f641eb31144dfc4d947b535726101a500902837ebecff9f5d3d2011d0b28452e DIST spire-1.2.0.tar.gz 2341641 BLAKE2B 000c84c2397a1b4f2b679403da5f4b1fdf6b6ea9090c9f21a04379851db93f413a71cc95fb9d0599e5d607681bc7f0c5925d4ddc9152631fb629904251005ff1 SHA512 49e0f2b0b9e2fdd8dd9eac3cb712ea3ef5a3a4346d59fa0c02c3b3b466f635b3ab73f8f59f64b351287cfb32a24dfa6059c5030869b0d2a149875d8283054b6c +DIST spire-1.3.3-deps.tar.xz 248328956 BLAKE2B 3d07927bad4490c6c87af97cd1c70350c3534993bd907a42b8bd06e31b446f930939e7530d76f771961c07d67f513f2d4f43b1608226701feb21ae18508663e1 SHA512 2d32b2705013f3148a0c26aa77bdf2234233c060b449bcbd73df417e7a9aef254a3fc066cf95b21a03f41cbcf918f23c5d56ad1c83859e8a1360c5a2208bb470 +DIST spire-1.3.3.tar.gz 2426257 BLAKE2B 743a497f37edacd11e21dbd2f89b565b7133d3a098cca9c6fbc0ffd3019b00ac0adac90c68d487fd20aee599a4030aeb03496bb78cd01a5c162cad5087cd8646 SHA512 9417aa53725a893b8b3da59fe8ae15bcbdb650a05dd94065b3ad5d6621a2d2225ef211ed67397094d1b61465d34c1731e4c0d88edd93f6db5ce11f76fad342d6 diff --git a/app-misc/spire/spire-1.3.3.ebuild b/app-misc/spire/spire-1.3.3.ebuild new file mode 100644 index 000000000000..c768e22fd8f1 --- /dev/null +++ b/app-misc/spire/spire-1.3.3.ebuild @@ -0,0 +1,56 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="the spiffe runtime environment" +HOMEPAGE="https://github.com/spiffe/spire" +SRC_URI="https://github.com/spiffe/spire/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +COMMON_DEPEND="acct-group/spire + acct-user/spire" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +RESTRICT="test" + +src_compile() { + local targets v + targets=( + bin/spire-server + bin/spire-agent + bin/k8s-workload-registrar + bin/oidc-discovery-provider + ) + v=$(go version | cut -d ' ' -f 3) || die + v=${v#go} + emake go_version_full="${v}" "${targets[@]}" +} + +src_test() { + go test ./... || die "tests failed" +} + +src_install() { + exeinto /opt/spire + doexe bin/* + keepdir /opt/spire/.data + insinto /etc/spire + doins -r conf/* + dosym ../../etc/spire /opt/spire/conf + dosym ../../opt/spire/spire-agent /usr/bin/spire-agent + dosym ../../opt/spire/spire-server /usr/bin/spire-server + newconfd "${FILESDIR}"/spire-agent.confd spire-agent + newinitd "${FILESDIR}"/spire-agent.initd spire-agent + newconfd "${FILESDIR}"/spire-server.confd spire-server + newinitd "${FILESDIR}"/spire-server.initd spire-server + keepdir /var/log/spire + fowners spire:spire /opt/spire/.data + fowners spire:spire /var/log/spire +}