-
Notifications
You must be signed in to change notification settings - Fork 109
/
nfpm.yaml
61 lines (60 loc) · 1.66 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
# nfpm example config file
#
# check https://nfpm.goreleaser.com/configuration/ for detailed usage
#
name: "ckman"
arch: ${GOARCH}
platform: "linux"
version: ${VERSION}
section: "default"
priority: "extra"
provides:
- ckman
- ckmanctl
maintainer: "Zhichang Yu <[email protected]>"
description: |
ckman is a tool which used to manage and monitor ClickHouse database
vendor: "EOI"
license: "MIT"
contents:
- src: ./ckman
dst: /usr/local/bin/ckman
- src: ./cmd/ckmanctl/ckmanctl
dst: /usr/local/bin/ckmanctl
- src: ./resources/yaml2json
dst: /usr/local/bin/yaml2json
- src: ./README.md
dst: /etc/ckman/package/README.md
- src: ./resources/ckman.hjson
dst: /etc/ckman/conf/ckman.hjson
type: config|noreplace
- src: ./resources/migrate.hjson
dst: /etc/ckman/conf/migrate.hjson
type: config|noreplace
- src: ./resources/password
dst: /etc/ckman/conf/password
type: config|noreplace
- src: ./resources/server.key
dst: /etc/ckman/conf/server.key
type: config|noreplace
- src: ./resources/server.crt
dst: /etc/ckman/conf/server.crt
type: config|noreplace
- src: ./resources/postgres.sql
dst: /etc/ckman/dbscript/postgres.sql
type: config
- src: ./resources/ckman.service
dst: /etc/systemd/system/ckman.service
type: config
- src: /usr/local/bin/ckman
dst: /sbin/ckman
type: symlink
- src: /usr/local/bin/ckmanctl
dst: /sbin/ckmanctl
type: symlink
- src: /etc/systemd/system/ckman.service
dst: /etc/systemd/system/multi-user.target.wants/ckman.service
type: symlink
scripts:
preinstall: ./resources/scripts/preinstall.sh
postinstall: ./resources/scripts/postinstall.sh