Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/vault/
Date: Sun, 28 Oct 2018 16:44:38
Message-Id: 1540745047.0875c6feb4003cbaa8753609a8484f52ae9e90c7.mrueg@gentoo
1 commit: 0875c6feb4003cbaa8753609a8484f52ae9e90c7
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 28 16:44:07 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 28 16:44:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0875c6fe
7
8 app-admin/vault: Version bump to 0.11.4
9
10 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 app-admin/vault/Manifest | 1 +
14 app-admin/vault/vault-0.11.4.ebuild | 70 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 71 insertions(+)
16
17 diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest
18 index eacf6306710..640926e2e5f 100644
19 --- a/app-admin/vault/Manifest
20 +++ b/app-admin/vault/Manifest
21 @@ -1,3 +1,4 @@
22 DIST vault-0.10.3.tar.gz 15902247 BLAKE2B f69ddbe1309800cfae756f8ca1dd0da3e92ce49a1ec70539dc30785344afb7fe39472dcb2fb5ee4f410c7b52b13b00996b08d89624ef8523adcf4f809601ad5c SHA512 baacf549f9b73d306154dad6cd6efb3fb0eca3280c885cd772dada524cd436c1d5f1f705118274aa7cea6002cd8e0b86f1dfb02c4f5787d08dc535112cb62096
23 DIST vault-0.10.4.tar.gz 19207588 BLAKE2B 035e83c1d119b266817490afd4506fee5e5ceeff8a7c59188c59e28067f06e78f57e06d200026b288908f49a19ed22ebfd67e08c3c70026c7da22d05e33ec343 SHA512 7331e49c2bebbbbcebc74cfc1ce7d6984590fdd39b47f0bbf1b610cfe37b900a86b8ea63bc5d5e28ba34b68433944486979177aee6c10bf188095f5a50a4b61a
24 DIST vault-0.11.0.tar.gz 24430984 BLAKE2B 0c1d40ed9f8dbc19ae7bce38308f7a55e12e8a907798022ce6b5783f2be9b9d7a9a1842683b8df411b3b754c716fd7366a0261d890e2153c64a70df6a3c6b844 SHA512 33e1e76a0e16803a8d0d6ed8ec0b6d1f8876d54ecf35a70bc4969404bd7991ef0cc5986eae958885d288bb316396e0594a5571b7a11f8b052b22b445388f03c7
25 +DIST vault-0.11.4.tar.gz 25456828 BLAKE2B 35ed79e8474c4fffb046b5163bfd7115ca4ffe3c3560732d9f73349a1187417a288c30985d7ac450b86f682aa7a1d5318634c1be60e5bffce04137e32f2ad13d SHA512 99e592d679d65d75d62812e2d0ae9a652342a97f4934a2ca00a9ac044cdc92b35e7108296cf1a700ed36818a504fcaf155f8f61d7b10d84933932bdab00a9f7e
26
27 diff --git a/app-admin/vault/vault-0.11.4.ebuild b/app-admin/vault/vault-0.11.4.ebuild
28 new file mode 100644
29 index 00000000000..52a7f68b449
30 --- /dev/null
31 +++ b/app-admin/vault/vault-0.11.4.ebuild
32 @@ -0,0 +1,70 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit fcaps golang-base golang-vcs-snapshot systemd user
39 +
40 +EGO_PN="github.com/hashicorp/${PN}"
41 +DESCRIPTION="A tool for managing secrets"
42 +HOMEPAGE="https://vaultproject.io/"
43 +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +SLOT="0"
45 +LICENSE="MPL-2.0"
46 +KEYWORDS="~amd64"
47 +IUSE=""
48 +
49 +RESTRICT="test"
50 +
51 +DEPEND=">=dev-lang/go-1.10:=
52 + dev-go/gox"
53 +
54 +FILECAPS=(
55 + -m 755 'cap_ipc_lock=+ep' usr/bin/${PN}
56 +)
57 +
58 +src_prepare() {
59 + default
60 + # Avoid the need to have a git checkout
61 + sed -e 's:^\(GIT_COMMIT=\).*:\1:' \
62 + -e 's:^\(GIT_DIRTY=\).*:\1:' \
63 + -e s:\'\${GIT_COMMIT}\${GIT_DIRTY}\':: \
64 + -i src/${EGO_PN}/scripts/build.sh || die
65 + sed -e "/hooks/d" -i src/${EGO_PN}/Makefile || die
66 +}
67 +
68 +pkg_setup() {
69 + enewgroup ${PN}
70 + enewuser ${PN} -1 -1 -1 ${PN}
71 +}
72 +
73 +src_compile() {
74 + mkdir bin || die
75 + export GOPATH=${S}
76 + cd src/${EGO_PN} || die
77 + # The fmt target may need to be executed if it was previously
78 + # executed by an older version of go (bug 665438).
79 + emake fmt
80 + XC_ARCH=$(go env GOARCH) \
81 + XC_OS=$(go env GOOS) \
82 + XC_OSARCH=$(go env GOOS)/$(go env GOARCH) \
83 + emake
84 +}
85 +
86 +src_install() {
87 + dodoc src/${EGO_PN}/{CHANGELOG.md,CONTRIBUTING.md,README.md}
88 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
89 + newconfd "${FILESDIR}/${PN}.confd" "${PN}"
90 + insinto /etc/logrotate.d
91 + newins "${FILESDIR}/${PN}.logrotated" "${PN}"
92 + systemd_dounit "${FILESDIR}/${PN}.service"
93 +
94 + keepdir /etc/${PN}.d
95 + insinto /etc/${PN}.d
96 + doins "${FILESDIR}/"*.json.example
97 +
98 + keepdir /var/log/${PN}
99 + fowners ${PN}:${PN} /var/log/${PN}
100 +
101 + dobin bin/${PN}
102 +}