summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2022-01-30 16:45:16 -0800
committerZac Medico <zmedico@gentoo.org>2022-01-30 16:45:39 -0800
commit41e99c76cbf39342a84b80f25cf81eb6ccfbe226 (patch)
treecb43725d58452ecb20249c33a45c0c24321a395b /app-admin
parentapp-admin/vault: Bump to version 1.8.8 (diff)
downloadgentoo-41e99c76cbf39342a84b80f25cf81eb6ccfbe226.tar.gz
gentoo-41e99c76cbf39342a84b80f25cf81eb6ccfbe226.tar.bz2
gentoo-41e99c76cbf39342a84b80f25cf81eb6ccfbe226.zip
app-admin/vault: Bump to version 1.9.3
Package-Manager: Portage-3.0.30, Repoman-3.0.3 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.9.3.ebuild82
2 files changed, 84 insertions, 0 deletions
diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest
index c70f53e7f4b0..61eaddbbeb0e 100644
--- a/app-admin/vault/Manifest
+++ b/app-admin/vault/Manifest
@@ -1780,3 +1780,5 @@ DIST vault-1.9.1-vendor.tar.gz 43355935 BLAKE2B 72d23d10143a52ea6c1a7cf24f5c4db3
DIST vault-1.9.1-webui.tar.xz 1088388 BLAKE2B bd2e4db976d2f62d3327cf116cf9f84d47c18d0b1ec0c24ad9d2061714c0270b93e861ca889fae1af91160bdc697ad45bd6d3bd7b5df003246c08e78722d2c5d SHA512 696cbb3558030bd972545725715c494d0b9b9b46df93210fe5197be0400bfa2a9bdc8a3c7381547f1442659913b666d09b281808fdc3cce1de9b8ab8b78f0053
DIST vault-1.9.2-vendor.tar.gz 43356262 BLAKE2B 5975c58cfec150f8b12003c682362cb038305cf87fff1765ffde1b09841986c29086e0df81e9b3f6cb1d463e34a08f5a7df0a080d9b641a170b2b2f899ed2cf5 SHA512 eab2654a817806c711c0e3b7c17a9125745fd02da8ea750d7d62f2b740f445712279944035e333465e5263529c797bb270ecf7dda27ff7794068862110d9328a
DIST vault-1.9.2-webui.tar.xz 1088616 BLAKE2B 7841a7bb8b1a664692dd9fc89c928dee8767533cf661fa5ed429e6d8e1db6f6633882cd8f919b059d76b95fd2095b9eaaa95237fdd411aef730b2b80ffe9469a SHA512 b6adda55576011389e981ec7b22177623838b5de6246d775e3f360fdf8bd1596d7a01d1e0578301bb28764293eba00fca95265816aba1ecbe7824e104af21bf6
+DIST vault-1.9.3-vendor.tar.gz 43363371 BLAKE2B eb07946fa31a18ead488500ceaa73b4b4747a8f9eff8819337fd5f7735e5d034901c365031852e841b5692947b2e2269b1be38e9ff46b66557f71504fb0b1bf0 SHA512 413c9d6b3471ad79784b5f695affcdd2c3e0b0d0772356648ad53225556cd8b872b09b6b91d637bd2d93536a3576e45ea94945cf74a0c2652a6188ed6a45ba35
+DIST vault-1.9.3-webui.tar.xz 1088548 BLAKE2B 696006ffc5fe6916630e46a58f111891ac06b57d6dbe09f553f65469781315ba372064af448ad42a6dbf70465ece035b42b93cafcb584942f6d2bc61432acfd9 SHA512 bd5808eb045793b1b32d1b623ed60e84cebaddd3aa9a1f2fa9e72cf45f1b1bf33f3f3a4131fc49be8cdaa8fde32d9d16e9221e728fb06b7d84b0596a05ca0d05
diff --git a/app-admin/vault/vault-1.9.3.ebuild b/app-admin/vault/vault-1.9.3.ebuild
new file mode 100644
index 000000000000..84d20b363fcc
--- /dev/null
+++ b/app-admin/vault/vault-1.9.3.ebuild
@@ -0,0 +1,82 @@
+# 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}
+ )
+ ${EGO_SUM_SRC_URI}"
+
+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
+ mv "${WORKDIR}/http/web_ui" "${S}/http/web_ui" ||
+ die "mv failed"
+ 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}
+}