diff options
author | Zac Medico <zmedico@gentoo.org> | 2021-02-25 17:07:31 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2021-02-25 17:16:12 -0800 |
commit | 80562755d126ae8b3b59be7e12aea5f9a213e548 (patch) | |
tree | fbe838011e16afee85ebc19deb4be749ffde2193 /app-admin/vault | |
parent | sys-cluster/ceph-14.2.16-r2: Revbump, drop libressl, fix objdump call (diff) | |
download | gentoo-80562755d126ae8b3b59be7e12aea5f9a213e548.tar.gz gentoo-80562755d126ae8b3b59be7e12aea5f9a213e548.tar.bz2 gentoo-80562755d126ae8b3b59be7e12aea5f9a213e548.zip |
app-admin/vault: Bump to version 1.5.7
Bug: https://bugs.gentoo.org/768312
Package-Manager: Portage-3.0.15, Repoman-3.0.2
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.5.7.ebuild | 78 |
2 files changed, 80 insertions, 0 deletions
diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest index 00f8efdf73f8..4a6a2dc536f3 100644 --- a/app-admin/vault/Manifest +++ b/app-admin/vault/Manifest @@ -1,4 +1,6 @@ DIST vault-1.5.6-webui.tar.xz 1237168 BLAKE2B 997a3ef1e297e288d2abf14647667fd07ebd2e9c6389aad90e3c8fe4d66b5e77004ad07575c6a48d38eb1a4e4040af6cf341edc17bbe87a575a31e06f91449aa SHA512 afed06fe9866dd24ea925e49e2ebdb477ef40dd8ea0137fec1f8a86e17cbe5679ef23a9d9a248ce4de8a21392c96d50f47487c5a866f45ad7317c6cbfc1a5fda DIST vault-1.5.6.tar.gz 35110596 BLAKE2B 6e2581b82dfc98f0fd4c807dd24c9e17b4e4c3252ab5744388e17a076d8ed613ea2360f8bf5b975ee5b15d6c7f96100f2b814e290ab47e33c565525ffe1eeda3 SHA512 1da2a6f1307583f03298a4199d301536783787ae1d9b16a8b0a4cce55d29a1fd8a1631366a55aa4671d5b7f6fb9108ffe55d9ec9575e887e495a512b00cf9cb3 +DIST vault-1.5.7-webui.tar.xz 1233708 BLAKE2B f270871593b0c205d336efd886f7019c36099ab2e3e3a1a85bff6143a22a71b15c0350ffcd26f602ffc391f266bc5484a3948f9621c50b7aacfcd268436da752 SHA512 1047de18678215cceef8da5b07e5625a85f343ef23ef77b159624a1a12b2ae08552f59dbe43941177b3734a534e7cd44755ce42009d35cbdccca52fb2ec7e861 +DIST vault-1.5.7.tar.gz 35115545 BLAKE2B 659388d1d923dc7c36a2d88b0f061f8b8a94a9944efd159f63f870ff6935cab1fd5230ed9e05043dbf649f7d1c0b999bcd3741d59f3b2a1576713d86d6e5d639 SHA512 06e8fc86e2930d032b44764f6b7e4540d466513e4f99411a1a1b70b8906bad26454619622778d369b8b7325d797566d07591eafbe839523151e96e05689c158c DIST vault-1.6.1-webui.tar.xz 1277456 BLAKE2B 7a63f676e4138c9ac0a9e550f5c195a68169c9214c4f232368356ed31e6a873242f069291fa6f56770bd84598333b9d9933da8544651836b04cf91b9c0d6e818 SHA512 0ce4fc98c8134d9ce39ce0bf7634b76cad8508d3f19480f32052dd6040a299b80406586d5c7c6d9571a4cced303dbab010b0761599c0fc4fe0d0556365564dc4 DIST vault-1.6.1.tar.gz 39080880 BLAKE2B a66f48c0e7a4edbe9765f7f3e9349ee318415d42ebac9763d48fed4060a3a81613246528339e5cce091dc3ba3ad70062dc5e3b13fce29611a37729a81cf31bc7 SHA512 3dd272b5ca6b2858ab9c65a1abcf25bfd01d554c8f8c380ab1384c216bf14f9719ae0947f764cd7a08688899b7e5805e3ce2a96086772035abe54012b5f4ea72 diff --git a/app-admin/vault/vault-1.5.7.ebuild b/app-admin/vault/vault-1.5.7.ebuild new file mode 100644 index 000000000000..f66aa7089ee8 --- /dev/null +++ b/app-admin/vault/vault-1.5.7.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.14.7" +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 +} |