From 6931716b96050238b8e433fa6b3b118ad19bfaea Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 15 Jul 2022 16:24:19 -0700 Subject: app-admin/consul: add 1.12.3 Signed-off-by: Zac Medico --- app-admin/consul/Manifest | 2 ++ app-admin/consul/consul-1.12.3.ebuild | 51 +++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 app-admin/consul/consul-1.12.3.ebuild (limited to 'app-admin') diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest index b5071dafbf90..0ebe3bf65f34 100644 --- a/app-admin/consul/Manifest +++ b/app-admin/consul/Manifest @@ -2,5 +2,7 @@ DIST consul-1.12.0-deps.tar.xz 252403904 BLAKE2B 742eaeaf4c24276de9b66d8d6b8f3b5 DIST consul-1.12.0.tar.gz 23969785 BLAKE2B 57a13905917bac77793be26fb5ac7e668233400e1f9c8eceace3463018cd8fee06b6f5a3753c8eeb250c276f8c95afd63b3b6ae1a7d847dc5adaa11880e52f53 SHA512 c83a5b9e68f46e5f458fb607f60d80fa7bc2dd46000c60bd9838fb03ea925ec5f0c0a4336f9052f70f805b41b4dd8fc872f5f6e883de5da29a87f5273507f31e DIST consul-1.12.1.tar.gz 24196810 BLAKE2B b82929de9228adaaf1bbf3a4269dd09e17b51f769d0bf040b86949dd8648e1f0b813e5cc5d5e9704b964ef5185074f58ac7347e049be6bc493cc96e4b977e22b SHA512 33925b20a81c7ab9873e5dfc24c26d14c86494c03de0a4030304bf4ac0169b59843337ef05f0564fa69de9dba08e350774e7ae62c6914769d8f0d4cb625e4910 DIST consul-1.12.2.tar.gz 24195804 BLAKE2B 550b5bc4977c9181a097f699ad5da88a81571327707b448bc659d7c8f2d92a8c82f6c1b0f13448fee25c89d08cc3771dd4fb78a4cf58d640442df38e86639cfa SHA512 91da8b1fecbd5db4c0deae1cec4b5265a26c11739633be74f6e2dd2027ab9ba5da10ba33b1b844531a59b63e4117ec57af87d55512d1098033e99f88e2e3aabc +DIST consul-1.12.3-deps.tar.xz 289711856 BLAKE2B 471b51dfc95ec8185a5d15bd94998f8d115ecbede7df6bc792704a4d63d222bda5e1a7aa260c7a93dcbe602a62df8aefd2d907602f3ca36a57dee8698205c19e SHA512 68b8bc91e03f922e31e68980350b58020ce734b808348bffff5c4b03436e50270cf6337bc9b48b95f28cb085316670ae5bc937d5620b79504e8fac766518621b +DIST consul-1.12.3.tar.gz 24365779 BLAKE2B 39b110f271fa38e03a39ee05cf0e06e9aa13a84b2cb5c1150a43cfd1c28481044e36e2e11145b4b3411662b7b969aef9b7a4fa06dd7554e6018dfd772547b7bf SHA512 33903c2ba15cde3d2d17b8942ea7a0c7aab54c60872bc80662098ee7f415f5e1651a0e5949f42c8c8b06d3f99d25899a141459a99f04c90a162baa38d33f56b9 DIST consul-1.9.17-deps.tar.xz 214799320 BLAKE2B c9fe5511156d50d4155ed6050186af894b7efc29e2f311ff542f79d298769b2dc55ee1bba12ca5ba5b81eddb6959a1d7a5e55aeb533827d5e924d3a72853a418 SHA512 be9f417e721372b8eaffe8b908f1ca1d1299c897f032cfb8b7ea8b62f7c2689011c5079a450fb5eed2e4e5454f0ad6a5e3859c91bd67166193334d100968f093 DIST consul-1.9.17.tar.gz 29480703 BLAKE2B c233eab63ea515f886234395100e47910c1acdefa0b29af5bbc96d6c078dae41e0cd4150e1f6f17daac972b3e66d3abe43b594a0c37bff790e43f0f3c0a20da2 SHA512 c859fbede7294884befd0c70469febed5a4269b21cb351f8619d13e3b29f9b8bdd8d18e9611ef34908fc54bd38f2fd0bbc6e96d4e08ab23da952c3db537fb92c diff --git a/app-admin/consul/consul-1.12.3.ebuild b/app-admin/consul/consul-1.12.3.ebuild new file mode 100644 index 000000000000..de3e94a7dcd9 --- /dev/null +++ b/app-admin/consul/consul-1.12.3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module systemd + +DESCRIPTION="A tool for service discovery, monitoring and configuration" +HOMEPAGE="https://www.consul.io" +GIT_COMMIT="2308c75e7018c3f123b5e7bd10f25ed649ce17a4" + +SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" + +LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT" +RESTRICT+=" test" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +BDEPEND="dev-go/gox" +COMMON_DEPEND=" + acct-group/consul + acct-user/consul" + DEPEND="${COMMON_DEPEND}" + RDEPEND="${COMMON_DEPEND}" + +src_compile() { + # The dev target sets causes build.sh to set appropriate XC_OS + # and XC_ARCH, and skips generation of an unused zip file, + # avoiding a dependency on app-arch/zip. + GIT_DESCRIBE="v${PV}" \ + GIT_DIRTY="" \ + GIT_COMMIT="${GIT_COMMIT}" \ + emake dev-build +} + +src_install() { + dobin bin/consul + + keepdir /etc/consul.d + insinto /etc/consul.d + doins "${FILESDIR}/"*.json.example + + keepdir /var/log/consul + fowners consul:consul /var/log/consul + + newinitd "${FILESDIR}/consul.initd" "${PN}" + newconfd "${FILESDIR}/consul.confd" "${PN}" + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" + systemd_dounit "${FILESDIR}/consul.service" +} -- cgit v1.2.3-65-gdbad