1 |
commit: 70e7698cfde069a2855fca03122f53f7eed2d611 |
2 |
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jul 27 11:16:18 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 31 10:03:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70e7698c |
7 |
|
8 |
app-admin/logstash-bin: bump to 7.13.4 |
9 |
|
10 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
app-admin/logstash-bin/Manifest | 2 + |
14 |
app-admin/logstash-bin/logstash-bin-7.13.4.ebuild | 88 +++++++++++++++++++++++ |
15 |
2 files changed, 90 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/logstash-bin/Manifest b/app-admin/logstash-bin/Manifest |
18 |
index c16ed41bf3d..b7e2db23968 100644 |
19 |
--- a/app-admin/logstash-bin/Manifest |
20 |
+++ b/app-admin/logstash-bin/Manifest |
21 |
@@ -4,9 +4,11 @@ DIST logstash-6.8.17.tar.gz 179116623 BLAKE2B fa25a3149fded215586d97b3bd2a2b2b16 |
22 |
DIST logstash-7.12.0-linux-x86_64.tar.gz 368429061 BLAKE2B 7bf60eeeec072e99aec807c8cb64cfd5cd46270d297c717fee539531286f487ef254738a439947e40bfc039778d20fa746566aa4d0c031a8f1a22deaaab9ce74 SHA512 ba32cb97e81cc3f4369c752b860aea7a85d212921954e5829f0b63526584d01c79731dd094905d91ed35f9887ae70bfffd5324b25dc3f23e60745462493e8195 |
23 |
DIST logstash-7.12.1-linux-x86_64.tar.gz 368465800 BLAKE2B eea395286408de50cf61b2a69f6a673f81c4021370eab9b04fb1a9ad993a5b625145d6710e5045f9572a6a923455fe8613c2262bd488f6e76d467850b1bfa5c5 SHA512 9ef32dbeb4269d904a775a1cf5833b09cc5b8b71c03f953641fd5de5c27ba51ec878d9e74cdd98255d37fcd39d592deea72832bdce26cbb2827db4ae3b294834 |
24 |
DIST logstash-7.13.2-linux-x86_64.tar.gz 360899712 BLAKE2B 327c5a2820cc42ec0d63bd5d8e1983f37e217e7fe28eebe326a7437b938a3602b387e0138c0055b3b23f8d657013e79a8d7b9b0ad698075667a0c944c07e7dd8 SHA512 706a107fefc587262c27d754ddddce482affc6b12e240895d56ec61e97887f1edf7b0a0888e089827c622917d772f3b9231b6aadf352f5e78c7eee98cfdbfb2b |
25 |
+DIST logstash-7.13.4-linux-x86_64.tar.gz 361126551 BLAKE2B e972b2c6b992573f0320de0487141c17fa6cd1889d7d266f79958fbc261a4e8564b9f9fc88b654de7e476c6c2747f47e169d0fd3601888035193a2cb844fd710 SHA512 2dba64af5f6b0724a75a8f4f3dc9fb067e27785fd5d0b9ef0571c77df6ebaa89418a165b7489ad47676847c4a9f928cbfc8d3ddc885db21053d0bda9dd524f49 |
26 |
DIST logstash-oss-6.8.15.tar.gz 176782145 BLAKE2B 20cdd28d9c6e43edb3cc6d60b961155880aaf2e22d100b6641246a56194ba87aef3c41e039be2ab6bca75e646b83a3f42c935472776aa87a4baa774cca74458d SHA512 c74f189af58ca936b3d3e19970f29a78b8f041f5771163c5ed28466e84cf456f4814a9f4c5a9def2706c39daaebaca948c14e683a6aa82b2e1c1e7ee57592dc2 |
27 |
DIST logstash-oss-6.8.16.tar.gz 176782454 BLAKE2B afdea56bbaa2623548948722f5dcd85172e0d3580c302fde91e1f6d0af66e82538465da9aeb428bbb9e66c7a8bdd29ce69279098d5c3ee9a7c2ac1efdbedb628 SHA512 d994472606cbb474471441a238c6bfacf9c1cdf1adf20129a8bc256daab9ea49adaa8c425c9a41520846465393a2c112ec6c83478579620ebbf446e528accf20 |
28 |
DIST logstash-oss-6.8.17.tar.gz 178986613 BLAKE2B 5e318903fb134f6096fb983d3651d5d81c2bc9d62421aa7468ee7cb82a5e7895a517911a759d82f1f2c939c3ce67df4e26c1296c0871cb1cfb8078627e68e5f3 SHA512 0f43f9f0dc4a253c6d5a6f07234a22bc67b8866dd6f25837372c1d3c9cca2ddb1b94b632c4528324eeb23019d5d1ae7374661dec8011e55210555e01bec77c2c |
29 |
DIST logstash-oss-7.12.0-linux-x86_64.tar.gz 368251521 BLAKE2B 0959b29335dba2728d2e7a76ee482fb713f9d504a52bea1dcde99f042cfd52d9e18067cb3fffe6ca28b2eddddfd4ded1a19de616f4ddd3b6889e373a908706a0 SHA512 5d7bd5ec3ea5907771bb7590277e54be3407cebe6bc89dd7f5d73b02e9e8907855d19500787b21c8ffcff9cdbbb68a4bbb286131d03ce5585ec89e5c2a76dc60 |
30 |
DIST logstash-oss-7.12.1-linux-x86_64.tar.gz 368287628 BLAKE2B 72e758e6962cc5a24c2a5f6ea4c268be1bc0b5a0ae1d73cb056d0d321b20495df346233e58661f11a37fc5e6c0750f28501af24511a7a29c2e698ce933c7380f SHA512 cefdfdaf2f1d0190d35bc5da2244a5bc09659e9f225cfd05acbdacd0f5f89cc13b928704491d18ac0d54c3500f8c15dc7ca64341bf0d7ed56a49c10eb82a55d4 |
31 |
DIST logstash-oss-7.13.2-linux-x86_64.tar.gz 360703237 BLAKE2B 130b68f77fb5b52db71d478801afe498ab157f2b38c56e67455b28bc7358faaae9663c79b515031544136e6dc126d8d96b6fab8f7802bf84d5125850540feaae SHA512 0d4cc38740b9a9b44a528a148ea8f2032a27af275bf4508700ec62ae3d74987c4fbbda72b4b6fb4a4059e9be3a7949813ad401187d43335e99b9a280350fba93 |
32 |
+DIST logstash-oss-7.13.4-linux-x86_64.tar.gz 360925283 BLAKE2B 68482538d4b2589044215495ab7d41b4820650908d979438b197c5ee4ff82dfc53580fba7c834c62964e9b12ff23e6d9ecfc6e333a2cb6f077d6d4c953527173 SHA512 d57c30c763ba3323380c7276a49895ce3adbe90700061bdf1ce8c6abe98c4ac0c5789ac2a725f15d8d4f89c80dec691479027887b8976dcd618aa91f7af13d8e |
33 |
|
34 |
diff --git a/app-admin/logstash-bin/logstash-bin-7.13.4.ebuild b/app-admin/logstash-bin/logstash-bin-7.13.4.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..aea75866ef6 |
37 |
--- /dev/null |
38 |
+++ b/app-admin/logstash-bin/logstash-bin-7.13.4.ebuild |
39 |
@@ -0,0 +1,88 @@ |
40 |
+# Copyright 1999-2021 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=7 |
44 |
+ |
45 |
+inherit java-pkg-2 |
46 |
+ |
47 |
+MY_PN="${PN%-bin}" |
48 |
+MY_P="${MY_PN}-${PV}" |
49 |
+ |
50 |
+DESCRIPTION="Tool for managing events and logs" |
51 |
+HOMEPAGE="https://www.elastic.co/products/logstash" |
52 |
+SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86_64.tar.gz ) |
53 |
+ !x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}-linux-x86_64.tar.gz )" |
54 |
+ |
55 |
+# source: LICENSE.txt and NOTICE.txt |
56 |
+LICENSE="Apache-2.0 MIT x-pack? ( Elastic )" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64" |
59 |
+IUSE="x-pack" |
60 |
+ |
61 |
+RESTRICT="strip" |
62 |
+QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so" |
63 |
+ |
64 |
+RDEPEND="acct-group/logstash |
65 |
+ acct-user/logstash |
66 |
+ virtual/jre" |
67 |
+ |
68 |
+S="${WORKDIR}/${MY_P}" |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ default |
72 |
+ |
73 |
+ local d |
74 |
+ for d in aarch64-Linux arm-Linux Darwin i386-Linux i386-SunOS \ |
75 |
+ i386-Windows mips64el-Linux ppc64-AIX ppc64le-Linux ppc64-Linux \ |
76 |
+ ppc-AIX sparcv9-Linux sparcv9-SunOS x86_64-DragonFlyBSD \ |
77 |
+ x86_64-FreeBSD x86_64-OpenBSD x86_64-SunOS x86_64-Windows; do |
78 |
+ rm -r vendor/jruby/lib/jni/$d || die |
79 |
+ done |
80 |
+ |
81 |
+ # remove bundled java |
82 |
+ rm -r jdk || die |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins} |
87 |
+ keepdir "/var/log/${MY_PN}" |
88 |
+ |
89 |
+ insinto "/usr/share/${MY_PN}" |
90 |
+ newins "${FILESDIR}/agent.conf.sample" agent.conf |
91 |
+ |
92 |
+ rm -v config/{pipelines.yml,startup.options} || die |
93 |
+ insinto /etc/${MY_PN} |
94 |
+ doins -r config/. |
95 |
+ doins "${FILESDIR}/pipelines.yml" |
96 |
+ rm -rv config data || die |
97 |
+ |
98 |
+ insinto "/opt/${MY_PN}" |
99 |
+ doins -r . |
100 |
+ fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" "/opt/${MY_PN}/bin/logstash-plugin" |
101 |
+ |
102 |
+ newconfd "${FILESDIR}/${MY_PN}.confd-r2" "${MY_PN}" |
103 |
+ newinitd "${FILESDIR}/${MY_PN}.initd-r2" "${MY_PN}" |
104 |
+ |
105 |
+ insinto /usr/share/eselect/modules |
106 |
+ doins "${FILESDIR}"/logstash-plugin.eselect |
107 |
+} |
108 |
+ |
109 |
+pkg_postinst() { |
110 |
+ ewarn "Self installed plugins are removed during Logstash upgrades (Bug #622602)" |
111 |
+ ewarn "Install the plugins via eselect module that will automatically re-install" |
112 |
+ ewarn "all self installed plugins after Logstash upgrades." |
113 |
+ elog |
114 |
+ elog "Installing plugins:" |
115 |
+ elog "eselect logstash-plugin install logstash-output-gelf" |
116 |
+ elog |
117 |
+ |
118 |
+ elog "Reinstalling self installed plugins (installed via eselect module):" |
119 |
+ eselect logstash-plugin reinstall |
120 |
+ |
121 |
+ elog |
122 |
+ elog "Sample configuration:" |
123 |
+ elog "${EROOT}/usr/share/${MY_PN}" |
124 |
+ elog |
125 |
+ elog "The default pipeline configuration expects the configuration(s) to be found in:" |
126 |
+ elog "${EROOT}/etc/logstash/conf.d/*.conf" |
127 |
+} |