summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2022-09-29 17:42:03 -0700
committerZac Medico <zmedico@gentoo.org>2022-09-29 18:04:23 -0700
commit749db9a4347d03f06bace80d0df680df97e51fda (patch)
tree7bbdb48bf57948a6056bec0b333e4d50fd3cabf3 /app-admin
parentmedia-libs/fidlib: fix implicit function declarations (clang 16) (diff)
downloadgentoo-749db9a4347d03f06bace80d0df680df97e51fda.tar.gz
gentoo-749db9a4347d03f06bace80d0df680df97e51fda.tar.bz2
gentoo-749db9a4347d03f06bace80d0df680df97e51fda.zip
app-admin/vault: add 1.10.7
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.7.ebuild85
2 files changed, 87 insertions, 0 deletions
diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest
index ee7b37e94bb2..ef96afc6d137 100644
--- a/app-admin/vault/Manifest
+++ b/app-admin/vault/Manifest
@@ -1,4 +1,6 @@
DIST vault-1.10.6-vendor.tar.gz 50107281 BLAKE2B 121889bce4b01ef38ac4d727e8f195b164521dae4a27a1ed03051b8f18a53d15e2ddcfa16ae72871b9aca0b8c49533b0ada08ba1c26502f430187067fe6e9535 SHA512 08bb8bd2e4e4cd7fa6008776da5cca254ccc2689ef02e1a095fdf736de57f6713a6c49a7573014326bd1c93378d3a47076c37b519f49c2a5b618c47f9fee4554
DIST vault-1.10.6-webui.tar.xz 1258100 BLAKE2B f63a05ed6715574ae0c89ee447734fa279f6d63dd51e04e37bd057067b2e46cd765609db94bf79769a2138137ce18738cb0a91a092b03fa8fd4ce6082ea166f4 SHA512 fc9c8cb7911ddae0b6d13efa9d6a768c7935fc4bb8c21e43eafa0a7866b718e8f381b51c38fc72378e53d95b81c9af89367139308c50a91396350b6adfdfb7e4
+DIST vault-1.10.7-vendor.tar.gz 50109804 BLAKE2B 59a10957b34842fe0eb24cbb2de108c1fdf11b2ea6c31472944d5e607a78a5e1272caa105ef38fce733fe082e4c4257903804bacc78694f41d1149ca632f96e5 SHA512 4efb49e48fd217d3483a7114cc797d1f78c8d01a9358270905576e3056fe42a157a0056994ddceaf9ceee9b725611836b85bca80c8daec306d2c0fad772219f1
+DIST vault-1.10.7-webui.tar.xz 1258120 BLAKE2B 82acff201b446be456377f9470552626ba85aeb0233e029f34979c2a45547803e297c9cb1a051400181c41369116ffa1b72d14512bf4adf6f7aecb90b4df33d2 SHA512 1e8eb28f0033a8748c10bd63033e4f5f72c4fd9343b328e1fb98ac4ebfb999ab64bb29502cc3b9a805fa725844077b38c9795b4fb5ea3c6c9c67cdd9d5bd5bd7
DIST vault-1.11.3-vendor.tar.gz 52098996 BLAKE2B 98f590661d59fb7fe13cc90269592c9dd556dca5feb3834cc056d966bdea7164acd29483cb4179781089ff30a18c7c253414688b5e8127483539779f478099e9 SHA512 9be3d9401574005608b7d2e72856966cf93786d0a4c1e945b51a00f66e0d3152039efccd9d415378914492d6c544e1a3d2a8707406c3331521a5fe960c9cf44b
DIST vault-1.11.3-webui.tar.xz 1335776 BLAKE2B bf98149a8bd71286b0dcacab9847723536c616db6cdc78f4dafd0dacdab2d5d2a203eadbe0bd0f6937f6132cf06e4ec488c1c290a96f9b7f5b88dd4b186ca570 SHA512 136f61519ed4ebf765ea3c76cfba7732c615c7187a821265cbb4b31d9d11c5141fc8e3ad701e15246eaad550ac27a08185d32b26ed4b734eb592de8767d3004f
diff --git a/app-admin/vault/vault-1.10.7.ebuild b/app-admin/vault/vault-1.10.7.ebuild
new file mode 100644
index 000000000000..6024fed54e00
--- /dev/null
+++ b/app-admin/vault/vault-1.10.7.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 ~arm64"
+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}
+}