Files
tomswall/packaging/nfpm.yaml
T
unkin-agent dc406c4f56
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Add boot unit applying a local config
2026-10-05 13:41:57 +11:00

70 lines
1.7 KiB
YAML

---
# nfpm config for building the tomswall RPM.
# Rendered through envsubst (see scripts/build-rpm.sh) then fed to `nfpm pkg`.
name: ${PACKAGE_NAME}
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: ${PACKAGE_ARCH}
platform: ${PACKAGE_PLATFORM}
section: default
priority: extra
description: "${PACKAGE_DESCRIPTION}"
maintainer: ${PACKAGE_MAINTAINER}
homepage: ${PACKAGE_HOMEPAGE}
license: ${PACKAGE_LICENSE}
disable_globbing: false
replaces:
- tomswall
provides:
- tomswall
contents:
- src: dist/tomswall
dst: /usr/sbin/tomswall
file_info:
mode: 0755
owner: root
group: root
# Example configuration (never overwrites an existing tomswall.yaml).
- src: tomswall.example.yaml
dst: /etc/tomswall/tomswall.example.yaml
file_info:
mode: 0644
# systemd unit + environment file for the control-plane agent.
- src: packaging/tomswall-agent.service
dst: /usr/lib/systemd/system/tomswall-agent.service
file_info:
mode: 0644
- src: packaging/tomswall-agent.env
dst: /etc/tomswall/agent.env
type: config|noreplace
file_info:
mode: 0640
# systemd unit + environment file for applying a local config at boot.
- src: packaging/tomswall.service
dst: /usr/lib/systemd/system/tomswall.service
file_info:
mode: 0644
- src: packaging/tomswall.env
dst: /etc/tomswall/tomswall.env
type: config|noreplace
file_info:
mode: 0644
# Shell completions (generated by scripts/build-rpm.sh before packaging).
- src: dist/completions/tomswall.bash
dst: /usr/share/bash-completion/completions/tomswall
file_info:
mode: 0644
- src: dist/completions/_tomswall
dst: /usr/share/zsh/site-functions/_tomswall
file_info:
mode: 0644