summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/spire')
-rw-r--r--app-misc/spire/Manifest2
-rw-r--r--app-misc/spire/spire-1.6.4.ebuild56
2 files changed, 58 insertions, 0 deletions
diff --git a/app-misc/spire/Manifest b/app-misc/spire/Manifest
index 6a7ea13f120e..82defc789da6 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.2-deps.tar.xz 388681232 BLAKE2B 1f9cc5c760a8be0efd5b08b0a4b0f00ae586a810384add639f9b7811d8ac0b96949a7c33ef3766a6e7ffe157fd15a9c4fb6b7345787b10acc401ebe6f0c6827a SHA512 4438d8fa9161f8bc0536ba07973a81a609b00adf73238ea1d8a5c75641ed8038f54119b6b11dfdde5d6a6d50e2bcf99bda4caa6fba1b798acf2af6579a835b34
DIST spire-1.6.2.tar.gz 2490633 BLAKE2B 8c78b396e8e96266bcc0740e5e63f0f88c49d0513033c10e72c9e7248ce2a929ad7503c93516a290c7acc3f1cdd73685b0295a29d4a7c76498d2542738ce77d9 SHA512 be04beb730fb2ada0637f60b4b9a4f7372ec2052776c9f04cd8019e38f8c3d043e0b080bee0474257b1474ddfca51e4640d288e97e12540fefd8a81a3832498c
+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
diff --git a/app-misc/spire/spire-1.6.4.ebuild b/app-misc/spire/spire-1.6.4.ebuild
new file mode 100644
index 000000000000..759826817bb9
--- /dev/null
+++ b/app-misc/spire/spire-1.6.4.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2019-2023 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_prepare() {
+ default
+ sed -i -e 's/build:.*tidy/build:/' Makefile
+ set -- $(go version)
+ x=${3#go}
+ echo ${x} > .go-version
+}
+
+src_compile() {
+ emake build
+}
+
+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
+}