-
Notifications
You must be signed in to change notification settings - Fork 123
/
nfpm.yaml
47 lines (44 loc) · 1.25 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
---
name: ${NAME}
description: ${DESCRIPTION}
# Common packages config
arch: "${ARCH}" # 386, amd64, arm64
platform: "linux"
version: "${VERSION_STRING}"
maintainer: &m "Roman Lomonosov <[email protected]>"
vendor: *m
homepage: "https://github.com/go-graphite/${NAME}"
license: "MIT"
section: "admin"
priority: "optional"
scripts:
preinstall: deploy/before_install.sh
postinstall: deploy/after_install.sh
contents:
- src: out/root/etc/init.d/${NAME}
dst: /etc/init.d/${NAME}
type: config|noreplace
expand: true
- src: out/root/lib/systemd/system/${NAME}.service
dst: /lib/systemd/system/${NAME}.service
type: config|noreplace
expand: true
- src: out/root/etc/logrotate.d/${NAME}
dst: /etc/logrotate.d/${NAME}
type: config|noreplace
expand: true
- src: out/root/etc/${NAME}/storage-schemas.conf
dst: /etc/${NAME}/storage-schemas.conf
type: config|noreplace
expand: true
- src: out/root/etc/${NAME}/storage-aggregation.conf
dst: /etc/${NAME}/storage-aggregation.conf
type: config|noreplace
expand: true
- src: out/root/etc/${NAME}/${NAME}.conf
dst: /etc/${NAME}/${NAME}.conf
type: config|noreplace
expand: true
- src: "out/${NAME}-linux-${ARCH}"
dst: /usr/bin/${NAME}
expand: true