diff options
author | Zac Medico <zmedico@gentoo.org> | 2021-04-18 02:06:21 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2021-04-18 02:06:59 -0700 |
commit | 6ceb03e36a7d67b7d83edb509014ef7d7a7a35db (patch) | |
tree | 82941b4b5366846ffade18d2e707e327d0d41044 /app-admin/vault | |
parent | www-apps/webmcp: version bump to 2.1.0 (diff) | |
download | gentoo-6ceb03e36a7d67b7d83edb509014ef7d7a7a35db.tar.gz gentoo-6ceb03e36a7d67b7d83edb509014ef7d7a7a35db.tar.bz2 gentoo-6ceb03e36a7d67b7d83edb509014ef7d7a7a35db.zip |
app-admin/vault: Bump to version 1.7.0
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-admin/vault')
-rw-r--r-- | app-admin/vault/Manifest | 2 | ||||
-rw-r--r-- | app-admin/vault/vault-1.7.0.ebuild | 78 |
2 files changed, 80 insertions, 0 deletions
diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest index c5a55723f6f4..a7fee8c3969b 100644 --- a/app-admin/vault/Manifest +++ b/app-admin/vault/Manifest @@ -6,3 +6,5 @@ DIST vault-1.6.1-webui.tar.xz 1277456 BLAKE2B 7a63f676e4138c9ac0a9e550f5c195a681 DIST vault-1.6.1.tar.gz 39080880 BLAKE2B a66f48c0e7a4edbe9765f7f3e9349ee318415d42ebac9763d48fed4060a3a81613246528339e5cce091dc3ba3ad70062dc5e3b13fce29611a37729a81cf31bc7 SHA512 3dd272b5ca6b2858ab9c65a1abcf25bfd01d554c8f8c380ab1384c216bf14f9719ae0947f764cd7a08688899b7e5805e3ce2a96086772035abe54012b5f4ea72 DIST vault-1.6.3-webui.tar.xz 1273812 BLAKE2B e86d36c98919c5a33b3a9a58bd6a5c042c62c1e12a62762e22928b516b200b7e2e3f4a394cf80d65b1c6a847f70b5b80ff042d6a55a3753df9e0471183a80e3a SHA512 f113bbab76799791b0c64bf8cf169a9da4841377ea38589044ad022e564c2e2a3b5a0233b9ab14c06b8a92747ac36d1f91f77b484e49b953519760d743ab6482 DIST vault-1.6.3.tar.gz 39092957 BLAKE2B 8b421f5d8f81d00ed7bf3380ec6192984ad7a3cd8f3f98bfcd76729874b2a2121785cfd2b27497e54414ebe1481cef35f1cf2be8472bc50aa0a3278a2f7747ff SHA512 ff8e1aa43ea0703327ab0a175460304c95a172512763cf63d8f1fe584d31e90650ff254e572a6a6b8e230ff181d85a2f042f4f7e1881ba9e1d5897c6de8e8dee +DIST vault-1.7.0-webui.tar.xz 1331492 BLAKE2B 97c5255b9c8a3ee5814224f236bb7a1ea45200cbbe57996d56bb700c256edcc83d738e2814a02e205a6317d6adbb373565fb4cbe5d01c0592291ac0484b55389 SHA512 82b095a40b0fedb7c59ff45fe589f9ec1dbffc0536a3a1bf56b35e1223f9bedb0fdcb75777d27aabcc3bd01e458889b045f766693114d8c989f2ac7dd732aa8b +DIST vault-1.7.0.tar.gz 39285782 BLAKE2B 539c138625a2a8861e32f65f4da6b566427884ef1ef5d1850efcb9d8176d34c1b2e51a7fe68c70737e451a2bef9cd493c695c1b200c1ebc83826ecd566d34550 SHA512 08a0cc7762b83218a38dc741121771a3c58c9914bef3fee70a76cd773aea352402aa9f8eaad39a8b1695bdd900ea53d00c1535d27d3d8f39036293751fe48521 diff --git a/app-admin/vault/vault-1.7.0.ebuild b/app-admin/vault/vault-1.7.0.ebuild new file mode 100644 index 000000000000..64280d983e90 --- /dev/null +++ b/app-admin/vault/vault-1.7.0.ebuild @@ -0,0 +1,78 @@ +# 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/hashicorp/vault/archive/v${PV}.tar.gz -> ${P}.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" +IUSE="+webui" + +BDEPEND="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" + +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|' \ + -i Makefile || die + if [[ -f "${WORKDIR}/http/bindata_assetfs.go" ]]; then + mv "${WORKDIR}/http/bindata_assetfs.go" "${S}/http" || + die "mv failed" + fi +} + +src_compile() { + mkdir "${T}"/bin || die + BUILD_TAGS="$(usex webui ui '')" \ + GOFLAGS="-mod=vendor" \ + GOPATH="${T}" \ + XC_ARCH=$(go env GOARCH) \ + XC_OS=$(go env GOOS) \ + XC_OSARCH=$(go env GOOS)/$(go env GOARCH) \ + emake +} + +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} +} + +pkg_postinst() { + fcaps_pkg_postinst + go-module_pkg_postinst +} |