1 |
commit: 121730762d83f43967338bd00c342ea4f55686fe |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Oct 13 06:45:01 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 15 21:10:42 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12173076 |
7 |
|
8 |
app-admin/filebeat: bump to 5.6.3. |
9 |
|
10 |
Package-Manager: Portage-2.3.11, Repoman-2.3.3 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/5936 |
12 |
|
13 |
app-admin/filebeat/Manifest | 1 + |
14 |
app-admin/filebeat/filebeat-5.6.3.ebuild | 69 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 70 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/filebeat/Manifest b/app-admin/filebeat/Manifest |
18 |
index 65a1e593d0f..b46560b670d 100644 |
19 |
--- a/app-admin/filebeat/Manifest |
20 |
+++ b/app-admin/filebeat/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST filebeat-5.5.2.tar.gz 18075191 SHA256 39e792324a35fe84ef9a63cd5324252bc71d1c665188e8d597e12ca170cfde7a SHA512 ad92b41a9ceaad6c6e6fc80d0adccd7fe03a7056d121484bcf35c6a46b2061a5ef6d32121dd12d59b51e7678769da5c405b1d549fa130631ae3f1989b78fba48 WHIRLPOOL 46d182bd339abd26f3c4cf3f8d3a716180fc00147458f571eec34aefcaa67d9e88a561988e37c47083528024e4e0559b255c7a17efa43e0e4b21b653a575f7fd |
23 |
DIST filebeat-5.6.2.tar.gz 18142395 SHA256 72e247d6ec3586883cd58bc6465d18b7eb0857763ff422259205abf090557e45 SHA512 0132be77bfa51aa43b7d0ca9466bd7ab602bddffe163bd63270a3192601c9f9bc9f85f1ad18bf2e90ba5df1f6a4b14be0fc08148c2e75c264e5da7268b9fb92a WHIRLPOOL e25ebf7594fe54c325d72a8f5db09bfb21ed33df42d682cbff6383390f3daebbf57bd15d687bfff6bc740f44ebad9e4d4e5a1329bd18c213aefdea5de7b8d2dd |
24 |
+DIST filebeat-5.6.3.tar.gz 18140948 SHA256 52a4c9094287f725a089e161dc71d9cdf0caf73595e8835a5d0636d3ad333bbe SHA512 6b3d61f18b1bd45db4ba5d08e92b94f1fb48610658237c91f4404a4074f82badbac2ab9bc236c1f64567a0dd1f62022c3d092a9017073069b4497c01f1b1d94b WHIRLPOOL 581b32645f6039d8f5d962db3a7216737af2673918a36f7826c6629a2e091efd2e87060c657883bf0ea1083992491e3cbf399774a75bf879bce142dd3d7c6065 |
25 |
|
26 |
diff --git a/app-admin/filebeat/filebeat-5.6.3.ebuild b/app-admin/filebeat/filebeat-5.6.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..451e2191c7a |
29 |
--- /dev/null |
30 |
+++ b/app-admin/filebeat/filebeat-5.6.3.ebuild |
31 |
@@ -0,0 +1,69 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+DESCRIPTION="Lightweight log shipper for Logstash and Elasticsearch" |
38 |
+HOMEPAGE="https://www.elastic.co/products/beats" |
39 |
+SRC_URI="https://github.com/elastic/beats/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="Apache-2.0" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+ |
45 |
+DEPEND=">=dev-lang/go-1.8.3" |
46 |
+RDEPEND="!app-admin/filebeat-bin" |
47 |
+ |
48 |
+ELASTIC="${WORKDIR}/src/github.com/elastic" |
49 |
+BEATS="${ELASTIC}/beats" |
50 |
+S="${BEATS}" |
51 |
+ |
52 |
+src_unpack() { |
53 |
+ mkdir -p "${ELASTIC}" || die |
54 |
+ unpack ${P}.tar.gz |
55 |
+ mv beats-${PV} "${BEATS}" || die |
56 |
+} |
57 |
+ |
58 |
+src_compile() { |
59 |
+ cd ${BEATS}/filebeat || die |
60 |
+ GOPATH="${WORKDIR}" emake |
61 |
+} |
62 |
+ |
63 |
+src_test() { |
64 |
+ cd ${BEATS}/filebeat || die |
65 |
+ GOPATH="${WORKDIR}" emake check |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ keepdir /var/{lib,log}/${PN} |
70 |
+ |
71 |
+ fperms 0750 /var/{lib,log}/${PN} |
72 |
+ |
73 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} |
74 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
75 |
+ |
76 |
+ insinto "/usr/share/doc/${PF}/examples" |
77 |
+ doins ${PN}/{filebeat.yml,filebeat.full.yml} |
78 |
+ |
79 |
+ insinto "/etc/${PN}" |
80 |
+ doins ${PN}/{filebeat.template.json,filebeat.template-es2x.json,filebeat.template-es6x.json} |
81 |
+ |
82 |
+ exeinto "/usr/share/${PN}" |
83 |
+ doexe libbeat/scripts/migrate_beat_config_1_x_to_5_0.py |
84 |
+ |
85 |
+ dobin filebeat/filebeat |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ if [[ -n "${REPLACING_VERSIONS}" ]]; then |
90 |
+ elog "Please read the migration guide at:" |
91 |
+ elog "https://www.elastic.co/guide/en/beats/libbeat/5.0/upgrading.html" |
92 |
+ elog "" |
93 |
+ elog "The migration script:" |
94 |
+ elog "${EROOT%/}/usr/share/filebeat/migrate_beat_config_1_x_to_5_0.py" |
95 |
+ elog "" |
96 |
+ fi |
97 |
+ |
98 |
+ elog "Example configurations:" |
99 |
+ elog "${EROOT%/}/usr/share/doc/${PF}/examples" |
100 |
+} |