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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DD124158094 for ; Sat, 3 Sep 2022 16:28:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E19F0E0798; Sat, 3 Sep 2022 16:28:05 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C274EE0798 for ; Sat, 3 Sep 2022 16:28:05 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9DFE1340FD5 for ; Sat, 3 Sep 2022 16:28:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1B21B75 for ; Sat, 3 Sep 2022 16:28:03 +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: <1662222478.c023fa0a4cc6204675fe6db737f43531ced5bd72.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.10.6.ebuild X-VCS-Directories: app-admin/vault/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: c023fa0a4cc6204675fe6db737f43531ced5bd72 X-VCS-Branch: master Date: Sat, 3 Sep 2022 16:28:03 +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: ebf64dd5-f73e-47cb-afdb-6e27e79ae4c6 X-Archives-Hash: 71a81a7d1763fa50595d67625b7b7a9c commit: c023fa0a4cc6204675fe6db737f43531ced5bd72 Author: Zac Medico gentoo org> AuthorDate: Sat Sep 3 16:27:37 2022 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Sep 3 16:27:58 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c023fa0a app-admin/vault: add 1.10.6 Signed-off-by: Zac Medico gentoo.org> app-admin/vault/Manifest | 2 + app-admin/vault/vault-1.10.6.ebuild | 85 +++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest index e0515468481b..4e1d737b96bd 100644 --- a/app-admin/vault/Manifest +++ b/app-admin/vault/Manifest @@ -1,5 +1,7 @@ DIST vault-1.10.5-vendor.tar.gz 50096802 BLAKE2B 07f797666f97666a3dbdfb3cca7ba9fea1a45b26fd35d902200acdf3bad33ad365f4d547a1c3fe42f9e6a41258713b48673236d5f64547016ba08b43ede4eeda SHA512 87f56ff16a2a28690dd128ff0f1c480616ae7948eaff337e3d3e4eb3370d6d1322b2a488044bc237f9eafc60d42652f3a7decb7283d1596285762cf570fea8ca DIST vault-1.10.5-webui.tar.xz 1258192 BLAKE2B c546475dc9949c8854e702ff97267cde97472b47f209e7ed923e6caf9d0fe2b615c0087299148c0325669ae25b4ec111d7e8eff8454dfe5fe15a47bf4c969984 SHA512 fb44ad261cfa2e492b824fc8ec0ad44e54eaa417980bd9cd845e017fcad23670231a696df306332df5cfd5ce039cc1e3f744fe3ef35563b4902ebb15798a6b1d +DIST vault-1.10.6-vendor.tar.gz 50107281 BLAKE2B 121889bce4b01ef38ac4d727e8f195b164521dae4a27a1ed03051b8f18a53d15e2ddcfa16ae72871b9aca0b8c49533b0ada08ba1c26502f430187067fe6e9535 SHA512 08bb8bd2e4e4cd7fa6008776da5cca254ccc2689ef02e1a095fdf736de57f6713a6c49a7573014326bd1c93378d3a47076c37b519f49c2a5b618c47f9fee4554 +DIST vault-1.10.6-webui.tar.xz 1258100 BLAKE2B f63a05ed6715574ae0c89ee447734fa279f6d63dd51e04e37bd057067b2e46cd765609db94bf79769a2138137ce18738cb0a91a092b03fa8fd4ce6082ea166f4 SHA512 fc9c8cb7911ddae0b6d13efa9d6a768c7935fc4bb8c21e43eafa0a7866b718e8f381b51c38fc72378e53d95b81c9af89367139308c50a91396350b6adfdfb7e4 DIST vault-1.11.1-vendor.tar.gz 52063513 BLAKE2B adb2fb6ab7991e94ce00aa298837f2fac21c24bb8ea8edd2265eed6664498b38567d81fcfe28749b4bf16c449c769448a75fa3c1403f5cdf33b18580d8a65936 SHA512 c1247308f390117c98e43dd82498a069c34d3e766298dd05d5ddb5f69b9a3db2e312b897f35c9f63225cffcac476ba1021a4a71100721848642b6c4412123251 DIST vault-1.11.1-webui.tar.xz 1335740 BLAKE2B 6a6fdcb22563ad4c3f18bf3816fe8a016c11d19a014458594c2dade3dc8e908db252c34bad88be9e80c2a6408af28af6324158e1e69b40061af6d6fe1a66c655 SHA512 1c02e0ef645df946ffb9d967a9be230800e67597d0ed6cf8afb2688eed9ca863a1f29efeefbb51e0257d2be588da443864df9e1306956844645b0168c2d58d9b DIST vault-1.11.2-vendor.tar.gz 52069450 BLAKE2B aa28c4e79fe7e95fee12fcf039c890780dfd4c3983025b5c39c53ed81be99e9c8cdb19580f23a0e05e607693dd46fa868abcaaad04d2abdcaeb0151af8fa6f60 SHA512 2339bd8fa1768cb3e719af00f581116d5d6decad826de00a4e726c212dcd5b29e89426ac3aba86dbb01bb2cb6f7feae899924134040ada7d10a1bc90d42b8f67 diff --git a/app-admin/vault/vault-1.10.6.ebuild b/app-admin/vault/vault-1.10.6.ebuild new file mode 100644 index 000000000000..6024fed54e00 --- /dev/null +++ b/app-admin/vault/vault-1.10.6.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2022 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} + )" + +LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +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 + rm -rf "${S}/http/web_ui" || die + mv "${WORKDIR}/http/web_ui" "${S}/http/web_ui" || + die "mv failed" + else + mkdir -p "${S}/http/web_ui" || die + touch "${S}/http/web_ui/no_web_ui" || die + 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} +}