rpmbuilder/rpms/etcd/nfpm.yaml
Ben Vincent c7b8fb9fb5
All checks were successful
Build / build-9 (pull_request) Successful in 1m18s
Build / build-8 (pull_request) Successful in 1m33s
feat: add etcd build
- create rpm for etcd, etcdctl and etcdutl
- manage systemd service for etcd
2025-01-26 14:50:12 +11:00

61 lines
1.2 KiB
YAML

# nfpm.yaml
name: etcd
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: amd64
platform: linux
section: default
priority: extra
description: "A distributed, reliable key-value store for the most critical data of a distributed system."
maintainer: https://etcd.io/
homepage: https://etcd.io/
license: Apache-2.0
disable_globbing: false
replaces:
- etcd
- etcdctl
- etcdutl
provides:
- etcd
- etcdctl
- etcdutl
# Files to include in the package
contents:
- src: /app/etcd
dst: /usr/bin/etcd
file_info:
mode: 0755
owner: root
group: root
- src: /app/etcdctl
dst: /usr/bin/etcdctl
file_info:
mode: 0755
owner: root
group: root
- src: /app/etcdutl
dst: /usr/bin/etcdutl
file_info:
mode: 0755
owner: root
group: root
- src: /app/resources/etcd.service
dst: /usr/lib/systemd/system/etcd.service
file_info:
mode: 0644
owner: root
group: root
# Scripts to run during installation/removal (optional)
scripts:
preinstall: ./resources/scripts/preinstall.sh
postinstall: ./resources/scripts/postinstall.sh
preremove: ./resources/scripts/preremove.sh
postremove: ./resources/scripts/postremove.sh