mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
app-misc/spire: add 1.11.1
Closes: https://bugs.gentoo.org/906209 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
parent
8c5c967594
commit
6b7c866efa
@ -1,3 +1,5 @@
|
||||
DIST spire-1.11.1-deps.tar.xz 115162280 BLAKE2B 090aebb4e3cf4a35a3d568e65ac1fc2acd7df86bb3cfe2e234c8cdb42759bd62cff94dbff46c4960d3eec2f14ee4b8510d45cc4717819bc154c1cdc7e260fe7a SHA512 9f5c2d282723be474ee7e86d15f575af60cc0fa6a15c5f530e41b473eed67ea2cccc706fe9b5d6638e3e4511905b3dcccc03f805b82eb5be70fcc59ae6b16dfe
|
||||
DIST spire-1.11.1.tar.gz 3314465 BLAKE2B 86abfb75cc37bf4d6cae3b784b40bf6ac0ae2771acf74fdb682a87fb06469cd5bd18eff431eb645f465a769d8d90ad24b8b32eec8cf910dd413e93fa53c2f236 SHA512 afc7e677b7acc6707d0abd2c422e21a6563291f367d293035c9fdc14ac3332b4983bf71cf670c8c6dbe973c26954ea17f09dc1a0720e720e89d2a06655bd099e
|
||||
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
|
||||
DIST spire-1.7.1-deps.tar.xz 435155484 BLAKE2B 90398480e1222960c42cdf0153625f7478ad6c840623dcd40556e0a26c98f5bf24e47af2d47b61f682508c07b9b8d5288499107777efaeb747826bc82a077aae SHA512 da8219000399562770c8c004f0588ada40c45f2d576516e67c958b6c6b4a30b5bbea03986233f5103e66ab1bbe4b9bfb5fb8ef00898b18d4d49ae29f54a7a7a5
|
||||
|
||||
60
app-misc/spire/spire-1.11.1.ebuild
Normal file
60
app-misc/spire/spire-1.11.1.ebuild
Normal file
@ -0,0 +1,60 @@
|
||||
# Copyright 2019-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module
|
||||
|
||||
git_hash=32cc98e
|
||||
|
||||
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/~arthurzam/distfiles/app-misc/${PN}/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
# Dependent licenses
|
||||
LICENSE+=" BSD-2 BSD MIT ISC MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
RESTRICT="test"
|
||||
PROPERTIES="test_network"
|
||||
|
||||
DEPEND="
|
||||
acct-group/spire
|
||||
acct-user/spire
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
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() {
|
||||
ego test ./...
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user