-
Notifications
You must be signed in to change notification settings - Fork 1
/
nfpm.yaml
85 lines (77 loc) · 1.94 KB
/
nfpm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# yaml-language-server: $schema=https://nfpm.goreleaser.com/static/schema.json
---
name: tedge-monit-setup
arch: all
platform: linux
version: ${SEMVER}
section: misc
priority: optional
maintainer: Community <community@thin-edge.io>
description: thin-edge.io monit setup
vendor: thin-edge.io
homepage: https://github.com/thin-edge/tedge-monit-setup
license: Apache License 2.0
apk:
# Use noarch instead of "all"
arch: noarch
contents:
- src: ./src/conf.d/*.conf
dst: /usr/share/tedge-monit-setup/
type: config
file_info:
mode: 0644
group: tedge
owner: tedge
- src: /usr/share/tedge-monit-setup/tedge.conf
dst: /etc/monit/conf.d/tedge.conf
type: symlink
# Optional service definition which has compatible capability settings
# otherwise the reconnect command will fail
# See https://salsa.debian.org/debian/monit/-/blob/debian/main/debian/patches/040_hardening-monit.service.patch?ref_type=heads
- src: ./src/service/monit.service
dst: /usr/share/tedge-monit-setup/service/
file_info:
mode: 0644
group: root
owner: root
- src: ./src/tedge-monit-setup/env
dst: /etc/tedge-monit-setup/env
type: config|noreplace
file_info:
mode: 0644
group: root
owner: root
- src: ./src/bin/monit-tedge-message
dst: /usr/bin/
file_info:
mode: 0755
group: root
owner: root
- src: ./src/bin/monit-tedge-reconnect
dst: /usr/bin/
file_info:
mode: 0755
group: root
owner: root
overrides:
apk:
depends:
- tedge
- monit
scripts:
postinstall: src/packaging/postinstall
postremove: src/packaging/postremove
rpm:
depends:
- tedge
- monit
scripts:
postinstall: src/packaging/postinstall
postremove: src/packaging/postremove
deb:
depends:
- tedge
- monit
scripts:
postinstall: src/packaging/postinstall
postremove: src/packaging/postremove