summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-09-10 21:04:43 -0700
committerZac Medico <zmedico@gentoo.org>2021-09-10 21:05:46 -0700
commit1391df753e8d0791f02eb3930065eced4b2b926f (patch)
treede54cf15593022feeab44bd5e5b8bc5c049ef478
parentapp-admin/vault: Bump to version 1.6.6 (diff)
downloadgentoo-1391df753e8d0791f02eb3930065eced4b2b926f.tar.gz
gentoo-1391df753e8d0791f02eb3930065eced4b2b926f.tar.bz2
gentoo-1391df753e8d0791f02eb3930065eced4b2b926f.zip
app-admin/vault: Bump to version 1.7.4
Bug: https://bugs.gentoo.org/808093 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--app-admin/vault/Manifest2
-rw-r--r--app-admin/vault/vault-1.7.4.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest
index d6a6ab47e6c4..e12e95b982c1 100644
--- a/app-admin/vault/Manifest
+++ b/app-admin/vault/Manifest
@@ -1731,5 +1731,7 @@ DIST vault-1.6.6-webui.tar.xz 1268292 BLAKE2B ea30ecaee5ff58a6b7281a5cedb9e8484c
DIST vault-1.6.6.tar.gz 39139148 BLAKE2B 1b6615fddb649c852d62f8a4d9d97d09be4e966427753ba87add08cf758416c349caae189e6bb6a3b24edf3c708f17655090d713f6e9ab2c02b7db8656c4cd02 SHA512 820ec2f0b71defe6e6920bb4eefec55536d3d06345b676323d4af0c74c837c886871b0951b54f917e27b61bade9b4a8e9f36e3905a82a134b9e5f887ed744534
DIST vault-1.7.3-webui.tar.xz 1331416 BLAKE2B 81a3e70086ef4aa1a4761188d8d8b294593cf26ffe8e697d556a3bc27319c0ea149ba3f652ff3fc9f552252354a86e7923ecd87a81ecc2b9d29d6ff25180e50e SHA512 a9f2aa9ed9e4303054a8c7c97a49daab8e2c6142ddff18ec0f38fd68383af10a644e47c02b3ef6e2d4f74e68a6a9d3324f58c7b7725b990c7c290649134f90d3
DIST vault-1.7.3.tar.gz 39626087 BLAKE2B 54e777c0703c2b3ae32012507579079a97c19aee9b8488af71b863ab2f0b536417470441c68c5ace40069559485c9f2fa108d3f2e3cbbd9a44e1baffd812ed13 SHA512 06929599eb03373489da87bc63577b10b92080212fd090d5f95e29007a03c7e70c40148219415f252ac2acc7a8c46afe03fb5d034812fe379c79b7dd01d172e5
+DIST vault-1.7.4-webui.tar.xz 1324720 BLAKE2B 822f4afd2dd2ede0741b597b66a89fa04d1e160fa826ce609816786f9393aac24bbe36d27c7c3a11642d93b35606804d52ddd7da51aa9d3346f67caa5a886f21 SHA512 cfc0f8ccdb5ca348286676c3ff512483ed7e5c129bf5a6d7a5cfd60d4c5679688f4aff66221874cf413fad654aa0d71ba72eb58bb5f0165d42b9603e1cec279b
+DIST vault-1.7.4.tar.gz 39607823 BLAKE2B 24b1c5473bac6fe0973a95a4c7ce30d5e8b4d3e78ec606cfe64ac3a1dcf84733aac4309496da0fd6b8bec5d98d951df29a4f1e1709f30856cc35e1d0464bdb25 SHA512 ec2f13741a182f1127424cd135ca1d5e9000e5e1cb3410135d805ff5cebb728091ffd67c7fea2134b1488ec13c8e298683adae23cb7ef87d8d35404ffddf9be3
DIST vault-1.8.1-webui.tar.xz 1390864 BLAKE2B e8f707c80358ed1d987fffd1bf579c9949b996d8022a63837f4c7872cc2092e06b76e459e68e93233854e516f039833098fb4adbf5e9a7bc4bc603dfff688352 SHA512 5266ccc45a7707111a71a4a0efde09eaf16c02d7b338936fb04fbc21c34c6a5fa9b6fbecc6c8a9deefad7f293bfc7aeaddf1de3dc481840bbeb404e695566e0b
DIST vault-1.8.1.tar.gz 20941105 BLAKE2B dc9da6de438abdb8ebfc841c55574bc036f4dbf98f16ac2549bb35d60debafa77936ef726529701d7dd0c731980f72699d464b20a30ad404ef76b5188dc1946a SHA512 f6edb2e38f622c19e4b2839979f8f743a8148ede9226204c3463389cc4a85ce31f1bcd3ea473cf84ded76c528fe5fc5fd0d1a9e2f60a9a6be08e1885a39d8d36
diff --git a/app-admin/vault/vault-1.7.4.ebuild b/app-admin/vault/vault-1.7.4.ebuild
new file mode 100644
index 000000000000..87aa3191263e
--- /dev/null
+++ b/app-admin/vault/vault-1.7.4.ebuild
@@ -0,0 +1,73 @@
+# 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}
+}