Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/logstash-bin/
Date: Sun, 11 Aug 2019 14:39:17
Message-Id: 1565534345.9fbaaaca0c402644118586e241b7956b9d3f0fec.juippis@gentoo
1 commit: 9fbaaaca0c402644118586e241b7956b9d3f0fec
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Tue Jul 2 09:10:48 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 11 14:39:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fbaaaca
7
8 app-admin/logstash-bin: bump to 6.8.1
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-6.8.1.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 781355621ac..d6413baef84 100644
19 --- a/app-admin/logstash-bin/Manifest
20 +++ b/app-admin/logstash-bin/Manifest
21 @@ -1,3 +1,5 @@
22 DIST logstash-5.6.15.tar.gz 110086992 BLAKE2B 3047259c4bc5d71b072fa004c44953f84860ec53e051641c4efc903e38243e85b8fdebeaf093c01f5410c1f05a78a8d8aa2282fc45cf5fd784a41ea66ff5b196 SHA512 405039ff988aee8878cbeca96ef0fcbadba762f877eaec36c8a75b010e56a943c2951a8f83f9279d7d9fea99c4f8a200c705f784813a2733289336c58c34ca1e
23 DIST logstash-6.6.1.tar.gz 169642354 BLAKE2B 335fa036e9f120de5d6588ed18e927ddfb3a94dfcfbc9605fbda3e3eb4da3ba88561d466eb171c85a2deebb3328312ba903616704844e253a7599f75597efbae SHA512 a66f196f160af29492b64efb61b7e3253a4ef45764c5e6226f73c2a216151ff43f6d344c2e3340a1a9ddb8b00e61f14c65d5dd0c14d69421f4efa3542445fe4f
24 +DIST logstash-6.8.1.tar.gz 172031559 BLAKE2B dcb0d37ce0325affa86c3cba546dae262ae8436cc2234eb977a359498f923620cb1ce4bc79a5a5c5d7afe6b7b3b3e938791baf44ce25ba967f5738ea5cb15669 SHA512 3f3a90cbd185a5efaefbe2004f1265ea5d1fbd3371820897b19d8b9b8fcc6d5522bd97ef4150fd963a376ce7726d9ab4d62fa9e2bc718a2c8bb69dd7e964c378
25 DIST logstash-oss-6.6.1.tar.gz 169512439 BLAKE2B 54a18deda80079c9bf2de39936737689d696a4ddc6f8a7ae375d48817ea127f1eb83f1ef50a18b573709446fc3deb858f53a5aff6411329b52ef0316859a7f03 SHA512 7fbe960e615c3c6b6715bd63debd3db869abe29bfdc94d4947290b822fe1d858e289548dbda266c8ad6d25745e63a788de0c83566121faa0d3027642b0f3d108
26 +DIST logstash-oss-6.8.1.tar.gz 171901409 BLAKE2B bff3b96bcf3f53450e1279f633788af7d7a1d18b18305741c87c6b2c7e9e24db0664798c7040116bfbf72c9714bad867a00a3f37fe8eb436ce1948bb84a2096f SHA512 d928f9eaa2278c76cbdec46349bf1b924d3f5a9f668c834c882158decf52d44f14dcc356a491cc935dd3717f4a76b8a23eac1173ab28f44cdb32a57ab298fbcd
27
28 diff --git a/app-admin/logstash-bin/logstash-bin-6.8.1.ebuild b/app-admin/logstash-bin/logstash-bin-6.8.1.ebuild
29 new file mode 100644
30 index 00000000000..08373cbcbd5
31 --- /dev/null
32 +++ b/app-admin/logstash-bin/logstash-bin-6.8.1.ebuild
33 @@ -0,0 +1,73 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI="7"
38 +
39 +inherit java-pkg-2 user
40 +
41 +MY_PN="${PN%-bin}"
42 +MY_P="${MY_PN}-${PV}"
43 +
44 +DESCRIPTION="Tool for managing events and logs"
45 +HOMEPAGE="https://www.elastic.co/products/logstash"
46 +SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}.tar.gz )
47 + !x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}.tar.gz )"
48 +
49 +# source: LICENSE.txt and NOTICE.txt
50 +LICENSE="Apache-2.0 MIT x-pack? ( Elastic )"
51 +SLOT="0"
52 +KEYWORDS="~amd64"
53 +IUSE="x-pack"
54 +
55 +RESTRICT="strip"
56 +QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so"
57 +
58 +RDEPEND="acct-group/logstash
59 + acct-user/logstash
60 + virtual/jre:1.8"
61 +
62 +S="${WORKDIR}/${MY_P}"
63 +
64 +src_install() {
65 + keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins}
66 + keepdir "/var/log/${MY_PN}"
67 +
68 + insinto "/usr/share/${MY_PN}"
69 + newins "${FILESDIR}/agent.conf.sample" agent.conf
70 +
71 + rm -v config/{pipelines.yml,startup.options} || die
72 + insinto /etc/${MY_PN}
73 + doins -r config/.
74 + doins "${FILESDIR}/pipelines.yml"
75 + rm -rv config data || die
76 +
77 + insinto "/opt/${MY_PN}"
78 + doins -r .
79 + fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" "/opt/${MY_PN}/bin/logstash-plugin"
80 +
81 + newconfd "${FILESDIR}/${MY_PN}.confd-r2" "${MY_PN}"
82 + newinitd "${FILESDIR}/${MY_PN}.initd-r2" "${MY_PN}"
83 +
84 + insinto /usr/share/eselect/modules
85 + doins "${FILESDIR}"/logstash-plugin.eselect
86 +}
87 +
88 +pkg_postinst() {
89 + ewarn "Self installed plugins are removed during Logstash upgrades (Bug #622602)"
90 + ewarn "Install the plugins via eselect module that will automatically re-install"
91 + ewarn "all self installed plugins after Logstash upgrades."
92 + elog
93 + elog "Installing plugins:"
94 + elog "eselect logstash-plugin install logstash-output-gelf"
95 + elog
96 +
97 + elog "Reinstalling self installed plugins (installed via eselect module):"
98 + eselect logstash-plugin reinstall
99 +
100 + elog
101 + elog "Sample configuration:"
102 + elog "${EROOT%/}/usr/share/${MY_PN}"
103 + elog
104 + elog "The default pipeline configuration expects the configuration(s) to be found in:"
105 + elog "${EROOT%/}/etc/logstash/conf.d/*.conf"
106 +}