Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/vault/
Date: Sun, 25 Jul 2021 02:29:00
Message-Id: 1627180109.423e045bb65e7795f4e6e0354d15f43958186251.zmedico@gentoo
1 commit: 423e045bb65e7795f4e6e0354d15f43958186251
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 25 02:24:48 2021 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 25 02:28:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=423e045b
7
8 app-admin/vault: Remove vulnerable version 1.5.6
9
10 Bug: https://bugs.gentoo.org/797244
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
13
14 app-admin/vault/Manifest | 2 -
15 app-admin/vault/vault-1.5.6.ebuild | 78 --------------------------------------
16 2 files changed, 80 deletions(-)
17
18 diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest
19 index f192b54a80c..4b5b1dd2495 100644
20 --- a/app-admin/vault/Manifest
21 +++ b/app-admin/vault/Manifest
22 @@ -1,5 +1,3 @@
23 -DIST vault-1.5.6-webui.tar.xz 1237168 BLAKE2B 997a3ef1e297e288d2abf14647667fd07ebd2e9c6389aad90e3c8fe4d66b5e77004ad07575c6a48d38eb1a4e4040af6cf341edc17bbe87a575a31e06f91449aa SHA512 afed06fe9866dd24ea925e49e2ebdb477ef40dd8ea0137fec1f8a86e17cbe5679ef23a9d9a248ce4de8a21392c96d50f47487c5a866f45ad7317c6cbfc1a5fda
24 -DIST vault-1.5.6.tar.gz 35110596 BLAKE2B 6e2581b82dfc98f0fd4c807dd24c9e17b4e4c3252ab5744388e17a076d8ed613ea2360f8bf5b975ee5b15d6c7f96100f2b814e290ab47e33c565525ffe1eeda3 SHA512 1da2a6f1307583f03298a4199d301536783787ae1d9b16a8b0a4cce55d29a1fd8a1631366a55aa4671d5b7f6fb9108ffe55d9ec9575e887e495a512b00cf9cb3
25 DIST vault-1.5.9-webui.tar.xz 1244124 BLAKE2B bdd56f3ffc3c1733f9ba3c76be2e6969039dfbf03ba3ced1f9fa69b2622b51d09e18c5a2c1127a5056db54a2a034549d40e3edbba23849276ce15360e3859afb SHA512 5abac5ccaf0c3010327eb79e78b3fe37de89202e998c19457d8782d138e826e2c6e319dca221419977ecc6dbe7477e7778c9d5011ecef5eaa49e53a4485f586e
26 DIST vault-1.5.9.tar.gz 35127251 BLAKE2B 7b2c24f797f0c54672b49a28989e0e465d9a0054f26cfcaf22d030a9f3b25d79b496044bb65a6d4c363b7478a3ca6d8dac1520169d6c347fe75bac3ff6001df6 SHA512 de5dfa9cb0ca41514fa5652d2cd3dacc312b1a6d9f2311823a1634dadb6bc4430d8124ac9089dd93f7277ff44f3fee37354b3ae48f8ece839ba859c89655510b
27 DIST vault-1.6.5-webui.tar.xz 1273364 BLAKE2B 3fd23a322f435cc1151c7c7321bd48ddbf5a06e260e77cb51353e5df940a7e7932b7043e914da149664d20e7a10b24771c6c3f1cad0cae035b654f4e206212aa SHA512 cbc433bf101996ff1f800b023664f1a6b9e3473fb2220986724f2019801cbe758a0889f1e9ab8a4fbcda3a6d75e453251a24f1c81228616f6a377100c4e7ae7a
28
29 diff --git a/app-admin/vault/vault-1.5.6.ebuild b/app-admin/vault/vault-1.5.6.ebuild
30 deleted file mode 100644
31 index 0e1b75de2be..00000000000
32 --- a/app-admin/vault/vault-1.5.6.ebuild
33 +++ /dev/null
34 @@ -1,78 +0,0 @@
35 -# Copyright 1999-2021 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -inherit fcaps go-module systemd
41 -
42 -DESCRIPTION="A tool for managing secrets"
43 -HOMEPAGE="https://vaultproject.io/"
44 -VAULT_WEBUI_ARCHIVE="${P}-webui.tar.xz"
45 -SRC_URI="https://github.com/hashicorp/vault/archive/v${PV}.tar.gz -> ${P}.tar.gz
46 - webui? (
47 - https://dev.gentoo.org/~zmedico/dist/${VAULT_WEBUI_ARCHIVE}
48 - )"
49 -
50 -LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
51 -SLOT="0"
52 -KEYWORDS="amd64"
53 -IUSE="+webui"
54 -
55 -BDEPEND="dev-go/gox
56 - >=dev-lang/go-1.14.7"
57 -COMMON_DEPEND="acct-group/vault
58 - acct-user/vault"
59 - DEPEND="${COMMON_DEPEND}"
60 - RDEPEND="${COMMON_DEPEND}"
61 -
62 -FILECAPS=(
63 - -m 755 'cap_ipc_lock=+ep' usr/bin/${PN}
64 -)
65 -
66 -RESTRICT+=" test"
67 -
68 -src_prepare() {
69 - default
70 - # Avoid the need to have a git checkout
71 - sed -e 's:^\(GIT_COMMIT=\).*:\1:' \
72 - -e 's:^\(GIT_DIRTY=\).*:\1:' \
73 - -e s:\'\${GIT_COMMIT}\${GIT_DIRTY}\':: \
74 - -i scripts/build.sh || die
75 - sed -e "/hooks/d" \
76 - -e 's|^\([[:space:]]*\)goimports .*)|\1true|' \
77 - -i Makefile || die
78 - if [[ -f "${WORKDIR}/http/bindata_assetfs.go" ]]; then
79 - mv "${WORKDIR}/http/bindata_assetfs.go" "${S}/http" ||
80 - die "mv failed"
81 - fi
82 -}
83 -
84 -src_compile() {
85 - mkdir "${T}"/bin || die
86 - BUILD_TAGS="$(usex webui ui '')" \
87 - GOFLAGS="-mod=vendor" \
88 - GOPATH="${T}" \
89 - XC_ARCH=$(go env GOARCH) \
90 - XC_OS=$(go env GOOS) \
91 - XC_OSARCH=$(go env GOOS)/$(go env GOARCH) \
92 - emake
93 -}
94 -
95 -src_install() {
96 - dobin bin/${PN}
97 - dodoc CHANGELOG.md CONTRIBUTING.md README.md
98 - insinto /etc/${PN}.d
99 - doins "${FILESDIR}/"*.json.example
100 - insinto /etc/logrotate.d
101 - newins "${FILESDIR}/${PN}.logrotated" "${PN}"
102 - newinitd "${FILESDIR}/${PN}.initd" "${PN}"
103 - newconfd "${FILESDIR}/${PN}.confd" "${PN}"
104 - systemd_dounit "${FILESDIR}/${PN}.service"
105 - keepdir /var/log/${PN}
106 - fowners ${PN}:${PN} /var/log/${PN}
107 -}
108 -
109 -pkg_postinst() {
110 - fcaps_pkg_postinst
111 - go-module_pkg_postinst
112 -}