diff options
Diffstat (limited to 'app-metrics/loki/loki-2.9.2.ebuild')
-rw-r--r-- | app-metrics/loki/loki-2.9.2.ebuild | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app-metrics/loki/loki-2.9.2.ebuild b/app-metrics/loki/loki-2.9.2.ebuild new file mode 100644 index 000000000..ab67587c9 --- /dev/null +++ b/app-metrics/loki/loki-2.9.2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="Like Prometheus, but for logs" +HOMEPAGE="https://github.com/grafana/loki" +SRC_URI="https://github.com/grafana/loki/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64" + +COMMON_DEPEND="acct-group/loki + acct-user/loki" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +src_compile() { + ego build ./cmd/loki +} + +src_install() { + # Install the loki binary into /usr/bin + insinto /usr/bin + dobin loki +} |