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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D7ED7158086 for ; Thu, 23 Dec 2021 21:13:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D74222BC006; Thu, 23 Dec 2021 21:13:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 994A32BC006 for ; Thu, 23 Dec 2021 21:13:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A9F2734315A for ; Thu, 23 Dec 2021 21:13:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D1AB9D0 for ; Thu, 23 Dec 2021 21:13:13 +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: <1640293982.9090d6ac2f3ee203cb3f5acc326751dafe4b1ab7.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.9.2.ebuild X-VCS-Directories: app-admin/vault/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 9090d6ac2f3ee203cb3f5acc326751dafe4b1ab7 X-VCS-Branch: master Date: Thu, 23 Dec 2021 21:13:13 +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: 481a5d6e-60c7-4a80-bc00-e517944d37e3 X-Archives-Hash: dda42c1b7f381b2e5e6b1c1030b765cf commit: 9090d6ac2f3ee203cb3f5acc326751dafe4b1ab7 Author: Zac Medico gentoo org> AuthorDate: Thu Dec 23 21:12:07 2021 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Dec 23 21:13:02 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9090d6ac app-admin/vault: Bump to version 1.9.2 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Zac Medico gentoo.org> app-admin/vault/Manifest | 2 + app-admin/vault/vault-1.9.2.ebuild | 82 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest index 199a6f3e1ca0..2dab3a73f29f 100644 --- a/app-admin/vault/Manifest +++ b/app-admin/vault/Manifest @@ -1760,3 +1760,5 @@ DIST vault-1.8.7-webui.tar.xz 1385584 BLAKE2B a1dfde6cb7a3ffd2521f5090571f8227f6 DIST vault-1.8.7.tar.gz 20963269 BLAKE2B 0b77fcff26484a8031bcc44868708e75397574dd47f390fea7e539778503c2209aa78b674e544095901900971a9838b190d3c6799879f99992b759b1fe62cd79 SHA512 6fbe060bb51a0bde63d24c9a201af63d93a6853798b205f0efd4ee5cd766a420af2873ce5ef1ed632862505ef9c9a0a65c74b599bff5ba4eb9f88ae2f1c5f829 DIST vault-1.9.1-vendor.tar.gz 43355935 BLAKE2B 72d23d10143a52ea6c1a7cf24f5c4db3e1ff2449e4f3ac2bc7a8c4d28f274cdcd2746babf55b9409bf489d37b688ba7f4ea3b7deaebc73940e83f93809ae4e51 SHA512 71e3a8735c28f5ca9a127b5448a0c46cb4f87e7e241aa241d2f19dc62e2af190fa54b3b6e2c2e2d17ecd14b19164005787965d8459cc4929fac8f497ecbb1fce DIST vault-1.9.1-webui.tar.xz 1088388 BLAKE2B bd2e4db976d2f62d3327cf116cf9f84d47c18d0b1ec0c24ad9d2061714c0270b93e861ca889fae1af91160bdc697ad45bd6d3bd7b5df003246c08e78722d2c5d SHA512 696cbb3558030bd972545725715c494d0b9b9b46df93210fe5197be0400bfa2a9bdc8a3c7381547f1442659913b666d09b281808fdc3cce1de9b8ab8b78f0053 +DIST vault-1.9.2-vendor.tar.gz 43356262 BLAKE2B 5975c58cfec150f8b12003c682362cb038305cf87fff1765ffde1b09841986c29086e0df81e9b3f6cb1d463e34a08f5a7df0a080d9b641a170b2b2f899ed2cf5 SHA512 eab2654a817806c711c0e3b7c17a9125745fd02da8ea750d7d62f2b740f445712279944035e333465e5263529c797bb270ecf7dda27ff7794068862110d9328a +DIST vault-1.9.2-webui.tar.xz 1088616 BLAKE2B 7841a7bb8b1a664692dd9fc89c928dee8767533cf661fa5ed429e6d8e1db6f6633882cd8f919b059d76b95fd2095b9eaaa95237fdd411aef730b2b80ffe9469a SHA512 b6adda55576011389e981ec7b22177623838b5de6246d775e3f360fdf8bd1596d7a01d1e0578301bb28764293eba00fca95265816aba1ecbe7824e104af21bf6 diff --git a/app-admin/vault/vault-1.9.2.ebuild b/app-admin/vault/vault-1.9.2.ebuild new file mode 100644 index 000000000000..e7789c2ad89d --- /dev/null +++ b/app-admin/vault/vault-1.9.2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit fcaps go-module systemd + +DESCRIPTION="A tool for managing secrets" +HOMEPAGE="https://vaultproject.io/" + +VAULT_WEBUI_ARCHIVE="${P}-webui.tar.xz" +SRC_URI="https://github.com/zmedico/vault/archive/refs/tags/v${PV}-vendor.tar.gz -> ${P}-vendor.tar.gz + webui? ( + https://dev.gentoo.org/~zmedico/dist/${VAULT_WEBUI_ARCHIVE} + ) + ${EGO_SUM_SRC_URI}" + +LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+webui" + +BDEPEND=" + app-arch/zip + dev-go/gox + >=dev-lang/go-1.15.3" +COMMON_DEPEND="acct-group/vault + acct-user/vault" + DEPEND="${COMMON_DEPEND}" + RDEPEND="${COMMON_DEPEND}" + +FILECAPS=( + -m 755 'cap_ipc_lock=+ep' usr/bin/${PN} +) + +RESTRICT+=" test" +S=${WORKDIR}/${P}-vendor + +src_unpack() { + default +} + +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 scripts/build.sh || die + sed -e "/hooks/d" \ + -e 's|^\([[:space:]]*\)goimports .*)|\1true|' \ + -e "s/gofumpt/gofmt/g" \ + -i Makefile || die + if [[ -d "${WORKDIR}/http/web_ui" ]]; then + mv "${WORKDIR}/http/web_ui" "${S}/http/web_ui" || + die "mv failed" + fi +} + +src_compile() { + mkdir "${T}"/bin || die + BUILD_TAGS="$(usex webui ui '')" \ + GOPATH="${T}" \ + XC_ARCH=$(go env GOARCH) \ + XC_OS=$(go env GOOS) \ + XC_OSARCH=$(go env GOOS)/$(go env GOARCH) \ + emake bin +} + +src_install() { + dobin bin/${PN} + dodoc CHANGELOG.md CONTRIBUTING.md README.md + insinto /etc/${PN}.d + doins "${FILESDIR}/"*.json.example + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} +}