diff options
author | William Hubbs <williamh@gentoo.org> | 2022-07-23 15:54:59 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2022-07-23 15:58:49 -0500 |
commit | 14ce761c9060eeb6ea0ff494f8990be06f2b04ac (patch) | |
tree | 870db4c2baa8a36b2944543015cd7af59ba922cf /app-misc/spire/spire-1.3.3.ebuild | |
parent | dev-haskell/resolv: drop 0.1.2.0 (diff) | |
download | gentoo-14ce761c9060eeb6ea0ff494f8990be06f2b04ac.tar.gz gentoo-14ce761c9060eeb6ea0ff494f8990be06f2b04ac.tar.bz2 gentoo-14ce761c9060eeb6ea0ff494f8990be06f2b04ac.zip |
app-misc/spire: add 1.3.3
Bug: https://bugs.gentoo.org/844376
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-misc/spire/spire-1.3.3.ebuild')
-rw-r--r-- | app-misc/spire/spire-1.3.3.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
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 +} |