From e78f7709489527daf8a9417416d98cd4997d33ec Mon Sep 17 00:00:00 2001 From: Manuel RĂ¼ger Date: Mon, 16 Apr 2018 15:12:42 +0200 Subject: app-misc/notary: Install init scripts Package-Manager: Portage-2.3.28, Repoman-2.3.9 --- app-misc/notary/notary-0.6.1-r1.ebuild | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 app-misc/notary/notary-0.6.1-r1.ebuild (limited to 'app-misc/notary') 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 +} -- cgit v1.2.3-65-gdbad