-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
76 lines (68 loc) · 1.65 KB
/
.goreleaser.yml
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
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- main: ./cmd/pingtrace/
id: pingtrace
env:
- CGO_ENABLED=0
goos:
- linux
- freebsd
- darwin
archives:
- replacements:
#darwin: Darwin
#linux: Linux
#windows: Windows
#386: i386
#amd64: x86_64
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
- id: pingtrace
# Name of the package.
# Defaults to `ProjectName`.
package_name: pingtrace
# You can change the file name of the package.
# Default: `{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}`
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
vendor: NTP Pool Project
homepage: https://www.ntppool.org/
maintainer: Ask Bjørn Hansen <[email protected]>
description: Pingtrace diagnostics daemon
license: MIT
formats:
- deb
- rpm
- apk
replacements:
386: i686
amd64: x86_64
dependencies:
- ntp
- traceroute
bindir: /usr/bin
overrides:
deb:
dependencies:
- "ntp | chrony"
contents:
- src: "scripts/pingtrace.service"
dst: "/etc/systemd/system/pingtrace.service"
- src: "scripts/defaults"
dst: "/etc/default/pingtrace"
type: config
scripts:
postinstall: scripts/postinstall.sh