Github messages for voidlinux
 help / color / mirror / Atom feed
From: Shanduur <Shanduur@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: promtail-2.6.1
Date: Fri, 16 Sep 2022 19:14:15 +0200	[thread overview]
Message-ID: <20220916171415.SClM13E0RJ7MFWHiUcxCvSXQ64u-lJ9Son1vV29rj9g@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39318@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

There is an updated pull request by Shanduur against master on the void-packages repository

https://github.com/Shanduur/void-packages new-package-promtail
https://github.com/void-linux/void-packages/pull/39318

New package: promtail-2.6.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64
  - aarch64-musl
  - aarch64



A patch file from https://github.com/void-linux/void-packages/pull/39318.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-promtail-39318.patch --]
[-- Type: text/x-diff, Size: 2235 bytes --]

From e57ad99f5abb3ebf6464e88281ea617c27aac3d4 Mon Sep 17 00:00:00 2001
From: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
Date: Fri, 16 Sep 2022 09:53:56 -0400
Subject: [PATCH] New package: promtail-2.6.1

---
 srcpkgs/promtail/files/promtail/log/run |  2 ++
 srcpkgs/promtail/files/promtail/run     |  9 +++++++++
 srcpkgs/promtail/template               | 24 ++++++++++++++++++++++++
 3 files changed, 35 insertions(+)
 create mode 100644 srcpkgs/promtail/files/promtail/log/run
 create mode 100644 srcpkgs/promtail/files/promtail/run
 create mode 100644 srcpkgs/promtail/template

diff --git a/srcpkgs/promtail/files/promtail/log/run b/srcpkgs/promtail/files/promtail/log/run
new file mode 100644
index 000000000000..85df4d446f96
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t promtail
diff --git a/srcpkgs/promtail/files/promtail/run b/srcpkgs/promtail/files/promtail/run
new file mode 100644
index 000000000000..a7d970379589
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ -f ./conf ] && . ./conf
+
+export ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19
+
+exec promtail \
+    --config.file=/etc/promtail/promtail-local-config.yaml \
+    ${ARGS} 2>&1
diff --git a/srcpkgs/promtail/template b/srcpkgs/promtail/template
new file mode 100644
index 000000000000..ab65604eaf5f
--- /dev/null
+++ b/srcpkgs/promtail/template
@@ -0,0 +1,24 @@
+# Template file for 'promtail'
+pkgname=promtail
+version=2.6.1
+revision=1
+wrksrc="loki-${version}"
+build_style=go
+go_import_path="github.com/grafana/loki"
+go_package="${go_import_path}/clients/cmd/promtail"
+short_desc="Promtail is an agent which ships the contents of local logs to a Grafana Loki instance"
+maintainer="Mateusz Urbanek <murbanek@shanduur.com>"
+license="Apache-2.0"
+homepage="https://grafana.com/oss/loki/"
+distfiles="https://github.com/grafana/loki/archive/v${version}.tar.gz"
+checksum=4b41175e552dd198bb9cae213df3c0d9ca8cacd0b673f79d26419cea7cfb2df7
+
+pre_build() {
+	export CGO_ENABLED=0
+}
+
+post_install() {
+	vmkdir etc/promtail
+	vcopy clients/cmd/promtail/promtail-local-config.yaml etc/promtail/promtail-local-config.yaml
+	vsv promtail
+}

  parent reply	other threads:[~2022-09-16 17:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-16 16:22 [PR PATCH] " Shanduur
2022-09-16 16:25 ` Shanduur
2022-09-16 16:28 ` [PR REVIEW] " Duncaen
2022-09-16 17:08 ` [PR PATCH] [Updated] " Shanduur
2022-09-16 17:14 ` Shanduur [this message]
2022-09-18 13:41 ` [PR REVIEW] " sgn
2022-09-18 13:42 ` sgn
2022-09-18 13:44 ` sgn
2022-09-18 20:39 ` Shanduur
2022-09-19 14:51 ` [PR PATCH] [Updated] " Shanduur
2022-09-19 14:58 ` Shanduur
2022-09-19 14:58 ` [PR PATCH] [Closed]: " Shanduur
2022-09-19 14:59 ` [PR PATCH] [Updated] " Shanduur
2022-09-19 15:11 ` Duncaen
2022-09-19 15:12 ` [PR REVIEW] " Duncaen
2022-09-19 16:35 ` [PR PATCH] [Updated] " Shanduur
2022-09-19 16:36 ` Shanduur
2022-12-29  1:57 ` github-actions
2023-01-12  2:29 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220916171415.SClM13E0RJ7MFWHiUcxCvSXQ64u-lJ9Son1vV29rj9g@z \
    --to=shanduur@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).