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