rpmbuilder/rpms/node_exporter/resources/nfpm.yaml
Ben Vincent ab57a28b8f
All checks were successful
Build / build-9 (pull_request) Successful in 26s
Build / build-8 (pull_request) Successful in 3m41s
feat: add node_exporter
2025-06-22 19:08:12 +10:00

38 lines
783 B
YAML

# nfpm.yaml
name: node_exporter
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: amd64
platform: linux
section: default
priority: extra
description: "exporter for machine metrics"
maintainer: Prometheus
homepage: https://github.com/prometheus/node_exporter
license: Apache-2.0 license
disable_globbing: false
replaces:
- node_exporter
provides:
- node_exporter
# Files to include in the package
contents:
- src: /app/node_exporter
dst: /usr/bin/node_exporter
file_info:
mode: 0755
owner: root
group: root
# Scripts to run during installation/removal (optional)
# scripts:
# preinstall: ./scripts/preinstall.sh
# postinstall: ./scripts/postinstall.sh
# preremove: ./scripts/preremove.sh
# postremove: ./scripts/postremove.sh