- Migrate from legacy shell-based build system to modern Python tooling - Update all metadata.yaml files to new schema with per-distro builds - Standardise build scripts with curl -L, envsubst, and error handling - Convert nfpm.yaml templates to use environment variable substitution - Update Dockerfile to accept all package metadata as build arguments - Modernise Makefile to use new Python build tool commands - Update CI workflow to use tools/build instead of make
99 lines
2.2 KiB
YAML
99 lines
2.2 KiB
YAML
# nfpm_incus.yaml
|
|
|
|
name: incus
|
|
version: ${PACKAGE_VERSION}
|
|
release: ${PACKAGE_RELEASE}
|
|
arch: amd64
|
|
platform: linux
|
|
section: default
|
|
priority: extra
|
|
description: "Powerful system container and virtual machine manager."
|
|
|
|
maintainer: Incus
|
|
homepage: https://github.com/lxc/incus
|
|
license: Apache-2.0
|
|
|
|
disable_globbing: false
|
|
|
|
replaces:
|
|
- incus
|
|
|
|
depends:
|
|
- incus-client
|
|
- lxcfs
|
|
- cowsql
|
|
- raft
|
|
|
|
recommends:
|
|
- incus-tools
|
|
|
|
# Files to include in the package
|
|
contents:
|
|
- src: /root/go/bin/incusd
|
|
dst: /usr/libexec/incus/incusd
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
- src: /root/go/bin/incus-user
|
|
dst: /usr/libexec/incus/incus-user
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
- src: /app/resources/shutdown
|
|
dst: /usr/libexec/incus/shutdown
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
- src: /app/resources/incus.service
|
|
dst: /usr/lib/systemd/system/incus.service
|
|
file_info:
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
- src: /app/resources/incus.socket
|
|
dst: /usr/lib/systemd/system/incus.socket
|
|
file_info:
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
- src: /app/resources/incus-user.service
|
|
dst: /usr/lib/systemd/system/incus-user.service
|
|
file_info:
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
- src: /app/resources/incus-user.socket
|
|
dst: /usr/lib/systemd/system/incus-user.socket
|
|
file_info:
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
- src: /app/resources/incus-startup.service
|
|
dst: /usr/lib/systemd/system/incus-startup.service
|
|
file_info:
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
- src: /app/resources/sysusers.d.incus.conf
|
|
dst: /usr/lib/sysusers.d/incus.conf
|
|
file_info:
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
- src: /app/resources/tmpfiles.d.incus.conf
|
|
dst: /usr/lib/tmpfiles.d/incus.conf
|
|
file_info:
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
|
|
# Scripts to run during installation/removal (optional)
|
|
scripts:
|
|
postinstall: ./resources/scripts/postinstall.sh
|
|
preremove: ./resources/scripts/preremove.sh
|
|
postremove: ./resources/scripts/postremove.sh
|
|
preinstall: ./resources/scripts/preinstall.sh
|