summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-12-23 13:12:07 -0800
committerZac Medico <zmedico@gentoo.org>2021-12-23 13:13:02 -0800
commit9090d6ac2f3ee203cb3f5acc326751dafe4b1ab7 (patch)
treed357290f47318742951de129950456b5f22a94ed /app-admin
parentdev-ada/libadalang: respect MAKEOPTS (diff)
downloadgentoo-9090d6ac2f3ee203cb3f5acc326751dafe4b1ab7.tar.gz
gentoo-9090d6ac2f3ee203cb3f5acc326751dafe4b1ab7.tar.bz2
gentoo-9090d6ac2f3ee203cb3f5acc326751dafe4b1ab7.zip
app-admin/vault: Bump to version 1.9.2
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.2.ebuild82
2 files changed, 84 insertions, 0 deletions
diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest
index 199a6f3e1ca0..2dab3a73f29f 100644
--- a/app-admin/vault/Manifest
+++ b/app-admin/vault/Manifest
@@ -1760,3 +1760,5 @@ DIST vault-1.8.7-webui.tar.xz 1385584 BLAKE2B a1dfde6cb7a3ffd2521f5090571f8227f6
DIST vault-1.8.7.tar.gz 20963269 BLAKE2B 0b77fcff26484a8031bcc44868708e75397574dd47f390fea7e539778503c2209aa78b674e544095901900971a9838b190d3c6799879f99992b759b1fe62cd79 SHA512 6fbe060bb51a0bde63d24c9a201af63d93a6853798b205f0efd4ee5cd766a420af2873ce5ef1ed632862505ef9c9a0a65c74b599bff5ba4eb9f88ae2f1c5f829
DIST vault-1.9.1-vendor.tar.gz 43355935 BLAKE2B 72d23d10143a52ea6c1a7cf24f5c4db3e1ff2449e4f3ac2bc7a8c4d28f274cdcd2746babf55b9409bf489d37b688ba7f4ea3b7deaebc73940e83f93809ae4e51 SHA512 71e3a8735c28f5ca9a127b5448a0c46cb4f87e7e241aa241d2f19dc62e2af190fa54b3b6e2c2e2d17ecd14b19164005787965d8459cc4929fac8f497ecbb1fce
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
diff --git a/app-admin/vault/vault-1.9.2.ebuild b/app-admin/vault/vault-1.9.2.ebuild
new file mode 100644
index 000000000000..e7789c2ad89d
--- /dev/null
+++ b/app-admin/vault/vault-1.9.2.ebuild
@@ -0,0 +1,82 @@
+# 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/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}
+}