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: Sun, 09 Sep 2018 20:41:34
Message-Id: 1536525671.0d68b8b2feba416e56f692c80c3713a33c5d545a.whissi@gentoo
1 commit: 0d68b8b2feba416e56f692c80c3713a33c5d545a
2 Author: Tomas Mozes <tmozes <AT> sygic <DOT> com>
3 AuthorDate: Sun Sep 9 20:07:30 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 9 20:41:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d68b8b2
7
8 app-admin/logstash-bin: bump to 5.6.11
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 app-admin/logstash-bin/Manifest | 1 +
13 app-admin/logstash-bin/logstash-bin-5.6.11.ebuild | 77 +++++++++++++++++++++++
14 2 files changed, 78 insertions(+)
15
16 diff --git a/app-admin/logstash-bin/Manifest b/app-admin/logstash-bin/Manifest
17 index 49a2f3c04b1..8d0554ff0ef 100644
18 --- a/app-admin/logstash-bin/Manifest
19 +++ b/app-admin/logstash-bin/Manifest
20 @@ -1,4 +1,5 @@
21 DIST logstash-5.6.10.tar.gz 104373711 BLAKE2B 759bf003e1799aeaef0a1279b3c7cf5732126ae65e9ca0a3e315cb6f7a1b4e4417fad1fd86328a58be99e04e8053264d873b04cf43cac2b49490bbdc82c8e8b7 SHA512 9ba887da982755efd21b363e9c084660c9b7e6c042e00a8c599f60d6bba5621af7ede43957f6c3d976888f4c13e6ae17cc69afd184f2dcdd41a311972f59a745
22 +DIST logstash-5.6.11.tar.gz 104371822 BLAKE2B 3597b8ef661fa2bcbfd112966b11789925b1fafdc11991390c96d62af02d959cc251c59f352a949b14760df9f5eda5672ff407b70b3f361d4ec7ce3379eb7e5d SHA512 1e8f78fd76f637672bf18ec4b986c56c76be357788364e4dc863933f28982b988b147f31e091381e960c010ee4791e6f79914a75bacfe6b0482e573272bba749
23 DIST logstash-6.2.4.zip 153969993 BLAKE2B 989f631484be14014b8230e09fa049a0e470078fed938f2df55134a27d5f4f2d8670187126d32c4933b77b496a6ed96e12d180922c2c318c67fb3dbeec5a5a3b SHA512 65f6e5accc4441cb930e5c45723edeea54ba034a25680ca34114296af5a2c456d4152f9b38469475e600fce27a27b0d9c1d206039d12f2ec9cfeb02942a5c189
24 DIST logstash-6.3.2.tar.gz 144211416 BLAKE2B 8471fd0a920b4ef06cd775ceaafde33e16e5d1898c89339f4a039262a7a6472d6cb8dd2017db8811d6a827395a5b1e7040d9759c8734de2ccd1fc7e615345813 SHA512 11507b9177aa6cd4172eb825e395571de71bae8b0e39d7f700fe27c7219b22bc2b9a493e39016eead2d54407dc5e5cc20a0c6e4453140d628cadea076453308f
25 DIST logstash-oss-6.3.1.tar.gz 143787612 BLAKE2B 2de3b991d27019b1c7df7cfa7152c009f2569e12562106babb56081be2a7ac7d94a967e7c52b58f721c2f70f1e8ec9c2730653ff094cf0dd3a9933486ac13be7 SHA512 959d9d5985e117d23ae12efe248a13ae33f8f3ede320fb3b6872e1c27738b601779f0e2402e7be4a2383cd0f220e50cdfd2d6b160d7f5805b2439cee4d8bd94c
26
27 diff --git a/app-admin/logstash-bin/logstash-bin-5.6.11.ebuild b/app-admin/logstash-bin/logstash-bin-5.6.11.ebuild
28 new file mode 100644
29 index 00000000000..b52e9f6f7bf
30 --- /dev/null
31 +++ b/app-admin/logstash-bin/logstash-bin-5.6.11.ebuild
32 @@ -0,0 +1,77 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit java-pkg-2 user
39 +
40 +MY_PN="${PN%-bin}"
41 +MY_P="${MY_PN}-${PV}"
42 +
43 +DESCRIPTION="Tool for managing events and logs"
44 +HOMEPAGE="https://www.elastic.co/products/logstash"
45 +SRC_URI="https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}.tar.gz"
46 +
47 +# source: LICENSE.txt and NOTICE.txt
48 +LICENSE="Apache-2.0 MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64"
51 +
52 +RESTRICT="strip"
53 +QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so"
54 +
55 +RDEPEND="virtual/jre:1.8"
56 +
57 +S="${WORKDIR}/${MY_P}"
58 +
59 +pkg_setup() {
60 + enewgroup ${MY_PN}
61 + enewuser ${MY_PN} -1 -1 /var/lib/${MY_PN} ${MY_PN}
62 +}
63 +
64 +src_install() {
65 + keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins}
66 + keepdir "/var/lib/${MY_PN}"
67 + keepdir "/var/log/${MY_PN}"
68 +
69 + insinto "/usr/share/${MY_PN}"
70 + newins "${FILESDIR}/agent.conf.sample" agent.conf
71 +
72 + rm -v config/startup.options || die
73 + insinto /etc/${MY_PN}
74 + doins -r config/.
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-r1" "${MY_PN}"
82 + newinitd "${FILESDIR}/${MY_PN}.initd-r1" "${MY_PN}"
83 +
84 + insinto /usr/share/eselect/modules
85 + doins "${FILESDIR}"/logstash-plugin.eselect
86 +}
87 +
88 +pkg_postinst() {
89 + ewarn "The default pidfile directory has been changed from /run/logstash to /run."
90 + ewarn "Please ensure any running logstash processes are shut down cleanly."
91 + ewarn
92 + ewarn "The default data directory has been moved from /opt/logstash/data to"
93 + ewarn "/var/lib/logstash/data. Please check and move its contents as necessary."
94 + ewarn
95 + ewarn "Self installed plugins are removed during Logstash upgrades (Bug #622602)"
96 + ewarn "Install the plugins via eselect module that will automatically re-install"
97 + ewarn "all self installed plugins after Logstash upgrades."
98 + elog
99 + elog "Installing plugins:"
100 + elog "eselect logstash-plugin install logstash-output-gelf"
101 + elog
102 +
103 + elog "Reinstalling self installed plugins (installed via eselect module):"
104 + eselect logstash-plugin reinstall
105 +
106 + elog
107 + elog "Sample configuration:"
108 + elog "${EROOT%/}/usr/share/${MY_PN}"
109 +}