Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/logstash-bin/
Date: Thu, 30 Jul 2020 18:17:16
Message-Id: 1596133007.48745ad1da03bf31221b2bc1f3f9c776aca25eee.whissi@gentoo
1 commit: 48745ad1da03bf31221b2bc1f3f9c776aca25eee
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Wed Jul 29 19:37:43 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 30 18:16:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48745ad1
7
8 app-admin/logstash-bin: bump to 6.8.11
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 app-admin/logstash-bin/Manifest | 2 +
14 app-admin/logstash-bin/logstash-bin-6.8.11.ebuild | 73 +++++++++++++++++++++++
15 2 files changed, 75 insertions(+)
16
17 diff --git a/app-admin/logstash-bin/Manifest b/app-admin/logstash-bin/Manifest
18 index 3b9ba5f55fe..041208c6dbf 100644
19 --- a/app-admin/logstash-bin/Manifest
20 +++ b/app-admin/logstash-bin/Manifest
21 @@ -1,7 +1,9 @@
22 +DIST logstash-6.8.11.tar.gz 176909941 BLAKE2B f3a7085b179215982df87433523735dab35832ae73a41b8b98a66dacc95bd79985f14f78699902c3b7153ff7c11d21ea3f150899095790ad888bdfbb2eaa6fda SHA512 0ebb938784a4a4ea8c1e1691d1953d69605860b6b61fb818d73054b4488fd4c43914c369b468948633ea52d2c8c4f0bfe0e610912cb8c7436b15c5ac5a7047d6
23 DIST logstash-6.8.8.tar.gz 179965893 BLAKE2B a56db7b09c7fd59a5496e076ab11bf273265cff7eedfc9c9dfaa117a16baeb9b9c8e97a71eb8ff2a80f379b242d08c2d997476d7a48bab802ff3380d8914f13c SHA512 11c0b9be1d51c3feff82181234d0b5cd838edff78678bdc410f306c52d6345393e9d6c4d6095c2e3aa044f8c5af35d98fa2570891e81e9e3c57907c2baed6100
24 DIST logstash-7.6.2.tar.gz 172679447 BLAKE2B afeaab06178669559ff532cf72575f8063d07f95f2401060d33e0a99c87bb9e0c251e45634b9723efe456892ac19586accc89cf7272163e48eeaef438632b777 SHA512 c86dcf36cd0d578467c7013234040d5ea100f08ef69a185f6aa86c87dfa46936282abf10d0f495ffe649274136b735d17ab513ef3401205140c2d98bd9f91238
25 DIST logstash-7.7.0.tar.gz 166451553 BLAKE2B 30b732f1ef516b275246b0e14212b0b00b78502e0b4e78211b3bfdd77e2190639ed8c35f775dae7817b0b43a446d34941b968e8a0785302c337a326a507fc607 SHA512 970740adc47551d7967b9841cc39d15f2cbdcd46c2fee1f84b5688fac266fdcd2202cbb10d3a10cf3768606f693ed2e4fc79e91d293a3295083718bafaa7bc9d
26 DIST logstash-7.8.0.tar.gz 167162975 BLAKE2B 666746571151b1cc1b79fc7405235a107f452c4741ba0e65f151e8b38934239e57698faed3663889d932eabf43e58277a1b2d5aebbf8dfa8c3f5e77fa8778ed2 SHA512 8b7c9015edfde0bed43a2668bf24d8523f785ea8f94b522e5d9dd886a677459f2c2c2e103b91b04f671287177e902e8f3fbf6747841f7984357a803405f9ed00
27 +DIST logstash-oss-6.8.11.tar.gz 176779121 BLAKE2B 2b3f62fd78a5ffcea07954c4e9b90fc7df10b933a327ac5400d73eb6c4ecd1013049d04b6cecd014b17ff6361a4be0ee535112267cce71cf8c9dc95b551ed6f6 SHA512 4e0d6ebaa620ebb0039687859f28e8620e5604d8452ad1338b2a670cec3153e521f4c3bdc3a78e10b843c1356e73c96065c1c624efc2baa9b2277fa1f8cabaa9
28 DIST logstash-oss-6.8.8.tar.gz 179836007 BLAKE2B e278d8dd34341bceb506accb3424b4af6db0795b582e1370d60f4a4b68671372449c94ae28f4a7585b8d4f4e63dcf7d6fa80eed37fd4ef8e872414ae2cd15b80 SHA512 ceba8d798c1246c9fd3385bc4b64995fcf9083dc5149211fabc09bfa3208d56bba6d8ae4ab73da5f9968633f30c547e0132f76543e2f9a2a96675ee58df74b09
29 DIST logstash-oss-7.6.2.tar.gz 172501347 BLAKE2B 2a83d7617c8e13a0b736ed0023a164d2191102f49e7d7174bf3ea9c56370c51e4fd760f7bb3aba97f1b9bd2ec122ba22e00dec9ac9636f7b79128c6bb2da548e SHA512 c425a9748964ef38fc58f67778cd88fc367df91087362353cfee316e54528e4a23407e1fc53d628008fd4c829b427061758112f10e7805cec88c0a1f0a966d2a
30 DIST logstash-oss-7.7.0.tar.gz 166272505 BLAKE2B a12b065874e03ae985c590b8bcbaabf4d2ee6d0ce3ca1f5d60b0874074996e7f8c40bad4fd242e26e74c11741620103e41bdeade2f60f6fabe97652d1c9fbb1e SHA512 a455fcf5c9a44c326ae581f9390ddf206064e6e6b3801cca312cef91e8d33086f8a6598ed68f81f2cfc6d8d66783632b983bef7c8a4ad0f24e929827ec137da4
31
32 diff --git a/app-admin/logstash-bin/logstash-bin-6.8.11.ebuild b/app-admin/logstash-bin/logstash-bin-6.8.11.ebuild
33 new file mode 100644
34 index 00000000000..08167fb0287
35 --- /dev/null
36 +++ b/app-admin/logstash-bin/logstash-bin-6.8.11.ebuild
37 @@ -0,0 +1,73 @@
38 +# Copyright 1999-2020 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +
43 +inherit java-pkg-2
44 +
45 +MY_PN="${PN%-bin}"
46 +MY_P="${MY_PN}-${PV}"
47 +
48 +DESCRIPTION="Tool for managing events and logs"
49 +HOMEPAGE="https://www.elastic.co/products/logstash"
50 +SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}.tar.gz )
51 + !x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}.tar.gz )"
52 +
53 +# source: LICENSE.txt and NOTICE.txt
54 +LICENSE="Apache-2.0 MIT x-pack? ( Elastic )"
55 +SLOT="0"
56 +KEYWORDS="~amd64"
57 +IUSE="x-pack"
58 +
59 +RESTRICT="strip"
60 +QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so"
61 +
62 +RDEPEND="acct-group/logstash
63 + acct-user/logstash
64 + virtual/jre:1.8"
65 +
66 +S="${WORKDIR}/${MY_P}"
67 +
68 +src_install() {
69 + keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins}
70 + keepdir "/var/log/${MY_PN}"
71 +
72 + insinto "/usr/share/${MY_PN}"
73 + newins "${FILESDIR}/agent.conf.sample" agent.conf
74 +
75 + rm -v config/{pipelines.yml,startup.options} || die
76 + insinto /etc/${MY_PN}
77 + doins -r config/.
78 + doins "${FILESDIR}/pipelines.yml"
79 + rm -rv config data || die
80 +
81 + insinto "/opt/${MY_PN}"
82 + doins -r .
83 + fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" "/opt/${MY_PN}/bin/logstash-plugin"
84 +
85 + newconfd "${FILESDIR}/${MY_PN}.confd-r2" "${MY_PN}"
86 + newinitd "${FILESDIR}/${MY_PN}.initd-r2" "${MY_PN}"
87 +
88 + insinto /usr/share/eselect/modules
89 + doins "${FILESDIR}"/logstash-plugin.eselect
90 +}
91 +
92 +pkg_postinst() {
93 + ewarn "Self installed plugins are removed during Logstash upgrades (Bug #622602)"
94 + ewarn "Install the plugins via eselect module that will automatically re-install"
95 + ewarn "all self installed plugins after Logstash upgrades."
96 + elog
97 + elog "Installing plugins:"
98 + elog "eselect logstash-plugin install logstash-output-gelf"
99 + elog
100 +
101 + elog "Reinstalling self installed plugins (installed via eselect module):"
102 + eselect logstash-plugin reinstall
103 +
104 + elog
105 + elog "Sample configuration:"
106 + elog "${EROOT}/usr/share/${MY_PN}"
107 + elog
108 + elog "The default pipeline configuration expects the configuration(s) to be found in:"
109 + elog "${EROOT}/etc/logstash/conf.d/*.conf"
110 +}