From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 69A72138334 for ; Wed, 18 Sep 2019 01:13:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A01F7E0855; Wed, 18 Sep 2019 01:13:05 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 769F5E0855 for ; Wed, 18 Sep 2019 01:13:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 16C5F34B2DB for ; Wed, 18 Sep 2019 01:13:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 606A97F1 for ; Wed, 18 Sep 2019 01:13:02 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1568769176.5d4fb042779c7493671bfb1dfa35cf897671a4fd.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/vault/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/vault/Manifest app-admin/vault/vault-1.2.3.ebuild X-VCS-Directories: app-admin/vault/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 5d4fb042779c7493671bfb1dfa35cf897671a4fd X-VCS-Branch: master Date: Wed, 18 Sep 2019 01:13:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 411a31f7-5e23-40dc-9344-6f24588317b7 X-Archives-Hash: 586149d737e24e69ce1ad745b5172250 commit: 5d4fb042779c7493671bfb1dfa35cf897671a4fd Author: Zac Medico gentoo org> AuthorDate: Wed Sep 18 01:12:10 2019 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed Sep 18 01:12:56 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d4fb042 app-admin/vault: Bump to version 1.2.3 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Zac Medico gentoo.org> app-admin/vault/Manifest | 2 + app-admin/vault/vault-1.2.3.ebuild | 93 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest index 0859740c1a1..e3840427e1a 100644 --- a/app-admin/vault/Manifest +++ b/app-admin/vault/Manifest @@ -1,2 +1,4 @@ DIST vault-1.2.2-webui.tar.xz 1920136 BLAKE2B 81b90a0d796727c7523712ae50f85a24fa98b8b78c304d3ee50654e7f0ea1b3d58005abcbe55a15c3b496f5fce5701306ac57f0c6decc7ab8ae24ab12f5dd81d SHA512 b454e02e664190903b11bf0e3e465463182f3b7060efeb2c858127306869d731193102ba58398c28441d2be1a3956b88b2591aab1460047647742ba9dab5a00c DIST vault-1.2.2.tar.gz 27588019 BLAKE2B 5d989d1750a134f0c68e25ced7406ec8e7ae1d2233a1ece634e1487e4879af2d4a3e938aea1016d6872754f31ef19c85d04cd65e63f6547d7a5cf3cfa93ec208 SHA512 ce9211b3deb1839759646f8488fe2b89fec379bafed472921a62cd507f842ed05647fe4da7cb9482d195b028a29eb576f947da24aecd8b19181c7282fd3a155d +DIST vault-1.2.3-webui.tar.xz 1916848 BLAKE2B 503425336fac45645b837380dcf94be4bdbb3876b1408a6bbd6ccaca96fd93e47dd2fcaf9913a70cb69fc0c7c1c36a90680acb629be3d616fe77d95662d93ed0 SHA512 1e414143ea163dc021ffefba023ff827f8241db5c125c3aa5de407dc4ae476413d32bf3b150167ffb14026f07663a26f3ab62b142019758f751a4f115d438d87 +DIST vault-1.2.3.tar.gz 27773681 BLAKE2B 862b386c96e7d284c5b82a89dca5a0a8668a900a5b32758a472b5d7ea4ed995dce608dfda0398bcf15e703f21099ddc662abb585cca0e2d2f43a0863184e055c SHA512 9543e394f187cd9b06e88b64319504e07519041741650db3b7b905f1b34348ed7d9e22955ce2a456ffd2e06210e9e01b1a0ded459cde4840fbf5903ff6e21e75 diff --git a/app-admin/vault/vault-1.2.3.ebuild b/app-admin/vault/vault-1.2.3.ebuild new file mode 100644 index 00000000000..cda2c7eb503 --- /dev/null +++ b/app-admin/vault/vault-1.2.3.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit fcaps golang-base golang-vcs-snapshot systemd user + +EGO_PN="github.com/hashicorp/${PN}" +VAULT_WEBUI_ARCHIVE="${P}-webui.tar.xz" +DESCRIPTION="A tool for managing secrets" +HOMEPAGE="https://vaultproject.io/" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + webui? ( + mirror://gentoo/${VAULT_WEBUI_ARCHIVE} + https://dev.gentoo.org/~zmedico/dist/${VAULT_WEBUI_ARCHIVE} + )" +SLOT="0" +LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT" +KEYWORDS="~amd64" +IUSE="+webui" + +RESTRICT="test" + +DEPEND=">=dev-lang/go-1.11:= + dev-go/gox" + +FILECAPS=( + -m 755 'cap_ipc_lock=+ep' usr/bin/${PN} +) + +src_unpack() { + golang-vcs-snapshot_src_unpack + if use webui; then + # The webui assets build has numerous nodejs dependencies, + # see https://github.com/hashicorp/vault/blob/master/ui/README.md + pushd "${S}/src/${EGO_PN}" >/dev/null || die + unpack "${VAULT_WEBUI_ARCHIVE}" + popd >/dev/null + fi +} + +src_prepare() { + default + # Avoid the need to have a git checkout + sed -e 's:^\(GIT_COMMIT=\).*:\1:' \ + -e 's:^\(GIT_DIRTY=\).*:\1:' \ + -e s:\'\${GIT_COMMIT}\${GIT_DIRTY}\':: \ + -i src/${EGO_PN}/scripts/build.sh || die + sed -e "/hooks/d" \ + -e 's|^\([[:space:]]*\)goimports .*)|\1true|' \ + -i src/${EGO_PN}/Makefile || die + + # Avoid network-sandbox violations since go-1.13 + rm src/${EGO_PN}/go.mod || die +} + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_compile() { + mkdir bin || die + export -n GOCACHE XDG_CACHE_HOME #678970 + export GOBIN=${S}/bin GOPATH=${S} + cd src/${EGO_PN} || die + # The fmt target may need to be executed if it was previously + # executed by an older version of go (bug 665438). + emake fmt + BUILD_TAGS="$(usex webui ui '')" \ + XC_ARCH=$(go env GOARCH) \ + XC_OS=$(go env GOOS) \ + XC_OSARCH=$(go env GOOS)/$(go env GOARCH) \ + emake +} + +src_install() { + dodoc src/${EGO_PN}/{CHANGELOG.md,CONTRIBUTING.md,README.md} + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + keepdir /etc/${PN}.d + insinto /etc/${PN}.d + doins "${FILESDIR}/"*.json.example + + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + + dobin bin/${PN} +}