[arch-commits] Commit in nginx-prometheus-exporter/repos (4 files)
Giancarlo Razzolini
grazzolini at gemini.archlinux.org
Sun Nov 28 12:35:06 UTC 2021
Date: Sunday, November 28, 2021 @ 12:35:06
Author: grazzolini
Revision: 429415
archrelease: copy trunk to testing-x86_64
Added:
nginx-prometheus-exporter/repos/testing-x86_64/
nginx-prometheus-exporter/repos/testing-x86_64/PKGBUILD
(from rev 429414, nginx-prometheus-exporter/trunk/PKGBUILD)
nginx-prometheus-exporter/repos/testing-x86_64/nginx-prometheus-exporter.conf
(from rev 429414, nginx-prometheus-exporter/trunk/nginx-prometheus-exporter.conf)
nginx-prometheus-exporter/repos/testing-x86_64/nginx-prometheus-exporter.service
(from rev 429414, nginx-prometheus-exporter/trunk/nginx-prometheus-exporter.service)
-----------------------------------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++
nginx-prometheus-exporter.conf | 1
nginx-prometheus-exporter.service | 27 +++++++++++++++++++++++
3 files changed, 70 insertions(+)
Copied: nginx-prometheus-exporter/repos/testing-x86_64/PKGBUILD (from rev 429414, nginx-prometheus-exporter/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2021-11-28 12:35:06 UTC (rev 429415)
@@ -0,0 +1,42 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=nginx-prometheus-exporter
+pkgdesc='NGINX Prometheus Exporter for NGINX and NGINX Plus'
+pkgver=0.9.0
+pkgrel=2
+arch=(x86_64)
+license=('Apache')
+url="https://github.com/nginxinc/nginx-prometheus-exporter"
+depends=(glibc)
+makedepends=(go)
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/nginxinc/nginx-prometheus-exporter/archive/v${pkgver}.tar.gz
+ nginx-prometheus-exporter.service
+ nginx-prometheus-exporter.conf)
+sha512sums=('875548c4a70e3f4ffb0231c90f495fd35d8e72ef80ef0bf31903a4b2db1c863eb724bbe6279ff34507b5d6276dbae25516f18e2cbb8adfbd43086c0208ec0dcc'
+ 'd29541b1afe15bfe90ac9d54f0771ade4c8cd9d4291d0a9b1e9ffb4f38f1ae3739bef79a0120ca7c79ea5b580d224b09e9ca7645c92d8c4bc991532759249bb5'
+ '843d6903c8da8356cef0c53722c176f5ed12d140a2888f3f3cf5dedaf6437fdc3c0a527ba6635bd949b28a64af98221aeb5caa13edb12b05a712c6e2aadddf77')
+
+build() {
+ cd "$pkgname-$pkgver"
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags \"${LDFLAGS}\" -X main.version=${pkgver} -X main.gitCommit=${pkgver}" \
+ .
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ go test ./...
+}
+
+package() {
+ install -Dm644 nginx-prometheus-exporter.service "$pkgdir"/usr/lib/systemd/system/nginx-prometheus-exporter.service
+ install -Dm644 nginx-prometheus-exporter.conf "${pkgdir}"/etc/conf.d/nginx-prometheus-exporter
+
+ cd "$pkgname-$pkgver"
+ install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
+
+}
Copied: nginx-prometheus-exporter/repos/testing-x86_64/nginx-prometheus-exporter.conf (from rev 429414, nginx-prometheus-exporter/trunk/nginx-prometheus-exporter.conf)
===================================================================
--- testing-x86_64/nginx-prometheus-exporter.conf (rev 0)
+++ testing-x86_64/nginx-prometheus-exporter.conf 2021-11-28 12:35:06 UTC (rev 429415)
@@ -0,0 +1 @@
+NGINX_EXPORTER_ARGS=""
Copied: nginx-prometheus-exporter/repos/testing-x86_64/nginx-prometheus-exporter.service (from rev 429414, nginx-prometheus-exporter/trunk/nginx-prometheus-exporter.service)
===================================================================
--- testing-x86_64/nginx-prometheus-exporter.service (rev 0)
+++ testing-x86_64/nginx-prometheus-exporter.service 2021-11-28 12:35:06 UTC (rev 429415)
@@ -0,0 +1,27 @@
+[Unit]
+Description=Prometheus Nginx Exporter
+After=network.target nginx.service
+
+[Service]
+EnvironmentFile=-/etc/conf.d/nginx-prometheus-exporter
+ExecStart=/usr/bin/nginx-prometheus-exporter $NGINX_EXPORTER_ARGS
+ExecReload=/bin/kill -HUP $MAINPID
+DynamicUser=true
+
+NoNewPrivileges=true
+ProtectSystem=full
+ProtectKernelModules=true
+ProtectKernelTunables=true
+PrivateTmp=true
+LockPersonality=true
+ProtectHostname=true
+ProtectHome=true
+ProtectControlGroups=true
+PrivateDevices=true
+PrivateUsers=true
+RestrictRealtime=true
+CapabilityBoundingSet=
+MemoryDenyWriteExecute=true
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list