forked from elastic/beats
/
packages.yml
99 lines (92 loc) · 2.54 KB
/
packages.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
# This file contains the package specifications for Functionbeat.
shared:
- &common
name: '{{.BeatName}}'
service_name: '{{.BeatServiceName}}'
os: '{{.GOOS}}'
arch: '{{.PackageArch}}'
vendor: '{{.BeatVendor}}'
version: '{{ beat_version }}'
license: '{{.BeatLicense}}'
url: '{{.BeatURL}}'
description: '{{.BeatDescription}}'
- &binary_files
'{{.BeatName}}{{.BinaryExt}}':
source: build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}
mode: 0755
fields.yml:
source: fields.yml
mode: 0644
LICENSE.txt:
source: '{{ repo.RootDir }}/LICENSE.txt'
mode: 0644
NOTICE.txt:
source: '{{ repo.RootDir }}/NOTICE.txt'
mode: 0644
README.md:
template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/common/README.md.tmpl'
mode: 0644
.build_hash.txt:
content: >
{{ commit }}
mode: 0644
'{{.BeatName}}.reference.yml':
source: '{{.BeatName}}.reference.yml'
mode: 0644
'{{.BeatName}}.yml':
source: '{{.BeatName}}.yml'
mode: 0600
config: true
# Binary package spec (tar.gz for linux/darwin)
- &binary_spec
<<: *common
files:
<<: *binary_files
#
# License modifiers for the Elastic License
#
- &elastic_license_for_binaries
license: "Elastic License"
files:
LICENSE.txt:
source: '{{ repo.RootDir }}/licenses/ELASTIC-LICENSE.txt'
mode: 0644
#
# Binaries used to run functions.
#
- &functionbeat_binaries
files:
pkg/functionbeat-aws:
source: 'provider/aws/build/golang-crossbuild/{{.BeatName}}-aws-linux-amd64'
mode: 0755
# specs is a list of named packaging "flavors".
specs:
functionbeat:
###
# Elastic Licensed Packages
###
- os: windows
types: [zip]
spec:
<<: *binary_spec
<<: *functionbeat_binaries
<<: *elastic_license_for_binaries
files:
'{{.BeatName}}{{.BinaryExt}}':
source: build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}
- os: darwin
types: [tgz]
spec:
<<: *binary_spec
<<: *functionbeat_binaries
<<: *elastic_license_for_binaries
- os: linux
types: [tgz]
spec:
<<: *binary_spec
<<: *functionbeat_binaries
<<: *elastic_license_for_binaries
files:
'{{.BeatName}}{{.BinaryExt}}':
source: build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}