-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathnfpm.yaml
More file actions
88 lines (81 loc) · 2 KB
/
Copy pathnfpm.yaml
File metadata and controls
88 lines (81 loc) · 2 KB
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
86
87
88
# yaml-language-server: $schema=https://nfpm.goreleaser.com/static/schema.json
---
# nfpm configuration file
#
# check https://nfpm.goreleaser.com/configuration for detailed usage
#
name: "tedge-modbus-plugin"
arch: "all"
platform: "linux"
version: ${VERSION}
section: "default"
priority: "extra"
maintainer: techforum.softwareag.com
description: "Modbus plugin for the thin-edge.io"
homepage: "https://github.com/thin-edge/modbus-plugin"
license: "Apache-2.0"
contents:
# Modbus reader files
- src: ./tedge_modbus/
dst: /usr/lib/python3/dist-packages/tedge_modbus
# operation handlers
- src: ./operations/*
dst: /etc/tedge/operations/c8y/
file_info:
mode: 0644
# Example Modbus config
- src: config/modbus.toml
dst: /etc/tedge/plugins/modbus/modbus.toml
type: config|noreplace
file_info:
owner: tedge
group: tedge
mode: 0644
# Example device config
- src: config/devices.toml
dst: /etc/tedge/plugins/modbus/devices.toml
type: config|noreplace
file_info:
owner: tedge
group: tedge
mode: 0644
# SystemD Unit File
- src: ./tedge-modbus-plugin.service
dst: /lib/systemd/system/tedge-modbus-plugin.service
file_info:
mode: 0644
owner: root
# Logfile folder
- dst: /var/log/tedge-modbus-plugin
type: dir
overrides:
deb:
depends:
- tedge (>= 1.2.0)
- python (>= 3.8.0) | python3 (>= 3.8.0)
- python3-paho-mqtt
- python3-pymodbus
- python3-watchdog
- python3-serial-asyncio
- python3-tomli
- python3-toml
- python3-requests
scripts:
postinstall: ./scripts/deb/postinst
preremove: ./scripts/deb/prerm
postremove: ./scripts/deb/postrm
rpm:
depends:
- tedge >= 1.2.0
- python3
- python3-paho-mqtt
- python3-pymodbus
- python3-watchdog
- python3-serial-asyncio
- python3-tomli
- python3-toml
- python3-requests
scripts:
postinstall: ./scripts/rpm/postinst
preremove: ./scripts/rpm/prerm
postremove: ./scripts/rpm/postrm