* [gentoo-commits] repo/proj/guru:dev commit in: acct-user/loki/, app-metrics/loki/, acct-group/loki/
@ 2023-12-23 0:01 George Zenner
0 siblings, 0 replies; only message in thread
From: George Zenner @ 2023-12-23 0:01 UTC (permalink / raw
To: gentoo-commits
commit: b3623bcb667ba03cab07490db533c389a2dd87de
Author: Zen <z <AT> pyl <DOT> onl>
AuthorDate: Tue Dec 19 16:56:26 2023 +0000
Commit: George Zenner <dev <AT> pyl <DOT> onl>
CommitDate: Fri Dec 22 23:59:10 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b3623bcb
app-metrics/loki: Added initial ebuild, account/user groups
Signed-off-by: Zen <z <AT> pyl.onl>
acct-group/loki/loki.ebuild | 9 +++++++++
acct-group/loki/metadata.xml | 11 +++++++++++
acct-user/loki/loki.ebuild | 12 ++++++++++++
acct-user/loki/metadata.xml | 11 +++++++++++
app-metrics/loki/Manifest | 1 +
app-metrics/loki/loki-2.9.2.ebuild | 28 ++++++++++++++++++++++++++++
app-metrics/loki/metadata.xml | 11 +++++++++++
7 files changed, 83 insertions(+)
diff --git a/acct-group/loki/loki.ebuild b/acct-group/loki/loki.ebuild
new file mode 100644
index 0000000000..01259b5012
--- /dev/null
+++ b/acct-group/loki/loki.ebuild
@@ -0,0 +1,9 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit acct-group
+
+DESCRIPTION="Group for Loki service account."
+ACCT_GROUP_ID=536
diff --git a/acct-group/loki/metadata.xml b/acct-group/loki/metadata.xml
new file mode 100644
index 0000000000..6b25988077
--- /dev/null
+++ b/acct-group/loki/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>z@pyl.onl</email>
+ <name>Zen</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">grafana/loki</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/acct-user/loki/loki.ebuild b/acct-user/loki/loki.ebuild
new file mode 100644
index 0000000000..fa65ac7906
--- /dev/null
+++ b/acct-user/loki/loki.ebuild
@@ -0,0 +1,12 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit acct-user
+
+DESCRIPTION="User for Loki."
+ACCT_USER_ID=536
+ACCT_USER_GROUPS=( ${PN} )
+
+acct-user_add_deps
diff --git a/acct-user/loki/metadata.xml b/acct-user/loki/metadata.xml
new file mode 100644
index 0000000000..6b25988077
--- /dev/null
+++ b/acct-user/loki/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>z@pyl.onl</email>
+ <name>Zen</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">grafana/loki</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-metrics/loki/Manifest b/app-metrics/loki/Manifest
new file mode 100644
index 0000000000..9bc92d1c58
--- /dev/null
+++ b/app-metrics/loki/Manifest
@@ -0,0 +1 @@
+DIST loki-2.9.2.tar.gz 45711316 BLAKE2B d72445877493b7773ebd43dc7719060893b282068f7099a47b80b5bde131ae65dfb96e1f8176ef5993e07977a67b70b7692b158d673968813580b72fb34fe03a SHA512 44640fd2026ff21499916c1eb16b871f6af9b83d19fc7bae9c997f45185487093a9b5a33d402a1890024770dadbc98f45e103dacd397c0dd432ee0619838418e
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 0000000000..ab67587c9a
--- /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
+}
diff --git a/app-metrics/loki/metadata.xml b/app-metrics/loki/metadata.xml
new file mode 100644
index 0000000000..be888d8627
--- /dev/null
+++ b/app-metrics/loki/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dev@pyl.onl</email>
+ <name>Zen</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">grafana/loki</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-23 0:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-23 0:01 [gentoo-commits] repo/proj/guru:dev commit in: acct-user/loki/, app-metrics/loki/, acct-group/loki/ George Zenner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox