-
Notifications
You must be signed in to change notification settings - Fork 19
/
.goreleaser-deb.yml
67 lines (62 loc) · 1.81 KB
/
.goreleaser-deb.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
archives:
-
name_template: "{{ .ProjectName }}_{{ .Version }}_debian_{{ .Arch }}"
builds:
# You can have multiple builds defined as a yaml list.
-
id: "debian"
goos:
- linux
# GOARCH to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Defaults are 386, amd64 and arm64.
goarch:
- amd64
ldflags:
- -X github.com/alphasoc/nfr/version.Version={{ .Version }}
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums_debian.txt"
nfpms:
# note that this is an array of nfpm configs
-
# Replacements for GOOS and GOARCH in the package name.
# Keys should be valid GOOSs or GOARCHs.
# Values are the respective replacements.
# Default is empty.
replacements:
amd64: 64-bit
darwin: macOS
vendor: alphasoc
homepage: https://alphasoc.com/
maintainer: AlphaSOC <[email protected]>
description: A lightweight application that processes and analyzes network traffic
using the AlphaSOC Analytics Engine.
license: CCPL
# Formats to be generated.
formats:
- deb
dependencies:
- libpcap0.8
contents:
- src: ./config.yml
dst: /etc/nfr/config.yml
type: config
- src: ./scope.yml
dst: /etc/nfr/scope.yml
type: config
- src: ./nfr.service
dst: /etc/systemd/system/nfr.service
type: config
scripts:
postinstall: "scripts/postinst"
preremove: "scripts/prerm"
postremove: "scripts/postrm"
file_name_template: "{{ .PackageName }}_{{ .Version }}_debian_{{ .Arch }}"
# Override default /usr/local/bin destination for binaries.
bindir: /usr/bin
release:
# Disable the actual release. Done elsewhere.
disable: true
# Sign all artifacts.
signs:
- artifacts: all