Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: promtail-2.6.1
@ 2022-09-16 16:22 Shanduur
  2022-09-16 16:25 ` Shanduur
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: Shanduur @ 2022-09-16 16:22 UTC (permalink / raw)
  To: ml

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

There is a new 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: 2222 bytes --]

From c225c53745f373d3fa38063e6b6fe65fbe14acad 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     |  7 +++++++
 srcpkgs/promtail/template               | 24 ++++++++++++++++++++++++
 3 files changed, 33 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..07d71af43904
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -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..c3dd207cb126
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+[ -f ./conf ] && . ./conf
+
+exec ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19 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
+}

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2023-01-12  2:29 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 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
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 ` [PR PATCH] [Closed]: " Shanduur
2022-09-19 14:58 ` [PR PATCH] [Updated] " Shanduur
2022-09-19 14:59 ` 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

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).