diff options
author | William Hubbs <williamh@gentoo.org> | 2023-08-11 13:57:24 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2023-08-11 13:57:24 -0500 |
commit | c622553f52eedb91acbaeef9e9042c9b508f724f (patch) | |
tree | a6b40060d4fa118fce102923912b0001238cc296 /app-misc | |
parent | dev-python/tornado: Stabilize 6.3.2-r1 sparc, #910148 (diff) | |
download | gentoo-c622553f52eedb91acbaeef9e9042c9b508f724f.tar.gz gentoo-c622553f52eedb91acbaeef9e9042c9b508f724f.tar.bz2 gentoo-c622553f52eedb91acbaeef9e9042c9b508f724f.zip |
app-misc/spire: add 1.7.1
Closes: https://bugs.gentoo.org/912071
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/spire/Manifest | 2 | ||||
-rw-r--r-- | app-misc/spire/spire-1.7.1.ebuild | 56 |
2 files changed, 58 insertions, 0 deletions
diff --git a/app-misc/spire/Manifest b/app-misc/spire/Manifest index 0ede628bda5f..1a31cc068795 100644 --- a/app-misc/spire/Manifest +++ b/app-misc/spire/Manifest @@ -2,3 +2,5 @@ DIST spire-1.3.3-deps.tar.xz 248328956 BLAKE2B 3d07927bad4490c6c87af97cd1c70350c DIST spire-1.3.3.tar.gz 2426257 BLAKE2B 743a497f37edacd11e21dbd2f89b565b7133d3a098cca9c6fbc0ffd3019b00ac0adac90c68d487fd20aee599a4030aeb03496bb78cd01a5c162cad5087cd8646 SHA512 9417aa53725a893b8b3da59fe8ae15bcbdb650a05dd94065b3ad5d6621a2d2225ef211ed67397094d1b61465d34c1731e4c0d88edd93f6db5ce11f76fad342d6 DIST spire-1.6.4-deps.tar.xz 391713668 BLAKE2B 00ad8c5035180c02400d54e2ebd14ef345475eac9a7475ed446250c7af2a0ade0188dc7b223f9bed4d33089af959478a6d181b444d60a7ea2fa6fff875c48940 SHA512 46a9ba050b5e2c1716c6c3212c53a4b506f21f495dbc6e0ee3d9c1c8adec14f4130dc254727c96c7362f43d95213ec5793323e4563f49578d5853bf9a27969ce DIST spire-1.6.4.tar.gz 2523760 BLAKE2B e08dd495326d5c6eaf8532d2b99e0d6f5253bdcf3f1ffdd5f572bfd523427e96f9849fc7b178bd6a9b4865c197264bd6bea414f9b40a0e0bcd30580f8ed4d189 SHA512 ee0c39589d7e02cc1e6d93a680d33b4a52a571a0c54c85caad2fe9637ac25e63335cf526282d808b6d5f1fd32a6a14be66bd8b17b294882fef14339b8374bf8e +DIST spire-1.7.1-deps.tar.xz 435155484 BLAKE2B 90398480e1222960c42cdf0153625f7478ad6c840623dcd40556e0a26c98f5bf24e47af2d47b61f682508c07b9b8d5288499107777efaeb747826bc82a077aae SHA512 da8219000399562770c8c004f0588ada40c45f2d576516e67c958b6c6b4a30b5bbea03986233f5103e66ab1bbe4b9bfb5fb8ef00898b18d4d49ae29f54a7a7a5 +DIST spire-1.7.1.tar.gz 2576518 BLAKE2B af749dd0c26cadfc616658a89a08c99341f527fa090d5c5df76a2a0c258524ede4efc977e2f805cc7be433de0131c69e12c31a6fd2a1b4c5d2d7d3ea43b720d9 SHA512 87979d20074aab358c304de476a6a83aa8f92b0eb8107ab034333934e9bf7067d8015f86fc0b7ff15a015ebe155d74848b6a5ec190e3d72360c45348351f4a10 diff --git a/app-misc/spire/spire-1.7.1.ebuild b/app-misc/spire/spire-1.7.1.ebuild new file mode 100644 index 000000000000..43c7a6704c24 --- /dev/null +++ b/app-misc/spire/spire-1.7.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 2019-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +git_tag=${PV} +git_hash=1b775d5 +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 go_ldflags+=" + -X github.com/spiffe/spire/pkg/common/version.gittag=${PV} + -X github.com/spiffe/spire/pkg/common/version.githash=${git_hash}" + ego build -ldflags "${go_ldflags}" \ + -o bin/spire-agent ./cmd/spire-agent + ego build -ldflags "${go_ldflags}" \ + -o bin/spire-server ./cmd/spire-server +} + +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 +dodoc -r doc/* + 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 +} |