Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / 
prometheus-fastly-exporter


Commits:
859a8fc4 by Robin Candau at 2025-12-04T18:55:28+01:00
upgpkg: 10.0.0-2: Add systemd unit and conf file

- - - - -


5 changed files:

- .SRCINFO
- PKGBUILD
- REUSE.toml
- + prometheus-fastly-exporter.conf
- + prometheus-fastly-exporter.service


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = prometheus-fastly-exporter
        pkgdesc = A Prometheus exporter for the Fastly Real-time Analytics API
        pkgver = 10.0.0
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/fastly/fastly-exporter
        arch = x86_64
        license = Apache-2.0
@@ -11,7 +11,11 @@ pkgbase = prometheus-fastly-exporter
        provides = fastly-exporter
        replaces = fastly-exporter
        source = 
git+https://github.com/fastly/fastly-exporter.git#tag=v10.0.0?signed
+       source = prometheus-fastly-exporter.service
+       source = prometheus-fastly-exporter.conf
        validpgpkeys = 579A3981735976C495E14BBD5502B4407A5DED4D
        sha256sums = 
e13ccd20630940401d651c4734b5291feb630e76782aa7afa29d8b49da77b771
+       sha256sums = 
5bc88b49e96e1778c9f4e01f4723fa25a1f1cf54f0757febaabeb4016d4cf773
+       sha256sums = 
42c9d577ada85a5bb35fea5879142523c19593814340ec6fb8ad079e568c4945
 
 pkgname = prometheus-fastly-exporter


=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 pkgname=prometheus-fastly-exporter
 _pkgname=fastly-exporter
 pkgver=10.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A Prometheus exporter for the Fastly Real-time Analytics API"
 url="https://github.com/fastly/fastly-exporter";
 arch=('x86_64')
@@ -12,8 +12,12 @@ depends=('glibc')
 makedepends=('git' 'go')
 provides=("${_pkgname}")
 replaces=("${_pkgname}")
-source=("git+${url}.git#tag=v${pkgver}?signed")
-sha256sums=('e13ccd20630940401d651c4734b5291feb630e76782aa7afa29d8b49da77b771')
+source=("git+${url}.git#tag=v${pkgver}?signed"
+        "${pkgname}.service"
+        "${pkgname}.conf")
+sha256sums=('e13ccd20630940401d651c4734b5291feb630e76782aa7afa29d8b49da77b771'
+            '5bc88b49e96e1778c9f4e01f4723fa25a1f1cf54f0757febaabeb4016d4cf773'
+            '42c9d577ada85a5bb35fea5879142523c19593814340ec6fb8ad079e568c4945')
 validpgpkeys=('579A3981735976C495E14BBD5502B4407A5DED4D') # Lukas Eklund 
<[email protected]>
 
 prepare(){
@@ -39,5 +43,7 @@ check() {
 package() {
        cd "${_pkgname}"
        install -Dm 755 "build/${_pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+       install -Dm 644 "${srcdir}/${pkgname}.service" 
"${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
+       install -Dm 644 "${srcdir}/${pkgname}.conf" 
"${pkgdir}/etc/conf.d/${pkgname}.conf"
        install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
 }


=====================================
REUSE.toml
=====================================
@@ -17,6 +17,8 @@ path = [
     "*.timer",
     "*.desktop",
     "*.hook",
+    "prometheus-fastly-exporter.service",
+    "prometheus-fastly-exporter.conf",
 ]
 SPDX-FileCopyrightText = "Arch Linux contributors"
 SPDX-License-Identifier = "0BSD"


=====================================
prometheus-fastly-exporter.conf
=====================================
@@ -0,0 +1 @@
+#FASTLY_API_TOKEN=


=====================================
prometheus-fastly-exporter.service
=====================================
@@ -0,0 +1,29 @@
+[Unit]
+Description=Prometheus fastly Exporter
+After=network.target
+
+[Service]
+EnvironmentFile=-/etc/conf.d/prometheus-fastly-exporter
+ExecStart=/usr/bin/prometheus-fastly-exporter
+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
+ProtectKernelLogs=true
+PrivateDevices=true
+RestrictRealtime=true
+CapabilityBoundingSet=
+MemoryDenyWriteExecute=true
+CapabilityBoundingSet=CAP_NET_RAW
+AmbientCapabilities=CAP_NET_RAW
+
+[Install]
+WantedBy=multi-user.target



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/prometheus-fastly-exporter/-/commit/859a8fc44e2376f1f5af6e6dd61b33b84de30216

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/prometheus-fastly-exporter/-/commit/859a8fc44e2376f1f5af6e6dd61b33b84de30216
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to