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