Files
DDI/deploy/nfpm/package.yaml.in
T
sir_melonchenandClaude Opus 5.5 927e8f62b7 feat(release): build .deb and .rpm packages with nfpm
make packages (or make release PACKAGES=1) packages the binaries from the
release tarballs with the unit rendered for /usr/bin and the license
text, and rewrites SHA256SUMS over tarballs and packages. nfpm 2.48.0 is
installed pinned with checksum by scripts/ci/install-tools.sh, which can
now install single tools. Make targets lint-brand and sign-release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 00:41:12 +02:00

40 lines
1.1 KiB
Plaintext

# SPDX-License-Identifier: Apache-2.0
#
# Template of the nfpm configuration of the .deb and .rpm packages (ADR 0024),
# shared by all binaries. scripts/build-packages.sh replaces the placeholders
# (at-sign NAME at-sign) per binary and architecture (ADR 0018: no product
# names in this file). The
# packages contain only the binary, its systemd unit and the license text;
# configuration, users and services are set up by the installer.
name: "@PKG_NAME@"
arch: "@PKG_ARCH@"
platform: linux
version: "@PKG_VERSION@"
version_schema: semver
release: "1"
section: net
priority: optional
maintainer: "@PKG_MAINTAINER@"
vendor: "@PKG_VENDOR@"
homepage: "@PKG_HOMEPAGE@"
license: "@PKG_LICENSE@"
description: "@PKG_DESCRIPTION@"
contents:
- src: "@PKG_SRC_DIR@/binary"
dst: "/usr/bin/@PKG_NAME@"
file_info:
mode: 0755
- src: "@PKG_SRC_DIR@/unit.service"
dst: "/usr/lib/systemd/system/@PKG_NAME@.service"
file_info:
mode: 0644
- src: "@PKG_SRC_DIR@/LICENSE"
dst: "/usr/share/doc/@PKG_NAME@/LICENSE"
file_info:
mode: 0644
scripts:
postinstall: "@PKG_SCRIPTS_DIR@/postinstall.sh"
postremove: "@PKG_SCRIPTS_DIR@/postremove.sh"