summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2022-04-23 08:46:50 -0700
committerZac Medico <zmedico@gentoo.org>2022-04-23 08:47:48 -0700
commit7269712b5ba44ed4177a0851804b2e219e9e1cfb (patch)
tree307aac26c064482802bd55e102d45fef68e59ec9 /app-admin
parentdev-util/cmake-fedora: drop 2.7.1 (diff)
downloadgentoo-7269712b5ba44ed4177a0851804b2e219e9e1cfb.tar.gz
gentoo-7269712b5ba44ed4177a0851804b2e219e9e1cfb.tar.bz2
gentoo-7269712b5ba44ed4177a0851804b2e219e9e1cfb.zip
app-admin/vault: add 1.10.1
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.10.1.ebuild85
2 files changed, 87 insertions, 0 deletions
diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest
index c33855083e40..6cd57240093b 100644
--- a/app-admin/vault/Manifest
+++ b/app-admin/vault/Manifest
@@ -1,4 +1,6 @@
DIST vault-1.10.0-vendor.tar.gz 47809365 BLAKE2B 5c44d03edda57b77d2760ed6909876beae1ac713e50569a1130a571fe824ec841ba935c6789b35102e936f0e5c3814965630d86eabd70cc0ef550851f923af2c SHA512 972946177d8e4902c60784112b3835cc5b8982ee5e941e9075248d76c34526117aa43c6b4d7c0222d07ba6e0e4fe45ba9fed87df55d0cb88cd76021f129bd692
DIST vault-1.10.0-webui.tar.xz 1257948 BLAKE2B 8af0f71e81fec28b12099ea6076f9ea1668c5acb701c52c0f8c22fccb3232852d4bb1dac00635cb54196ea7981b9857aa56c77c36ea890f3432d332f9b273309 SHA512 bb60008376fef3b1e93ae892ab79ae2c752a645f14f26522d60d2ff54fe7eca4aca15fc7eda936469ddc095373ed16503cdfdfb93db9e1492b8b68b3c3576004
+DIST vault-1.10.1-vendor.tar.gz 48104919 BLAKE2B 03e663c946a57b5bdb68d884bdbcdd93e4c7e712e56d0be9c53e467a8f990131fcdf4341d83b365ae8227470e31a51bca56037c0acf9c5201a284d2128f28528 SHA512 64c7e6be590babff46f20c7773a4dad4788b944b9d371dbfdbef09736463f02b229327f2e72a354236ab1a183774489e549025e2994676c65027599521e16c69
+DIST vault-1.10.1-webui.tar.xz 1258128 BLAKE2B ff4fd043494a67a4ce3c23d805cdef33f2e21ef9f8a1e3a5e5b9b2c92438886af15ac0fc1a574edc0822e94992df9b6c83c7dd527ad85934132aca520aa0a9fe SHA512 95637e5864e5913dc6c32a2a1518a79fd4cbda502d49aceffb7416ce18a25116ec9d3afc2a4bb20dae8e801e6b6a7c374b0ff592e3e7b22fed7cfcfe8379e591
DIST vault-1.9.4-vendor.tar.gz 44536444 BLAKE2B 0ad5eb4b621f3dba4cd996516850d30085293b70938967e15e76c65c34e153fcfba4f3b62fbec0163e046fcd4b7f8e30baeb98fc610c59b0d36e5ed067aacc70 SHA512 6710af7e72ddccce143450ad49fba2ec225a5be84b5d84c59efe1eea0f2d193a994b2d4a0aa194e8ef853dcd5ddff733522fca08cfa58de120e24da9b308a26b
DIST vault-1.9.4-webui.tar.xz 1088656 BLAKE2B da1b0de1a1cd1630639c8bd31ecb20a9e3bbec9df60bdc6cc6e3f160b6b3d00717cec8039683ccd540332c7521fb40d9735d3a734c6df5b54e39628b56d2bb81 SHA512 c166420857bee3189cc56be13e268da33ece298c3a00a16582537edb96e57bdf38e1c7e214e54779d128f6b7aa97af7b120b5f94ade19582dd4128c7ab43f722
diff --git a/app-admin/vault/vault-1.10.1.ebuild b/app-admin/vault/vault-1.10.1.ebuild
new file mode 100644
index 000000000000..34df6d35c25c
--- /dev/null
+++ b/app-admin/vault/vault-1.10.1.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"
+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}
+}