summaryrefslogtreecommitdiff
path: root/app-misc/spire
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-09-06 10:28:05 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-09-06 10:28:05 +0100
commitf1af93971b7490792d8541bc790e0d8c6d787059 (patch)
treea38046712bbc3a3844d77452d16c84e716caa3d4 /app-misc/spire
parentfc637fb28da700da71ec2064d65ca5a7a31b9c6c (diff)
gentoo resync : 06.08.2019
Diffstat (limited to 'app-misc/spire')
-rw-r--r--app-misc/spire/Manifest8
-rw-r--r--app-misc/spire/files/spire-agent.confd6
-rw-r--r--app-misc/spire/files/spire-agent.initd12
-rw-r--r--app-misc/spire/files/spire-server.confd6
-rw-r--r--app-misc/spire/files/spire-server.initd12
-rw-r--r--app-misc/spire/metadata.xml8
-rw-r--r--app-misc/spire/spire-0.8.1.ebuild61
7 files changed, 113 insertions, 0 deletions
diff --git a/app-misc/spire/Manifest b/app-misc/spire/Manifest
new file mode 100644
index 000000000000..d75538236ce9
--- /dev/null
+++ b/app-misc/spire/Manifest
@@ -0,0 +1,8 @@
+AUX spire-agent.confd 172 BLAKE2B edeab0e043ae0efb94ce7ce6fc6edd57d75de6294a9190e874de7c2daed4a49fb098d105e64ec15ef7b1184e69d6263006076d84984fb80b9b5d72febe28fae1 SHA512 717177be0f65a4357eb29393a4b553e9c856e7694b16df4f1a05e0e26ced34b9d206354928e885a6e8c3f8adbc89c724b5e15aad8f920004093c3d5a0c22d389
+AUX spire-agent.initd 403 BLAKE2B cdac81d4d5aaa7fa1222070c0b287c07299e32c561fd98aed537a734de43bb2d1cf91da26bb2afcd2c88268d2a181e4646ac17c83ec4783ecb188df6ed936258 SHA512 ad538b741a890203c4bf25658ed4957fc434118d2dd56cd8c6e5a4a62a03a595560de5c5139572d641f79308737ebf11449cb87b679aaad55a8654940c28b233
+AUX spire-server.confd 176 BLAKE2B 9a0158a8882be40483d6cf5b34b76337064847f86d0afc4a19f12d9a43e13f6075a1c605d6a88cdf9d5012d0aa80ff6a66cb689ab578f6cb24f001dd59b25ca5 SHA512 4f8cde7dcbed2b89b22a565c7c842293061f1de354bf98b863b3551ded32e13342fa3e9efc247f922b463724697a87631950085aa67dc091a9db8600b2f96b05
+AUX spire-server.initd 408 BLAKE2B d5e2c8c8af1d27332a6a0762f0795b5a9c9367a95a00ce1eb8e84be06f3bb3201cfed91033ca742ea5ba31477d2bddafb7ee0fdf8e1094d6bc93fe791992a5b4 SHA512 511e3a2bb0baace563504deaf465a64b6ed4b1368afd7b5398357c6a13b1472b29e3da7a9027318a5bc97e3b69561fa24b9d83c022648de24fe5fcc884f93525
+DIST spire-0.8.1-vendor.tar.gz 10550551 BLAKE2B 4ab04c0e4de231097620a015f523ed9d7e0d6872425826e4bc3572f920a4d3de5174cb78f4ed61340ffc1abe3e25d42e8735228b142b424c85ef24fac52740ca SHA512 879cba4eaa681814858fa7965b28d0217d4ae806c979d348cb6d5f413dca7f03f99c34b8dcdbc0dad8e5253990a473962b9c1438ba79bef5fe757df11c7f4ee7
+DIST spire-0.8.1.tar.gz 1070262 BLAKE2B 7e30ac233759f2fed7476a82d072c4ec7815346cb50419b10ac7c5ce566aae6e783a51284a39847d63c04b0e398aab7ad15d94ea4e05569b43e762abfadaf550 SHA512 aa864f3f1d0faa8b7bfa527effde244957f9b30c6f115e49819777b6f3a5ea751ed751ac19b94a45d02aa22e719e6bd6e33355f9b561bbc5458d5997d95a1437
+EBUILD spire-0.8.1.ebuild 1519 BLAKE2B 16c667d2a4ce8be6074b4693e15d62380d1833c9a300dac33aed007ffc77f587c7be4093130855cd3a2684f5043e9985abbe617375bd6abb3cc41a81cdbbf45e SHA512 e710d49d992165bf5400a87a5d0ba57e88bef970e06e2b41fff8ba6b450e4f3ea5332d5b47aba6e09d0df2089825e0d73741027eb4539b749abb9bb23c5591b1
+MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0
diff --git a/app-misc/spire/files/spire-agent.confd b/app-misc/spire/files/spire-agent.confd
new file mode 100644
index 000000000000..c88234b0a32e
--- /dev/null
+++ b/app-misc/spire/files/spire-agent.confd
@@ -0,0 +1,6 @@
+# log file for the spire agent.
+# The default is /var/log/spire/spire-agent.log
+#logfile=""
+#
+# Extra arguments to pass when starting the spire agent.
+#spire_agent_args=""
diff --git a/app-misc/spire/files/spire-agent.initd b/app-misc/spire/files/spire-agent.initd
new file mode 100644
index 000000000000..bd64143f3e83
--- /dev/null
+++ b/app-misc/spire/files/spire-agent.initd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+# Copyright 2019 Sony Interactive Entertainment LLC
+# Distributed under the terms of the GNU General Public License v2
+
+name="spire agent daemon"
+description="spire agent"
+logfile="${logfile:-/var/log/spire/spire-agent.log}"
+command=/opt/spire/spire-agent
+command_args="run --logFile ${logfile} ${spire_agent_args}"
+command_user=spire
+directory=/opt/spire
+supervisor=supervise-daemon
diff --git a/app-misc/spire/files/spire-server.confd b/app-misc/spire/files/spire-server.confd
new file mode 100644
index 000000000000..835686132479
--- /dev/null
+++ b/app-misc/spire/files/spire-server.confd
@@ -0,0 +1,6 @@
+# log file for the spire server.
+# The default is /var/log/spire/spire-server.log
+#logfile=""
+#
+# Extra arguments to pass when starting the spire server.
+#spire_server_args=""
diff --git a/app-misc/spire/files/spire-server.initd b/app-misc/spire/files/spire-server.initd
new file mode 100644
index 000000000000..4594f5d1fa8d
--- /dev/null
+++ b/app-misc/spire/files/spire-server.initd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+# Copyright 2019 Sony Interactive Entertainment LLC
+# Distributed under the terms of the GNU General Public License v2
+
+name="spire server daemon"
+description="spire server"
+logfile="${logfile:-/var/log/spire/spire-server.log}"
+command=/opt/spire/spire-server
+command_args="run --logFile ${logfile} ${spire_server_args}"
+command_user=spire
+directory=/opt/spire
+supervisor=supervise-daemon
diff --git a/app-misc/spire/metadata.xml b/app-misc/spire/metadata.xml
new file mode 100644
index 000000000000..c36c37139fad
--- /dev/null
+++ b/app-misc/spire/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>williamh@gentoo.org</email>
+ <name>William Hubbs</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/spire/spire-0.8.1.ebuild b/app-misc/spire/spire-0.8.1.ebuild
new file mode 100644
index 000000000000..15aa92b309c2
--- /dev/null
+++ b/app-misc/spire/spire-0.8.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+VENDOR_URI="https://dev.gentoo.org/~whubbs/dist/${P}-vendor.tar.gz"
+
+DESCRIPTION="the spiffe runtime environment"
+HOMEPAGE="https://github.com/spiffe/spire"
+SRC_URI="https://github.com/spiffe/spire/archive/${PV}.tar.gz -> ${P}.tar.gz
+ ${VENDOR_URI}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+COMMON_DEPEND="acct-group/spire
+ acct-user/spire"
+DEPEND="${COMMON_DEPEND}
+ dev-lang/go"
+RDEPEND="${COMMON_DEPEND}"
+
+RESTRICT="strip"
+
+src_prepare() {
+ default
+ mv ../vendor . || die "Unable to move ../vendor directory"
+}
+
+do_cmd() {
+ if [[ -z "$@" ]]; then
+ die "No arguments passed to do_cmd"
+ fi
+ echo $@
+ $@ || die
+}
+
+src_compile() {
+do_cmd cd cmd/spire-agent
+ do_cmd go build -mod vendor -o ../../spire-agent
+do_cmd cd ../../cmd/spire-server
+ do_cmd go build -mod vendor -o ../../spire-server
+}
+
+src_install() {
+ exeinto /opt/spire
+ doexe spire-agent spire-server
+ keepdir /opt/spire/.data
+ fowners spire:spire /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 /var/log/spire
+}