diff options
-rw-r--r-- | app-metrics/github-exporter/Manifest | 2 | ||||
-rw-r--r-- | app-metrics/github-exporter/github-exporter-1.0.3.ebuild | 39 |
2 files changed, 41 insertions, 0 deletions
diff --git a/app-metrics/github-exporter/Manifest b/app-metrics/github-exporter/Manifest index 5f8bab77035a..f27ca3ae0690 100644 --- a/app-metrics/github-exporter/Manifest +++ b/app-metrics/github-exporter/Manifest @@ -1,2 +1,4 @@ DIST github-exporter-1.0.2-deps.tar.xz 6692672 BLAKE2B 7b0d32b116d7661c89271c674c01680e7cf5b4af83e7eebf4d069a34696fffdf21c57f376acce02922d8c02a8238d967115d561cca4dec1437efb561b5bb3661 SHA512 4c3c24ab3cdc8723f47226f90bdaeff2b5d92d38184bfdc230351db74a172c3dcb9fb4bd3c240a70a15e71eb0ad782c579f3fa3bb0aff105999aa3f4a6110c1e DIST github-exporter-1.0.2.tar.gz 20534 BLAKE2B 344e01adfca6afade30598305ba388878ddfb3a7e277dc95b87bb5a409bc269b4bfce7ba178ac155f3cd06f72fcf69cf8c38c898eaf391e85ce122618c707fcd SHA512 98326a8c33a7b1e3e7d4106bdd58d07ec34a9f56bce5e4caefe07ba31ac50e2c98bf849aa60cf9d5445afd02d3d9c899a3cb59eddf45635130853d740b3d6347 +DIST github-exporter-1.0.3-deps.tar.xz 7786648 BLAKE2B 1dd1876f144e95602131f6f0ec11f4189a88a56821f4ee812b906a1d6d8494651465e416c409a998b19b48081ec8c53d5f11a51f8292002cb9fc50fc13fc4e81 SHA512 247b80369efe54e838868b0c94075031a4430d03f1c8ffefb686d94a6de70f5f288f79459a14f9c1331d2f1a3f9e865e5f7cbd658dc6f01bc7c6e893b5305af2 +DIST github-exporter-1.0.3.tar.gz 22089 BLAKE2B 69ac6a71fa8872c08cb24b6fa3e0aa79a8d49fdc626606f5ae1265cb654f73a320d53c1f934f3b2a116c713412f0cb278e27ed892da19b54ff09405abba5bfc4 SHA512 9b3ab36dc8c76e844afdb7f36099dca86f358072fb0ccc134e4ba6754b2a84122b700bb92607014eb2e21e1e3f3889f842e82cd612e66d223e31aef60d123220 diff --git a/app-metrics/github-exporter/github-exporter-1.0.3.ebuild b/app-metrics/github-exporter/github-exporter-1.0.3.ebuild new file mode 100644 index 000000000000..52f961aa7341 --- /dev/null +++ b/app-metrics/github-exporter/github-exporter-1.0.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 2019-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module systemd +DESCRIPTION="Github statistics exporter for prometheus" +HOMEPAGE="https://github.com/infinityworks/github-exporter" +SRC_URI="https://github.com/infinityworks/github-exporter/archive/${PV}.tar.gz -> ${P}.tar.gz +https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + +LICENSE="MIT Apache-2.0 BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="acct-group/github-exporter + acct-user/github-exporter" + + src_prepare() { + default + sed -i -e 's/-race//' Makefile || die 'sed failed' + } + +src_compile() { + ego build +} + +src_install() { + dobin ${PN} + dodoc *.md + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "Before you can use ${PN}, you must configure it in" + elog "${EROOT}/etc/conf.d/${PN}" + fi +} |