[arch-commits] Commit in grafana-agent/repos/community-x86_64 (8 files)
Daurnimator
daurnimator at gemini.archlinux.org
Wed May 4 05:37:19 UTC 2022
Date: Wednesday, May 4, 2022 @ 05:37:19
Author: daurnimator
Revision: 1192488
archrelease: copy trunk to community-x86_64
Added:
grafana-agent/repos/community-x86_64/PKGBUILD
(from rev 1192487, grafana-agent/trunk/PKGBUILD)
grafana-agent/repos/community-x86_64/grafana-agent.service
(from rev 1192487, grafana-agent/trunk/grafana-agent.service)
grafana-agent/repos/community-x86_64/grafana-agent.sysusers
(from rev 1192487, grafana-agent/trunk/grafana-agent.sysusers)
grafana-agent/repos/community-x86_64/grafana-agent.tmpfiles
(from rev 1192487, grafana-agent/trunk/grafana-agent.tmpfiles)
Deleted:
grafana-agent/repos/community-x86_64/PKGBUILD
grafana-agent/repos/community-x86_64/grafana-agent.service
grafana-agent/repos/community-x86_64/grafana-agent.sysusers
grafana-agent/repos/community-x86_64/grafana-agent.tmpfiles
------------------------+
PKGBUILD | 176 +++++++++++++++++++++++------------------------
grafana-agent.service | 62 ++++++++--------
grafana-agent.sysusers | 4 -
grafana-agent.tmpfiles | 2
4 files changed, 122 insertions(+), 122 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-04 05:36:50 UTC (rev 1192487)
+++ PKGBUILD 2022-05-04 05:37:19 UTC (rev 1192488)
@@ -1,88 +0,0 @@
-# Maintainer: Daurnimator <daurnimator at archlinux.org>
-
-pkgname=('grafana-agent' 'grafana-agentctl' 'grafana-agent-crow')
-pkgver=0.24.1
-pkgrel=2
-pkgdesc='Grafana Agent is a telemetry collector for sending metrics, logs, and trace data to the opinionated Grafana observability stack'
-url='https://github.com/grafana/agent'
-arch=('x86_64')
-license=('Apache')
-depends=('glibc')
-makedepends=('go')
-options=('!lto')
-source=($pkgname-$pkgver.tar.gz::https://github.com/grafana/agent/archive/v$pkgver.tar.gz
- "https://github.com/grafana/agent/commit/9e373f7b128c5045618371837dcdb0fc86dcbe76.patch"
- grafana-agent.sysusers grafana-agent.service grafana-agent.tmpfiles)
-sha512sums=('d3cbfe563b4b0a006238ed2acc04232f08470f0436f05ef224bbfc82a642de1246554f3b9a66e84dad7c1694be974cb5be3b6ecb659fd49bc77e5fe45552783b'
- '237048bb6c02b2ce35fc7f4f70e2095da1fbd1e2fbbe7251f3c3d38dd79332320dd47b1a05564cd6ccea547fd23f4733b33e01cae0f58a46292336c25c92dee3'
- '1e58f6273562fd6ddeae41bb6d223230ed301199af6bd2f85fa3d2c1e6352952c600cd4488ad769069519c42b6863be84aaa2c93c88f696e5a0bedbb93758d0e'
- '3f8debbc4732009f54c063d70c2dce4846b81b829f495d25a431fef857077c83949d777f763de8c106fb8d1cf0bd7e874680db8387b4811704b1a303932fa090'
- '3a4c4896b2454272b5a2d53ba5aa7009fa5b42a573fef521afb5d9712e53119539c4195d2b149d04d086c5fa197ccf7dc9bbdc407efb55514e3c92b994121fa8')
-
-prepare() {
- cd "agent-$pkgver"
-
- patch -p1 -i ../9e373f7b128c5045618371837dcdb0fc86dcbe76.patch
-
- go mod download
-}
-
-build() {
- cd "agent-$pkgver"
-
- export CGO_LDFLAGS="${LDFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
- export GOPROXY=off
- for path in cmd/agent cmd/agentctl tools/crow; do
- go build \
- -trimpath \
- -buildmode=pie \
- -mod=readonly \
- -modcacherw \
- -ldflags " \
- -X github.com/grafana/agent/pkg/build.Version=$pkgver
- -X github.com/grafana/agent/pkg/build.BuildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ' --date=@${SOURCE_DATE_EPOCH})
- -linkmode external
- -extldflags \"${LDFLAGS}\"" \
- "./$path"
- done
-}
-
-check() {
- cd "agent-$pkgver"
-
- ./agent -version
-
- go test -v ./cmd/agent/... ./cmd/agentctl/... ./tools/crow/...
-}
-
-package_grafana-agent() {
- backup=('etc/grafana-agent.yaml')
-
- cd "agent-$pkgver"
-
- install -Dm755 agent "$pkgdir/usr/bin/grafana-agent"
- install -Dm644 packaging/grafana-agent.yaml "$pkgdir/etc/grafana-agent.yaml"
-
- install -Dm644 "$srcdir/grafana-agent.sysusers" "$pkgdir/usr/lib/sysusers.d/grafana-agent.conf"
- install -Dm644 "$srcdir/grafana-agent.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/grafana-agent.conf"
- install -Dm644 "$srcdir/grafana-agent.service" "$pkgdir/usr/lib/systemd/system/grafana-agent.service"
-}
-
-package_grafana-agentctl() {
- pkgdesc="provides utilities for interacting with Grafana Agent"
-
- cd "agent-$pkgver"
-
- install -Dm755 -t "$pkgdir"/usr/bin agentctl
-}
-
-package_grafana-agent-crow() {
- pkgdesc="A correctness checker tool that validates that scraped metrics are delivered to a remote_write endpoint."
-
- cd "agent-$pkgver"
-
- install -Dm755 crow "$pkgdir"/usr/bin/grafana-agent-crow
-}
Copied: grafana-agent/repos/community-x86_64/PKGBUILD (from rev 1192487, grafana-agent/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-05-04 05:37:19 UTC (rev 1192488)
@@ -0,0 +1,88 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+
+pkgname=('grafana-agent' 'grafana-agentctl' 'grafana-agent-crow')
+pkgver=0.24.2
+pkgrel=1
+pkgdesc='Grafana Agent is a telemetry collector for sending metrics, logs, and trace data to the opinionated Grafana observability stack'
+url='https://github.com/grafana/agent'
+arch=('x86_64')
+license=('Apache')
+depends=('glibc')
+makedepends=('go')
+options=('!lto')
+source=($pkgname-$pkgver.tar.gz::https://github.com/grafana/agent/archive/v$pkgver.tar.gz
+ "https://github.com/grafana/agent/commit/9e373f7b128c5045618371837dcdb0fc86dcbe76.patch"
+ grafana-agent.sysusers grafana-agent.service grafana-agent.tmpfiles)
+sha512sums=('356d63117a166ed497b3e1c6da0f4065122254c23cc7af5e1862cc089bf84e2284abc89fb0d0d07becc68641a21b392ba9f6af9a07a24abf1c4cf4a938b9e2a0'
+ '237048bb6c02b2ce35fc7f4f70e2095da1fbd1e2fbbe7251f3c3d38dd79332320dd47b1a05564cd6ccea547fd23f4733b33e01cae0f58a46292336c25c92dee3'
+ '1e58f6273562fd6ddeae41bb6d223230ed301199af6bd2f85fa3d2c1e6352952c600cd4488ad769069519c42b6863be84aaa2c93c88f696e5a0bedbb93758d0e'
+ '3f8debbc4732009f54c063d70c2dce4846b81b829f495d25a431fef857077c83949d777f763de8c106fb8d1cf0bd7e874680db8387b4811704b1a303932fa090'
+ '3a4c4896b2454272b5a2d53ba5aa7009fa5b42a573fef521afb5d9712e53119539c4195d2b149d04d086c5fa197ccf7dc9bbdc407efb55514e3c92b994121fa8')
+
+prepare() {
+ cd "agent-$pkgver"
+
+ patch -p1 -i ../9e373f7b128c5045618371837dcdb0fc86dcbe76.patch
+
+ go mod download
+}
+
+build() {
+ cd "agent-$pkgver"
+
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOPROXY=off
+ for path in cmd/agent cmd/agentctl tools/crow; do
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags " \
+ -X github.com/grafana/agent/pkg/build.Version=$pkgver
+ -X github.com/grafana/agent/pkg/build.BuildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ' --date=@${SOURCE_DATE_EPOCH})
+ -linkmode external
+ -extldflags \"${LDFLAGS}\"" \
+ "./$path"
+ done
+}
+
+check() {
+ cd "agent-$pkgver"
+
+ ./agent -version
+
+ go test -v ./cmd/agent/... ./cmd/agentctl/... ./tools/crow/...
+}
+
+package_grafana-agent() {
+ backup=('etc/grafana-agent.yaml')
+
+ cd "agent-$pkgver"
+
+ install -Dm755 agent "$pkgdir/usr/bin/grafana-agent"
+ install -Dm644 packaging/grafana-agent.yaml "$pkgdir/etc/grafana-agent.yaml"
+
+ install -Dm644 "$srcdir/grafana-agent.sysusers" "$pkgdir/usr/lib/sysusers.d/grafana-agent.conf"
+ install -Dm644 "$srcdir/grafana-agent.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/grafana-agent.conf"
+ install -Dm644 "$srcdir/grafana-agent.service" "$pkgdir/usr/lib/systemd/system/grafana-agent.service"
+}
+
+package_grafana-agentctl() {
+ pkgdesc="provides utilities for interacting with Grafana Agent"
+
+ cd "agent-$pkgver"
+
+ install -Dm755 -t "$pkgdir"/usr/bin agentctl
+}
+
+package_grafana-agent-crow() {
+ pkgdesc="A correctness checker tool that validates that scraped metrics are delivered to a remote_write endpoint."
+
+ cd "agent-$pkgver"
+
+ install -Dm755 crow "$pkgdir"/usr/bin/grafana-agent-crow
+}
Deleted: grafana-agent.service
===================================================================
--- grafana-agent.service 2022-05-04 05:36:50 UTC (rev 1192487)
+++ grafana-agent.service 2022-05-04 05:37:19 UTC (rev 1192488)
@@ -1,31 +0,0 @@
-[Unit]
-Description=Grafana Agent monitoring system and forwarder
-Documentation=https://grafana.com/docs/agent/
-Wants=network-online.target
-After=network-online.target
-
-[Service]
-Restart=always
-Environment=HOSTNAME=%H
-ExecStart=/usr/bin/grafana-agent --config.file /etc/grafana-agent.yaml
-User=grafana-agent
-# If running the Agent in scraping service mode, you will want to override this value with
-# something larger to allow the Agent to gracefully leave the cluster. 4800s is recommend.
-TimeoutStopSec=20s
-SendSIGKILL=no
-
-NoNewPrivileges=true
-MemoryDenyWriteExecute=true
-RestrictRealtime=true
-
-ProtectHome=true
-ProtectSystem=strict
-ReadWritePaths=/var/lib/grafana-agent
-PrivateTmp=true
-
-ProtectKernelTunables=true
-ProtectKernelModules=true
-ProtectControlGroups=true
-
-[Install]
-WantedBy=multi-user.target
Copied: grafana-agent/repos/community-x86_64/grafana-agent.service (from rev 1192487, grafana-agent/trunk/grafana-agent.service)
===================================================================
--- grafana-agent.service (rev 0)
+++ grafana-agent.service 2022-05-04 05:37:19 UTC (rev 1192488)
@@ -0,0 +1,31 @@
+[Unit]
+Description=Grafana Agent monitoring system and forwarder
+Documentation=https://grafana.com/docs/agent/
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Restart=always
+Environment=HOSTNAME=%H
+ExecStart=/usr/bin/grafana-agent --config.file /etc/grafana-agent.yaml
+User=grafana-agent
+# If running the Agent in scraping service mode, you will want to override this value with
+# something larger to allow the Agent to gracefully leave the cluster. 4800s is recommend.
+TimeoutStopSec=20s
+SendSIGKILL=no
+
+NoNewPrivileges=true
+MemoryDenyWriteExecute=true
+RestrictRealtime=true
+
+ProtectHome=true
+ProtectSystem=strict
+ReadWritePaths=/var/lib/grafana-agent
+PrivateTmp=true
+
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectControlGroups=true
+
+[Install]
+WantedBy=multi-user.target
Deleted: grafana-agent.sysusers
===================================================================
--- grafana-agent.sysusers 2022-05-04 05:36:50 UTC (rev 1192487)
+++ grafana-agent.sysusers 2022-05-04 05:37:19 UTC (rev 1192488)
@@ -1,2 +0,0 @@
-u grafana-agent - "grafana-agent user" /var/lib/grafana-agent
-m grafana-agent systemd-journal
Copied: grafana-agent/repos/community-x86_64/grafana-agent.sysusers (from rev 1192487, grafana-agent/trunk/grafana-agent.sysusers)
===================================================================
--- grafana-agent.sysusers (rev 0)
+++ grafana-agent.sysusers 2022-05-04 05:37:19 UTC (rev 1192488)
@@ -0,0 +1,2 @@
+u grafana-agent - "grafana-agent user" /var/lib/grafana-agent
+m grafana-agent systemd-journal
Deleted: grafana-agent.tmpfiles
===================================================================
--- grafana-agent.tmpfiles 2022-05-04 05:36:50 UTC (rev 1192487)
+++ grafana-agent.tmpfiles 2022-05-04 05:37:19 UTC (rev 1192488)
@@ -1 +0,0 @@
-d /var/lib/grafana-agent 0750 grafana-agent grafana-agent -
Copied: grafana-agent/repos/community-x86_64/grafana-agent.tmpfiles (from rev 1192487, grafana-agent/trunk/grafana-agent.tmpfiles)
===================================================================
--- grafana-agent.tmpfiles (rev 0)
+++ grafana-agent.tmpfiles 2022-05-04 05:37:19 UTC (rev 1192488)
@@ -0,0 +1 @@
+d /var/lib/grafana-agent 0750 grafana-agent grafana-agent -
More information about the arch-commits
mailing list