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