1 |
commit: db470559557ba7d2a505c41908ba936cd3802c87 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Nov 16 13:59:50 2017 +0000 |
4 |
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 16 15:12:18 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db470559 |
7 |
|
8 |
app-admin/logstash-bin: bump to 5.6.4 |
9 |
|
10 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
11 |
|
12 |
app-admin/logstash-bin/Manifest | 1 + |
13 |
app-admin/logstash-bin/logstash-bin-5.6.4.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 435491bc71c..8d2f0e1741a 100644 |
18 |
--- a/app-admin/logstash-bin/Manifest |
19 |
+++ b/app-admin/logstash-bin/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST logstash-5.5.3.zip 99551442 SHA256 f81ff55feb21ff4edd4283938ac8362c2906d98f9427d8660dab8465e08f0da9 SHA512 a4328ad0b8192b7c5aaed155d608d9db6adeaefd640e461ef4467daa1a28a2ae25d6b2b1adcf47c5dd82b66fc1adbf8ba5f3eabcf7e69dd8719a5860795877aa WHIRLPOOL d3482df4a7729f6b34973816e39315c69254a641e9811131d7d5e12ede54003a326c5773e799ee471dda01a6113762919ea81ab56ede62d29221f63ed5a7f8c7 |
22 |
DIST logstash-5.6.3.zip 109744226 SHA256 8fbe9deebfe459a568634c78371e85985d7629442194f2c3b60dd43cd3a9f4e4 SHA512 2a1e5d24b4f4b8e96a43a9ec278b94dfd681eba64a19c6341140a15014d24702b832da322e109dcf2100f980d93e07acb37466e1e2a725494ef1be5c2ac857c8 WHIRLPOOL 4d8b868b7566beff06bfac32090ec07b4dc830fe88abb1c249e424e9a121fb59cce93d1c51f9bf05223c6b7c4003f38b61e3405840c9a1a0b29bc79030f0af62 |
23 |
+DIST logstash-5.6.4.zip 109819435 SHA256 8809cee0b4199eafd5e3094243929d24b0d22c9d2fcaa473cb7031207d079ca8 SHA512 5382671758d905bbd89f9e05eff9ffcf4a3bbc4fca6f06844647c31df3f50198c297daa0151915c9ef1f0cd741ccb9fb12a7fa13cdc429463d92783c92624717 WHIRLPOOL e1d4cea766025564cb12720528ce0819b3787fb4ffc1901593786d79195ea1584834b70d0406d4b39dfcc236c9239af9e63b37e497c9fc7a79899a4a5f62b429 |
24 |
|
25 |
diff --git a/app-admin/logstash-bin/logstash-bin-5.6.4.ebuild b/app-admin/logstash-bin/logstash-bin-5.6.4.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..f5c2a9c0a25 |
28 |
--- /dev/null |
29 |
+++ b/app-admin/logstash-bin/logstash-bin-5.6.4.ebuild |
30 |
@@ -0,0 +1,77 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit java-pkg-2 user |
37 |
+ |
38 |
+MY_PN="${PN%-bin}" |
39 |
+MY_P="${MY_PN}-${PV}" |
40 |
+ |
41 |
+DESCRIPTION="Tool for managing events and logs" |
42 |
+HOMEPAGE="https://www.elastic.co/products/logstash" |
43 |
+SRC_URI="https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}.zip" |
44 |
+ |
45 |
+# source: LICENSE.txt and NOTICE.txt |
46 |
+LICENSE="Apache-2.0 MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64" |
49 |
+ |
50 |
+RESTRICT="strip" |
51 |
+QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so" |
52 |
+ |
53 |
+RDEPEND="virtual/jre:1.8" |
54 |
+ |
55 |
+S="${WORKDIR}/${MY_P}" |
56 |
+ |
57 |
+pkg_setup() { |
58 |
+ enewgroup ${MY_PN} |
59 |
+ enewuser ${MY_PN} -1 -1 /var/lib/${MY_PN} ${MY_PN} |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins} |
64 |
+ keepdir "/var/lib/${MY_PN}" |
65 |
+ keepdir "/var/log/${MY_PN}" |
66 |
+ |
67 |
+ insinto "/usr/share/${MY_PN}" |
68 |
+ newins "${FILESDIR}/agent.conf.sample" agent.conf |
69 |
+ |
70 |
+ rm -v config/startup.options || die |
71 |
+ insinto /etc/${MY_PN} |
72 |
+ doins config/* |
73 |
+ rm -rv config data || die |
74 |
+ |
75 |
+ insinto "/opt/${MY_PN}" |
76 |
+ doins -r . |
77 |
+ fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" "/opt/${MY_PN}/bin/logstash-plugin" |
78 |
+ |
79 |
+ newconfd "${FILESDIR}/${MY_PN}.confd-r1" "${MY_PN}" |
80 |
+ newinitd "${FILESDIR}/${MY_PN}.initd-r1" "${MY_PN}" |
81 |
+ |
82 |
+ insinto /usr/share/eselect/modules |
83 |
+ doins "${FILESDIR}"/logstash-plugin.eselect |
84 |
+} |
85 |
+ |
86 |
+pkg_postinst() { |
87 |
+ ewarn "The default pidfile directory has been changed from /run/logstash to /run." |
88 |
+ ewarn "Please ensure any running logstash processes are shut down cleanly." |
89 |
+ ewarn |
90 |
+ ewarn "The default data directory has been moved from /opt/logstash/data to" |
91 |
+ ewarn "/var/lib/logstash/data. Please check and move its contents as necessary." |
92 |
+ ewarn |
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 |
+ einfo |
97 |
+ einfo "Installing plugins:" |
98 |
+ einfo "eselect logstash-plugin install logstash-output-gelf" |
99 |
+ einfo |
100 |
+ |
101 |
+ einfo "Reinstalling self installed plugins (installed via eselect module):" |
102 |
+ eselect logstash-plugin reinstall |
103 |
+ |
104 |
+ einfo |
105 |
+ einfo "Sample configuration:" |
106 |
+ einfo "${EROOT%/}/usr/share/${MY_PN}" |
107 |
+} |