Diff filebeat-5.6.13 with a filebeat-6.3.2

/usr/portage/app-admin/filebeat/filebeat-6.3.2.ebuild 2019-03-05 18:09:00.000000000 +0300
9 9

  
10 10
LICENSE="Apache-2.0"
11 11
SLOT="0"
12
KEYWORDS="~amd64 ~x86"
12
KEYWORDS="amd64 ~x86"
13 13
RESTRICT="test"
14 14

  
15
DEPEND=">=dev-lang/go-1.9.2"
15
DEPEND=">=dev-lang/go-1.10.3"
16 16
RDEPEND="!app-admin/filebeat-bin"
17 17

  
18 18
# Do not complain about CFLAGS etc since go projects do not use them.
......
26 26
	mv beats-${PV} "${S}" || die
27 27
}
28 28

  
29
src_prepare() {
30
	default
31

  
32
	# avoid Elastic license
33
	rm -r x-pack || die
34

  
35
	# use ${PV} instead of git commit id
36
	sed -i "s/\(COMMIT_ID=\).*/\1${PV}/g" "${S}/libbeat/scripts/Makefile" || die
37
}
38

  
29 39
src_compile() {
30 40
	GOPATH="${WORKDIR}" emake -C "${S}/filebeat"
31 41
}
......
36 46
	fperms 0750 /var/{lib,log}/${PN}
37 47

  
38 48
	newconfd "${FILESDIR}/${PN}.confd" ${PN}
39
	newinitd "${FILESDIR}/${PN}.initd" ${PN}
49
	newinitd "${FILESDIR}/${PN}.initd.1" ${PN}
40 50

  
41 51
	docinto examples
42
	dodoc ${PN}/{filebeat.yml,filebeat.full.yml}
43

  
44
	insinto "/etc/${PN}"
45
	doins ${PN}/{filebeat.template.json,filebeat.template-es2x.json,filebeat.template-es6x.json}
46

  
47
	exeinto "/usr/share/${PN}"
48
	doexe libbeat/scripts/migrate_beat_config_1_x_to_5_0.py
52
	dodoc ${PN}/{filebeat.yml,filebeat.reference.yml}
49 53

  
50 54
	dobin filebeat/filebeat
51 55
}
......
55 59
		elog "Please read the migration guide at:"
56 60
		elog "https://www.elastic.co/guide/en/beats/libbeat/$(ver_cut 1-2)/upgrading.html"
57 61
		elog ""
58
		elog "The migration script:"
59
		elog "${EROOT%/}/usr/share/filebeat/migrate_beat_config_1_x_to_5_0.py"
60
		elog ""
61 62
	fi
62 63

  
63 64
	elog "Example configurations:"
Thank you!