-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnfpm.tedge-command-plugin.yaml
68 lines (61 loc) · 1.43 KB
/
nfpm.tedge-command-plugin.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
# yaml-language-server: $schema=https://nfpm.goreleaser.com/static/schema.json
---
name: tedge-command-plugin
arch: all
platform: linux
version: ${SEMVER}
section: misc
priority: optional
maintainer: thin-edge.io <[email protected]>
description: thin-edge.io Shell/Command operation plugin
vendor: thin-edge.io
homepage: https://github.com/thin-edge/c8y-command-plugin
license: MIT
apk:
# Use noarch instead of "all"
arch: noarch
replaces:
- c8y-command-plugin
provides:
- c8y-command-plugin
overrides:
deb:
depends:
- jq
- tedge (>> 1.3.1)
rpm:
depends:
- jq
- tedge > 1.3.1
apk:
# alpine - assume tedge is already installed as containers just have the binary (no apk package)
depends:
- jq
scripts:
preinstall: ./src/packaging/preinst
contents:
- src: ./src/tedge-command-plugin/c8y_Command.template
dst: /etc/tedge/operations/c8y/c8y_Command.template
file_info:
mode: 0644
owner: tedge
group: tedge
- src: ./src/tedge-command-plugin/shell_execute.toml
dst: /etc/tedge/operations/
file_info:
mode: 0644
owner: tedge
group: tedge
- src: ./src/tedge-command-plugin/shell_execute.sh
dst: /usr/bin/shell_execute.sh
file_info:
mode: 0755
owner: tedge
group: tedge
- src: ./src/env
dst: /etc/tedge-command-plugin/env
type: config|noreplace
file_info:
mode: 0644
owner: tedge
group: tedge