summaryrefslogtreecommitdiff
path: root/app-misc/notary
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/notary
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/notary')
-rw-r--r--app-misc/notary/Manifest7
-rw-r--r--app-misc/notary/files/notary-server.confd2
-rw-r--r--app-misc/notary/files/notary-server.initd19
-rw-r--r--app-misc/notary/files/notary-signer.confd2
-rw-r--r--app-misc/notary/files/notary-signer.initd19
-rw-r--r--app-misc/notary/metadata.xml11
-rw-r--r--app-misc/notary/notary-0.6.1-r1.ebuild46
7 files changed, 106 insertions, 0 deletions
diff --git a/app-misc/notary/Manifest b/app-misc/notary/Manifest
new file mode 100644
index 000000000000..292257447e4f
--- /dev/null
+++ b/app-misc/notary/Manifest
@@ -0,0 +1,7 @@
+AUX notary-server.confd 103 BLAKE2B 1f1a9f0e006bfd172218c40980a34314dffc1d06bc2a672d206fdc5f7b79ee918eeb35c79594ed954b045a28e49dfac2881fb4bfcde4db541ad94cd9c0078237 SHA512 2882af398f78011c5fce816adfc223833b808ba88dd334b85bbd97caa296cf2ca0b5e92f369307ad0066f98502367c62c1fed4e792d2f7074769f99c02a3c826
+AUX notary-server.initd 568 BLAKE2B a38ceeadc4d3bd663dced340da3040b352081dce6d27f44afead3fb05a55e9c271fbcb75746201c494cbc6218feea9bca666831443e9fd765bfa6ba6f3f81f9c SHA512 97a4666a5bbb5345103a0b1a2a2f04e5f1e3546b253bcb23d1170ce3ee056ea0baf328d40db67b18116c5cc81a1dd03489cef2edfe94044f08366833e0262c5f
+AUX notary-signer.confd 103 BLAKE2B 461b38b6c8d97e7c8cedb88e48eca0342174434a819d99883496a9622fd04c19d097a498195c9e37246420f4f01fef07219bd4c9e76dc26cf8b70d9ce43ab1c7 SHA512 088bbd2eabf1e9be673b35a4a481c270ba2ccea479ef1164804ecead730a61465862888e7cbff53976056826d4ff066e1e2ab253cd6e3287109d03873c11777b
+AUX notary-signer.initd 568 BLAKE2B a0041a57049a1709ffb0906e4cef2e6cad32172c52bddc77917e7f6293a4deba79ae0d965db53fb537d66d91dc6b06230f91d14971c408f60182b350b6a672af SHA512 325614982f75f33a9fd59a6183255fa61158c4b2288f2d06e4d88c8f1f43dc5df83c85e8ecdf40cf19f9a00b51ba641fc024d863f220b6aac8e530e17e7eb3a2
+DIST notary-0.6.1.tar.gz 5741924 BLAKE2B 125e1e09178f090de9d73bb97170737d03c8f43927cf070a2c78e0c5eff3cd56a58aaf703a4ba60aa3e1bd7e22d2ceb0921abaa98e6f871ed1131249e44c622d SHA512 76e223c0c5c59796db924f0e52ea59d2bdbb101a9a059cd70d336928dcac616943d75fc9b8d7703de8609b2f694d2fc5627deb341971dc9401c00974261d57c3
+EBUILD notary-0.6.1-r1.ebuild 1654 BLAKE2B e3d50255904169cd8c1bcc4142464a8c4eea30522e58be5fb38b7a90944a2cf72620e39d4600e8a9bdca8a96a276ce632ee812a67fb3edc1ab80d59681599a2f SHA512 bb6b3601e91bc912d0ca062832fdf067dd40eef167e102577fe4bafd560de76e4839cef92f0d207e1480a9e28c441165fad5f68157b588738c24dbf0af42f9b7
+MISC metadata.xml 345 BLAKE2B d1f59c5babe626b5a04645c4ef693cad477fc053d0730464e4b48bee515555ded5a583ca2ae246b80af310e096c334e99717af8e1be3adf692a4c9cf8f97c430 SHA512 6a57f443fe0f4e857d41a7af2658e9eac580750e7eeeab5ea6ebd5cea154c3baf74c838095c0c97493c344525d3377e3559b7c05ca5d141bdb5efda85a13eb22
diff --git a/app-misc/notary/files/notary-server.confd b/app-misc/notary/files/notary-server.confd
new file mode 100644
index 000000000000..eb47b978cbe3
--- /dev/null
+++ b/app-misc/notary/files/notary-server.confd
@@ -0,0 +1,2 @@
+# arguments for notary server
+command_args="-config=/var/lib/notary/fixtures/server-config-local.json"
diff --git a/app-misc/notary/files/notary-server.initd b/app-misc/notary/files/notary-server.initd
new file mode 100644
index 000000000000..6d2bd22fc613
--- /dev/null
+++ b/app-misc/notary/files/notary-server.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 2016-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Notary server"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-notary}
+group=${group:-notary}
+
+command="/usr/bin/notary-server"
+command_args="${command_args:--config=/var/lib/notary/fixtures/server-config-local.json}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/notary/${RC_SVCNAME}.log \
+ --stderr /var/log/notary/${RC_SVCNAME}.log"
+
+depend() {
+ after net
+}
diff --git a/app-misc/notary/files/notary-signer.confd b/app-misc/notary/files/notary-signer.confd
new file mode 100644
index 000000000000..5ead0d85b2c9
--- /dev/null
+++ b/app-misc/notary/files/notary-signer.confd
@@ -0,0 +1,2 @@
+# arguments for notary signer
+command_args="-config=/var/lib/notary/fixtures/signer-config-local.json"
diff --git a/app-misc/notary/files/notary-signer.initd b/app-misc/notary/files/notary-signer.initd
new file mode 100644
index 000000000000..5238b31b5b46
--- /dev/null
+++ b/app-misc/notary/files/notary-signer.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 2016-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Notary signer"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-notary}
+group=${group:-notary}
+
+command="/usr/bin/notary-signer"
+command_args="${command_args:--config=/var/lib/notary/fixtures/signer-config-local.json}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/notary/${RC_SVCNAME}.log \
+ --stderr /var/log/notary/${RC_SVCNAME}.log"
+
+depend() {
+ after net
+}
diff --git a/app-misc/notary/metadata.xml b/app-misc/notary/metadata.xml
new file mode 100644
index 000000000000..0f3553a0a4cc
--- /dev/null
+++ b/app-misc/notary/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel RĂ¼ger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">theupdateframework/notary</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/notary/notary-0.6.1-r1.ebuild b/app-misc/notary/notary-0.6.1-r1.ebuild
new file mode 100644
index 000000000000..00221646040f
--- /dev/null
+++ b/app-misc/notary/notary-0.6.1-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit golang-vcs-snapshot golang-build user
+
+KEYWORDS="~amd64"
+DESCRIPTION="A project that allows anyone to have trust over arbitrary collections of data"
+EGO_PN="github.com/theupdateframework/notary"
+GIT_COMMIT="d6e1431feb32348e0650bf7551ac5cffd01d857b"
+
+HOMEPAGE="https://github.com/theupdateframework/notary"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_compile() {
+ pushd src/${EGO_PN} || die
+ GOPATH=${S} go install -v -tags pkcs11 -ldflags "-w -X ${EGO_PN}/version.GitCommit=${GIT_COMMIT} -X ${EGO_PN}/version.NotaryVersion=${PV}" \
+ ${EGO_PN}/cmd/notary-server || die
+ GOPATH=${S} go install -v -tags pkcs11 -ldflags "-w -X ${EGO_PN}/version.GitCommit=${GIT_COMMIT} -X ${EGO_PN}/version.NotaryVersion=${PV}" \
+ ${EGO_PN}/cmd/notary-signer || die
+ GOPATH=${S} go install -v -tags pkcs11 -ldflags "-w -X ${EGO_PN}/version.GitCommit=${GIT_COMMIT} -X ${EGO_PN}/version.NotaryVersion=${PV}" \
+ ${EGO_PN}/cmd/notary || die
+ popd || die
+}
+
+src_install() {
+ dobin bin/${PN}{,-server,-signer}
+ pushd src/${EGO_PN} || die
+ insinto /var/lib/notary
+ doins -r migrations fixtures
+ fowners -R ${PN}:${PN} /var/lib/notary
+ fperms -R 0600 /var/lib/notary/fixtures/database/
+ newinitd "${FILESDIR}"/notary-signer.initd notary-signer
+ newconfd "${FILESDIR}"/notary-signer.confd notary-signer
+ newinitd "${FILESDIR}"/notary-server.initd notary-server
+ newconfd "${FILESDIR}"/notary-server.confd notary-server
+}