summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-02-25 17:12:46 -0800
committerZac Medico <zmedico@gentoo.org>2021-02-25 17:16:12 -0800
commit62f5d7318ff141bbff793f734b157d9ec325560b (patch)
tree676d95c0d2c29a9e2a304a08a473f00a59c16d77 /app-admin
parentapp-admin/vault: Bump to version 1.5.7 (diff)
downloadgentoo-62f5d7318ff141bbff793f734b157d9ec325560b.tar.gz
gentoo-62f5d7318ff141bbff793f734b157d9ec325560b.tar.bz2
gentoo-62f5d7318ff141bbff793f734b157d9ec325560b.zip
app-admin/vault: Bump to version 1.6.3
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')
-rw-r--r--app-admin/vault/Manifest2
-rw-r--r--app-admin/vault/vault-1.6.3.ebuild78
2 files changed, 80 insertions, 0 deletions
diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest
index 4a6a2dc536f3..c5a55723f6f4 100644
--- a/app-admin/vault/Manifest
+++ b/app-admin/vault/Manifest
@@ -4,3 +4,5 @@ DIST vault-1.5.7-webui.tar.xz 1233708 BLAKE2B f270871593b0c205d336efd886f7019c36
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
+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
diff --git a/app-admin/vault/vault-1.6.3.ebuild b/app-admin/vault/vault-1.6.3.ebuild
new file mode 100644
index 000000000000..64280d983e90
--- /dev/null
+++ b/app-admin/vault/vault-1.6.3.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
+}