summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-04-13 15:58:46 +0200
committerManuel Rüger <mrueg@gentoo.org>2018-04-13 15:59:13 +0200
commit4d5a7f8f0bc75ccc1125053be6b06f0ed6d4e389 (patch)
tree1ddc5bc68c346b675a423c83a20697343e5503c7 /app-misc
parentapp-portage/gemato: Bump to 13.0 (non-parallel version) (diff)
downloadgentoo-4d5a7f8f0bc75ccc1125053be6b06f0ed6d4e389.tar.gz
gentoo-4d5a7f8f0bc75ccc1125053be6b06f0ed6d4e389.tar.bz2
gentoo-4d5a7f8f0bc75ccc1125053be6b06f0ed6d4e389.zip
app-misc/notary: Initial version
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/notary/Manifest1
-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.ebuild42
7 files changed, 96 insertions, 0 deletions
diff --git a/app-misc/notary/Manifest b/app-misc/notary/Manifest
new file mode 100644
index 000000000000..ef95fe07f703
--- /dev/null
+++ b/app-misc/notary/Manifest
@@ -0,0 +1 @@
+DIST notary-0.6.1.tar.gz 5741924 BLAKE2B 125e1e09178f090de9d73bb97170737d03c8f43927cf070a2c78e0c5eff3cd56a58aaf703a4ba60aa3e1bd7e22d2ceb0921abaa98e6f871ed1131249e44c622d SHA512 76e223c0c5c59796db924f0e52ea59d2bdbb101a9a059cd70d336928dcac616943d75fc9b8d7703de8609b2f694d2fc5627deb341971dc9401c00974261d57c3
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.ebuild b/app-misc/notary/notary-0.6.1.ebuild
new file mode 100644
index 000000000000..f0ee76af2337
--- /dev/null
+++ b/app-misc/notary/notary-0.6.1.ebuild
@@ -0,0 +1,42 @@
+# 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/
+}