49 lines
1020 B
YAML
49 lines
1020 B
YAML
---
|
|
# nfpm.yaml
|
|
|
|
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:
|
|
- stalwart
|
|
|
|
provides:
|
|
- stalwart
|
|
|
|
conflicts:
|
|
- stalwart-foundationdb
|
|
|
|
# Files to include in the package
|
|
contents:
|
|
- src: /app/stalwart
|
|
dst: /opt/stalwart/bin/stalwart
|
|
file_info:
|
|
mode: 0755
|
|
owner: stalwart
|
|
group: stalwart
|
|
- src: /app/resources/stalwart.service
|
|
dst: /usr/lib/systemd/system/stalwart.service
|
|
file_info:
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
|
|
# Scripts to run during installation/removal
|
|
scripts:
|
|
preinstall: /app/resources/scripts/preinstall.sh
|
|
postinstall: /app/resources/scripts/postinstall.sh
|
|
preremove: /app/resources/scripts/preremove.sh
|
|
postremove: /app/resources/scripts/postremove.sh
|