feat: split vmagent out of vmutils

- move vmagent to be its own package
This commit is contained in:
2025-07-13 16:48:22 +10:00
parent cd47d9730b
commit 76c331e530
5 changed files with 63 additions and 7 deletions
+2
View File
@@ -0,0 +1,2 @@
#!/usr/bin/bash
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
+37
View File
@@ -0,0 +1,37 @@
# nfpm.yaml
name: vmagent
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: amd64
platform: linux
section: default
priority: extra
description: "vmagent collects metrics data via popular data ingestion protocols and routes it to VictoriaMetrics."
maintainer: VictoriaMetrics
homepage: https://github.com/VictoriaMetrics/VictoriaMetrics
license: Apache-2.0 license
disable_globbing: false
replaces:
- vmagent
provides:
- vmagent
# Files to include in the package
contents:
- src: /app/vmagent-prod
dst: /usr/bin/vmagent
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