Date: Wednesday, March 1, 2023 @ 10:34:08 Author: daurnimator Revision: 1405871
archrelease: copy trunk to community-x86_64 Added: grafana-agent/repos/community-x86_64/PKGBUILD (from rev 1405869, grafana-agent/trunk/PKGBUILD) grafana-agent/repos/community-x86_64/grafana-agent.service (from rev 1405869, grafana-agent/trunk/grafana-agent.service) grafana-agent/repos/community-x86_64/grafana-agent.sysusers (from rev 1405869, grafana-agent/trunk/grafana-agent.sysusers) grafana-agent/repos/community-x86_64/grafana-agent.tmpfiles (from rev 1405870, 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 | 178 +++++++++++++++++++++++------------------------ grafana-agent.service | 62 ++++++++-------- grafana-agent.sysusers | 4 - grafana-agent.tmpfiles | 2 4 files changed, 123 insertions(+), 123 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-03-01 10:34:00 UTC (rev 1405870) +++ PKGBUILD 2023-03-01 10:34:08 UTC (rev 1405871) @@ -1,89 +0,0 @@ -# Maintainer: Daurnimator <daurnima...@archlinux.org> - -pkgname=('grafana-agent' 'grafana-agentctl' 'grafana-agent-crow') -pkgver=0.31.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' 'systemd') -options=('!lto') -source=($pkgname-$pkgver.tar.gz::https://github.com/grafana/agent/archive/v$pkgver.tar.gz - grafana-agent.sysusers grafana-agent.service grafana-agent.tmpfiles) -sha512sums=('54e83c5395d2eb72f7f554f093e3a166a57d0454d9c9e43dc2dd5f5082c558a5d1e504c80ea20d00078de99f94953b485481f840c190354a91452bcd2b4b0d4d' - '1e58f6273562fd6ddeae41bb6d223230ed301199af6bd2f85fa3d2c1e6352952c600cd4488ad769069519c42b6863be84aaa2c93c88f696e5a0bedbb93758d0e' - '3f8debbc4732009f54c063d70c2dce4846b81b829f495d25a431fef857077c83949d777f763de8c106fb8d1cf0bd7e874680db8387b4811704b1a303932fa090' - '3a4c4896b2454272b5a2d53ba5aa7009fa5b42a573fef521afb5d9712e53119539c4195d2b149d04d086c5fa197ccf7dc9bbdc407efb55514e3c92b994121fa8') - -prepare() { - cd "agent-$pkgver" - - export GOPATH="${srcdir}" - go mod download -} - -build() { - cd "agent-$pkgver" - - export CGO_LDFLAGS="${LDFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export GOPATH="${srcdir}" - export GOPROXY=off - for path in cmd/grafana-agent cmd/grafana-agentctl tools/crow; do - go build \ - -trimpath \ - -buildmode=pie \ - -mod=readonly \ - -modcacherw \ - -tags promtail_journal_enabled \ - -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}) - -compressdwarf=false - -linkmode external - -extldflags \"${LDFLAGS}\"" \ - "./$path" - done -} - -check() { - cd "agent-$pkgver" - - ./grafana-agent -version - ./grafana-agentctl --version - - go test -v ./pkg/{agentctl,config,crow,logs,metrics,server,traces}/ -} - -package_grafana-agent() { - backup=('etc/grafana-agent.yaml') - - cd "agent-$pkgver" - - install -Dm755 -t "$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 grafana-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 1405869, grafana-agent/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-03-01 10:34:08 UTC (rev 1405871) @@ -0,0 +1,89 @@ +# Maintainer: Daurnimator <daurnima...@archlinux.org> + +pkgname=('grafana-agent' 'grafana-agentctl' 'grafana-agent-crow') +pkgver=0.32.0 +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' 'systemd') +options=('!lto') +source=($pkgname-$pkgver.tar.gz::https://github.com/grafana/agent/archive/v$pkgver.tar.gz + grafana-agent.sysusers grafana-agent.service grafana-agent.tmpfiles) +sha512sums=('f47f6e31ac7c092c80b78b74e387bf35a3fc4750271c18b48212d603daead51b11fad93b8e30f4d78da2624dd9653a77571954022afc02db76a9ba814c18a651' + '1e58f6273562fd6ddeae41bb6d223230ed301199af6bd2f85fa3d2c1e6352952c600cd4488ad769069519c42b6863be84aaa2c93c88f696e5a0bedbb93758d0e' + '3f8debbc4732009f54c063d70c2dce4846b81b829f495d25a431fef857077c83949d777f763de8c106fb8d1cf0bd7e874680db8387b4811704b1a303932fa090' + '3a4c4896b2454272b5a2d53ba5aa7009fa5b42a573fef521afb5d9712e53119539c4195d2b149d04d086c5fa197ccf7dc9bbdc407efb55514e3c92b994121fa8') + +prepare() { + cd "agent-$pkgver" + + export GOPATH="${srcdir}" + go mod download +} + +build() { + cd "agent-$pkgver" + + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOPATH="${srcdir}" + export GOPROXY=off + for path in cmd/grafana-agent cmd/grafana-agentctl tools/crow; do + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -tags promtail_journal_enabled \ + -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}) + -compressdwarf=false + -linkmode external + -extldflags \"${LDFLAGS}\"" \ + "./$path" + done +} + +check() { + cd "agent-$pkgver" + + ./grafana-agent -version + ./grafana-agentctl --version + + go test -v ./pkg/{agentctl,config,crow,logs,metrics,server,traces}/ +} + +package_grafana-agent() { + backup=('etc/grafana-agent.yaml') + + cd "agent-$pkgver" + + install -Dm755 -t "$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 grafana-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 2023-03-01 10:34:00 UTC (rev 1405870) +++ grafana-agent.service 2023-03-01 10:34:08 UTC (rev 1405871) @@ -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 1405869, grafana-agent/trunk/grafana-agent.service) =================================================================== --- grafana-agent.service (rev 0) +++ grafana-agent.service 2023-03-01 10:34:08 UTC (rev 1405871) @@ -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 2023-03-01 10:34:00 UTC (rev 1405870) +++ grafana-agent.sysusers 2023-03-01 10:34:08 UTC (rev 1405871) @@ -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 1405869, grafana-agent/trunk/grafana-agent.sysusers) =================================================================== --- grafana-agent.sysusers (rev 0) +++ grafana-agent.sysusers 2023-03-01 10:34:08 UTC (rev 1405871) @@ -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 2023-03-01 10:34:00 UTC (rev 1405870) +++ grafana-agent.tmpfiles 2023-03-01 10:34:08 UTC (rev 1405871) @@ -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 1405870, grafana-agent/trunk/grafana-agent.tmpfiles) =================================================================== --- grafana-agent.tmpfiles (rev 0) +++ grafana-agent.tmpfiles 2023-03-01 10:34:08 UTC (rev 1405871) @@ -0,0 +1 @@ +d /var/lib/grafana-agent 0750 grafana-agent grafana-agent -