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/consul-template/
Date: Sat, 01 Oct 2022 01:12:34
Message-Id: 1664586747.d18a0711af5dafc6cf5a24644526723ef945ba1b.zmedico@gentoo
1 commit: d18a0711af5dafc6cf5a24644526723ef945ba1b
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 1 01:12:07 2022 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 01:12:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d18a0711
7
8 app-admin/consul-template: add 0.29.4
9
10 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
11
12 app-admin/consul-template/Manifest | 2 +
13 .../consul-template/consul-template-0.29.4.ebuild | 58 ++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/app-admin/consul-template/Manifest b/app-admin/consul-template/Manifest
17 index 9dc24c045c01..b5f4e0463115 100644
18 --- a/app-admin/consul-template/Manifest
19 +++ b/app-admin/consul-template/Manifest
20 @@ -2,3 +2,5 @@ DIST consul-template-0.29.0-deps.tar.xz 37430348 BLAKE2B 9e0af3e245420bb3166a56b
21 DIST consul-template-0.29.0.tar.gz 244446 BLAKE2B 9ff2b33d9a3ca296913bf4f5e6928b789341438a566b63e841e04b0ad528d13588bcdb34994a1d3a829c7d64593b9811480fcf9395d3527a09d473d90bdf4e23 SHA512 e562d89c753ca2bbd14ae57e084e7e2b0aac28c92c210357e22d32d5c3c138054a46f5fb8883a44f64bdd8e9654f457230cef3b24513fa7eeaefd177fd8004c7
22 DIST consul-template-0.29.1-deps.tar.xz 59041120 BLAKE2B dd822c41cf9fdfe773ed48edbc02eb409b4840c9bd6f6b66c590d2fa6a44ccea3bcac89569abf318abd2c97e7515e600ee2f1f6c469c60d068959f90e3487831 SHA512 37fd93e9ce064251941626c6ac6b6770e7c019d82cd5f6c113d2adb09460a02fb1644af26714b34f9634e6312346edb98cd841aee6b6805f7d06a07fc7c997d7
23 DIST consul-template-0.29.1.tar.gz 254592 BLAKE2B 4ad5e7c1bf2edc06d72ec1ed48f9546c698d22f8562c4c9924106891c44511b912abecc94517ed2359592b709f1f8fd05fcb00cea52893de29c62b34b61fd71e SHA512 edcfe45a3d98b9affda8b5d07fb375a647a78473c7041a87f1f5a2aa2faef2bfdef26a7037d228f6a86d0c446397e7452e7005ce16beff2bc68edabf2268a6f9
24 +DIST consul-template-0.29.4-deps.tar.xz 59446648 BLAKE2B 9ccd689f38eff50ad448a4226de918920c7acca9eb1e23d4e30f9999afc124224bb8f123b3dff4a1d433ea683ed523cd604a41472f50cb1919483040fc18c848 SHA512 3c60d88fdb82744f250cf02be3b3423f74360f18a43f4c4204ee97f73c370b878ecdbd5a300f96b74ffd9c7cde66f6c8b974392f7acc07a113b85ab6f1b6d8e9
25 +DIST consul-template-0.29.4.tar.gz 262539 BLAKE2B 487902c2a05561db325e6d2638a70d2733a27dd31f678b65883d0b4925b4efa38fe4fbe6c7128c9473af4d4a21f467288a2c1945da399f6feab39216b67dd5aa SHA512 3bc5fcd1877fe125398d6bf0bd4938af88cacf726441af3e82142e651ab458185593eec3cb7c5916669a0e39dff8059c049556509ec279bf572f03b4c915d757
26
27 diff --git a/app-admin/consul-template/consul-template-0.29.4.ebuild b/app-admin/consul-template/consul-template-0.29.4.ebuild
28 new file mode 100644
29 index 000000000000..612bb41f3539
30 --- /dev/null
31 +++ b/app-admin/consul-template/consul-template-0.29.4.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit go-module systemd
39 +
40 +DESCRIPTION="Generic template rendering and notifications with Consul"
41 +HOMEPAGE="https://github.com/hashicorp/consul-template"
42 +SRC_URI="https://github.com/hashicorp/consul-template/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
43 + https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
44 +
45 +LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 ISC MIT WTFPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +
49 +COMMON_DEPEND="
50 + acct-group/consul-template
51 + acct-user/consul-template"
52 +
53 +DEPEND="${COMMON_DEPEND}"
54 +RDEPEND="${COMMON_DEPEND}"
55 +
56 +# TODO: debug test failures
57 +RESTRICT+=" test"
58 +
59 +src_prepare() {
60 + default
61 + # remove -s and -w from the linker flags
62 + sed \
63 + -e '/-s \\/d' \
64 + -e '/-w \\/d' \
65 + -i Makefile || die
66 +}
67 +
68 +src_compile() {
69 + emake GOBIN="${S}"/bin dev
70 +}
71 +
72 +src_test() {
73 + emake GOBIN="${S}"/bin test
74 +}
75 +
76 +src_install() {
77 + dobin bin/${PN}
78 + dodoc CHANGELOG.md README.md
79 +
80 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
81 + newconfd "${FILESDIR}/${PN}.confd" "${PN}"
82 + insinto /etc/logrotate.d
83 + newins "${FILESDIR}/${PN}.logrotated" "${PN}"
84 + systemd_dounit "${FILESDIR}/${PN}.service"
85 +
86 + keepdir /etc/${PN}.d
87 +
88 + keepdir /var/log/${PN}
89 + fowners ${PN}:${PN} /var/log/${PN}
90 +}