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