1 |
commit: 841aa6174fbe47115e4f9164f5001b0bcf514ce0 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Jan 17 14:50:31 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 17 19:32:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=841aa617 |
7 |
|
8 |
app-misc/elasticsearch: bump to 5.6.14 |
9 |
|
10 |
Package-Manager: Portage-2.3.55, Repoman-2.3.12 |
11 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
12 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
13 |
|
14 |
app-misc/elasticsearch/Manifest | 1 + |
15 |
app-misc/elasticsearch/elasticsearch-5.6.14.ebuild | 69 ++++++++++++++++++++++ |
16 |
2 files changed, 70 insertions(+) |
17 |
|
18 |
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest |
19 |
index d92e5026475..6f292367609 100644 |
20 |
--- a/app-misc/elasticsearch/Manifest |
21 |
+++ b/app-misc/elasticsearch/Manifest |
22 |
@@ -1,4 +1,5 @@ |
23 |
DIST elasticsearch-5.6.13.tar.gz 33894848 BLAKE2B d6b486154c4b4df155e443adee7d07200822f4a14f9cc50753e5b4621630c3b5de7b6b3d3ad7745b898f5a24c02aaddbec05aaf0f5d38fbda8acd78eed433939 SHA512 dbda463f0fba0b921ac65ca8743f53cb21410001cb6113aeaa2bfe3e22fbdac9f9010a3bdd2df5b8bc6c7cd59513d9fbac8b408d22d2b885ff5dadbb463b7981 |
24 |
+DIST elasticsearch-5.6.14.tar.gz 33898195 BLAKE2B d153ec39f2e74f9a600f6a12d609d24999c08d0af4da521865f1c8fa22c642d57bcf24f4907e390399c538bc14bef17862759be7e9b5362a283f9aff1d3ef672 SHA512 d384797c652d5ceb2e081c3a05d62a8af3c543e818fa501bc0caff0826e6a56447f0dfc03d1e7391f7eb043e500c8a9942083bb141d18a02d464c5e5d8011bb2 |
25 |
DIST elasticsearch-6.3.2.tar.gz 91452574 BLAKE2B c422990fabad70e6e77e8f59f6fb9e9bf5a84eb7e6b8b67dfd91f53e474b1b501b3a1d5ea8f54f0793631504f194a116e816eb3558782b67c8dadecbc2711ee5 SHA512 954cd1e16a5f2e0b0efaeb7e6b19c708d1588d30814a31defb09037c3b90f78c5e9dbd1ca9af9c700d517145a4279bacc1d8ce7cc6894fbe7bf71eec9ed3110d |
26 |
DIST elasticsearch-6.4.3.tar.gz 97872736 BLAKE2B e8c5db4f7238afccce4cf1ca0eced7b7e97891455cd28583eafd7ba028ba3cbc3596cedb2dc4267e677b3c7bbd459b8144284eca358f8c0e34a9a0b8a33426a8 SHA512 2f48720fd1644b1d0f103ca93bd19632c2a12bd3c94434ddf58bc692cb0b23631222f8d23cc0d0e85e271e11099fe0fc8aedf402906b76845ad680eb592f8987 |
27 |
DIST elasticsearch-6.5.4.tar.gz 113322649 BLAKE2B 876dd23f80e24390e4efa1aeca6fa5791e3320a292d60d1b7628c685d1a3210f8ab15b78013ccbad5e589bf65fc05153ee810a1113d6ab9b2bfe62a335887302 SHA512 dcd6afdac02cdacdd4bbb3d9f73bffeb7a93750b35f5a5a991dae6c7d9f8883e33401ddf3096346e008047bfcf08d09435ea5f0290e717ff3a041600ea088584 |
28 |
|
29 |
diff --git a/app-misc/elasticsearch/elasticsearch-5.6.14.ebuild b/app-misc/elasticsearch/elasticsearch-5.6.14.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..f5399ac194f |
32 |
--- /dev/null |
33 |
+++ b/app-misc/elasticsearch/elasticsearch-5.6.14.ebuild |
34 |
@@ -0,0 +1,69 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+inherit systemd user |
41 |
+ |
42 |
+DESCRIPTION="Open Source, Distributed, RESTful, Search Engine" |
43 |
+HOMEPAGE="https://www.elastic.co/products/elasticsearch" |
44 |
+SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz" |
45 |
+LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64" |
48 |
+ |
49 |
+RDEPEND="virtual/jre:1.8" |
50 |
+ |
51 |
+pkg_setup() { |
52 |
+ enewgroup ${PN} |
53 |
+ enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN} |
54 |
+} |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ |
59 |
+ rm -v bin/*.{bat,exe} LICENSE.txt || die |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ keepdir /etc/${PN} |
64 |
+ keepdir /etc/${PN}/scripts |
65 |
+ |
66 |
+ insinto /etc/${PN} |
67 |
+ doins -r config/. |
68 |
+ rm -rv config || die |
69 |
+ |
70 |
+ insinto /usr/share/${PN} |
71 |
+ doins -r . |
72 |
+ |
73 |
+ exeinto /usr/share/${PN}/bin |
74 |
+ doexe "${FILESDIR}/elasticsearch-systemd-pre-exec" |
75 |
+ |
76 |
+ chmod +x "${ED}"/usr/share/${PN}/bin/* || die |
77 |
+ |
78 |
+ keepdir /var/{lib,log}/${PN} |
79 |
+ fowners ${PN}:${PN} /var/{lib,log}/${PN} |
80 |
+ fperms 0750 /var/{lib,log}/${PN} |
81 |
+ dodir /usr/share/${PN}/plugins |
82 |
+ |
83 |
+ insinto /etc/sysctl.d |
84 |
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf |
85 |
+ |
86 |
+ newconfd "${FILESDIR}/${PN}.conf.2" ${PN} |
87 |
+ newinitd "${FILESDIR}/${PN}.init.2" ${PN} |
88 |
+ |
89 |
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf |
90 |
+ systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ elog |
95 |
+ elog "You may create multiple instances of ${PN} by" |
96 |
+ elog "symlinking the init script:" |
97 |
+ elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance" |
98 |
+ elog |
99 |
+ elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts" |
100 |
+ elog "from /etc/elasticsearch into the configuration directory of the instance:" |
101 |
+ elog "/etc/${PN}/instance" |
102 |
+ elog |
103 |
+} |