summaryrefslogtreecommitdiff
path: root/app-admin/vault
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-23 06:31:00 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-23 06:31:00 +0000
commit338095605b6c9c82690f77f27a32490c9a57bdcb (patch)
tree72a4d7ec7ba10ea6da4d4f7d25b68915b12edde6 /app-admin/vault
parent5a2cecfc8661e1d3a762adf05cf8eb142cd41710 (diff)
gentoo auto-resync : 23:12:2024 - 06:31:00
Diffstat (limited to 'app-admin/vault')
-rw-r--r--app-admin/vault/Manifest4
-rw-r--r--app-admin/vault/vault-1.18.3.ebuild86
2 files changed, 90 insertions, 0 deletions
diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest
index ce809b0a6eaf..d2e1c79a1825 100644
--- a/app-admin/vault/Manifest
+++ b/app-admin/vault/Manifest
@@ -18,9 +18,13 @@ DIST vault-1.17.3.tar.gz 33565884 BLAKE2B cc39312ada9d889feda72d7659dfab56c53d43
DIST vault-1.18.2-deps.tar.xz 21937960 BLAKE2B 8ddd265e4f37d7b2b7b0f5365ed53b176f1eaa4c06a3592acc35eaeed11f4bfa28d8f03c6438711f0019be2e576cc51d37a0fc13fc162d56fc30e4d5586fb969 SHA512 20a91d1fe52ffb99c613e5e2a0cbc1ca3abedf68f41eb7e87770b8d37b0ec762684535996bf342410cb9cd6593d7d3fad9f8f95f4a79f94cff27b24cf697016c
DIST vault-1.18.2-webui.tar.xz 2225548 BLAKE2B 195fe6d5bfdb99deda96522d9f02c6b3cb831c26ac5f61b5b9003e52056527754c4c04402cd19eccbd241b5c826fed74bbd01933171f08c9b121de187b6c1b44 SHA512 760ffe2830232ab5ea3327b1aa425c191f152cabb8d3dc7b09fbfff66a7af8a6119ac13e96b27c3ce5f2d3bf24b97cff45a1ce291974f6fbaa0e9f8b45d16892
DIST vault-1.18.2.tar.gz 35471171 BLAKE2B 012e2a4d3093397a7823e20d5c8d844559f48a906421643106a63de2894e5a226d2072560350e11161e030b6a561b4786428113117c06eb0742edab84df7456d SHA512 46123b5c111e37e7915716bbfd294bf1eb7441bfcab62cda90c0f89efcd8bb6de39933c271a550e21922b7a728745004960de9ab6835c1206469b6146dd791c7
+DIST vault-1.18.3-deps.tar.xz 36926612 BLAKE2B f1a7c7333bc403df9bea93c0b128e5cd2606688a2af0995e55375dcd11d56471fad842043ddc5d2d70e0795d58e6ba9e6686cbdabaa5bb2b20f148af2fe33ada SHA512 aa3e7d42a4182101f13c74ec48e9c0d848d1d733a694856a8f1ed042d6d6f5a36479dd846defa3fe11eb8f39dad20e62718392e237bfd8b0e6e5005872e22824
+DIST vault-1.18.3-webui.tar.xz 2224888 BLAKE2B 0b41e9b238f87803aa770d84c08e95c4714c27fafa0d94490fb70e5a06a4a6c9c0cd70beb8721005f1d30c2371ca22eb620e5990ec6d9b73e2077e150e0198bc SHA512 4fcecd2685aaec934073fd7930d156b3507f31a95006f06bb7291f384279b60c1b2f453b317e097c608bf735833b606750c62c68aa4d72d86d5273b668029231
+DIST vault-1.18.3.tar.gz 35908756 BLAKE2B d3241849fb6e7f9c21865a44543220d6ca9b82ad848cd7ad6f0e6d6c9675d2fd2cf64427ac2de445e29cff9d0cfbbcfd727d78c91ca655586382c6c368fb0711 SHA512 5d407efaddb760cba69b8a4905aba74f94db19a852206efe3cbbb90589ba87af43720041ee4416d646ae0d1442625172904046f4a353ec9e813eef59813bc538
EBUILD vault-1.14.9.ebuild 2094 BLAKE2B 3472fc7a0868be220400af480b23a0f774599224d7acbe89417af075ca7ec2d20fcbe62eaec295216ab3db10d5650eeaedece2dc303a06e15dcbf16079ea5648 SHA512 2b267dcab689aaf9d3116c2bcdfe011efb5ad5ac3200a6818d2f31c1834453700dfa7dea6a95ebe7a878557aa5185676ad59135660d3a3fc56271595e355d874
EBUILD vault-1.15.6.ebuild 2216 BLAKE2B 95e6fa34e25f679998994fe02378d21f870e31e1f1ceac250eebcd219ff459bae217af95fca55544aa3b2934495635eaeeea4493ab09b31c29fa5f6ae6d11cba SHA512 269544c6cdfe28d330b3c0d7924afbb25faf721353cdc4d95b2d4e77ef36b15e26e0b838a9f28e37da0ba1af756c74887455edecae23a7fa539bc9cce9eb5205
EBUILD vault-1.16.3.ebuild 2243 BLAKE2B 21a7a98f4fb91b6da0480720f5339e04acc729585cc82389e3c602fd5326a4eeb1383a35fbe3458db7fe060ba990af62ae966e0ff185c73a928eaac98b79c96a SHA512 5d8abce718bb9a05566668b6991ee4e22e7e5df69b160659edcd6ee39a912b441ffe4a3afe0d68adc2841ee6858f316c6b543e655e99bbaff09a29addd9514b4
EBUILD vault-1.17.3.ebuild 2167 BLAKE2B 03c7f5f4f4f3602ecf11a3a6c9f303e8736adc65c3fd4d0802b75008fc5ae0177631bd082060e683a8864d5e2d313101740d479852eb8387049872354d5bddc4 SHA512 08d21b150ef033130c641aa702f4742177fe7677f4ae49dd1134c13d79f0ed97d2bd1627095ddcee9d069cb2cdd4b2cd5c928ab4866281cc28f80102c5812b8e
EBUILD vault-1.18.2.ebuild 2167 BLAKE2B 03c7f5f4f4f3602ecf11a3a6c9f303e8736adc65c3fd4d0802b75008fc5ae0177631bd082060e683a8864d5e2d313101740d479852eb8387049872354d5bddc4 SHA512 08d21b150ef033130c641aa702f4742177fe7677f4ae49dd1134c13d79f0ed97d2bd1627095ddcee9d069cb2cdd4b2cd5c928ab4866281cc28f80102c5812b8e
+EBUILD vault-1.18.3.ebuild 2167 BLAKE2B 03c7f5f4f4f3602ecf11a3a6c9f303e8736adc65c3fd4d0802b75008fc5ae0177631bd082060e683a8864d5e2d313101740d479852eb8387049872354d5bddc4 SHA512 08d21b150ef033130c641aa702f4742177fe7677f4ae49dd1134c13d79f0ed97d2bd1627095ddcee9d069cb2cdd4b2cd5c928ab4866281cc28f80102c5812b8e
MISC metadata.xml 372 BLAKE2B 8e18e03d14e17a6a5d8c6b7bdb0d87ef6aec8530e203edc579a66b0c6ba0809bbddf4d68943281483ed841daa18a87ee13bed427162e40cd6c2fe3c45b0ec4fb SHA512 07bd140cd5152ccf7e9c39a0ad45a9361b56306b773176155fceaee3dbfa4645d74dba5a21a131f0221419aed5a9aeed4a5aef7c4eec2750c803e11c96621b02
diff --git a/app-admin/vault/vault-1.18.3.ebuild b/app-admin/vault/vault-1.18.3.ebuild
new file mode 100644
index 000000000000..c201204925f2
--- /dev/null
+++ b/app-admin/vault/vault-1.18.3.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" webui? ( https://dev.gentoo.org/~zmedico/dist/${VAULT_WEBUI_ARCHIVE} )"
+SRC_URI+=" https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
+
+LICENSE="BUSL-1.1 MPL-2.0"
+LICENSE+=" Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv"
+IUSE="+webui"
+
+BDEPEND="
+ app-arch/zip
+ dev-go/enumer
+ dev-go/gox
+ >=dev-lang/go-1.21"
+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_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}\':: \
+ -e "s|^BUILD_DATE=.*|BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%SZ)|" \
+ -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}
+}