1 |
commit: 1e8d051497d67073371d2792edc3913dedceb266 |
2 |
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 3 22:13:59 2018 +0000 |
4 |
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 3 22:13:59 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e8d0514 |
7 |
|
8 |
app-misc/elasticsearch: bump and fix #652102 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
app-misc/elasticsearch/Manifest | 1 + |
13 |
app-misc/elasticsearch/elasticsearch-6.2.3.ebuild | 72 +++++++++++++++++++++++ |
14 |
2 files changed, 73 insertions(+) |
15 |
|
16 |
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest |
17 |
index c902d0af452..5806f6c492b 100644 |
18 |
--- a/app-misc/elasticsearch/Manifest |
19 |
+++ b/app-misc/elasticsearch/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST elasticsearch-5.6.8.tar.gz 33781024 BLAKE2B 8b946b76997ed68baaeaab110f78824 |
21 |
DIST elasticsearch-6.0.1.tar.gz 28026460 BLAKE2B a70cd36affaccccf1ea552167e585a35cc748de1137cf4b23387798ae31b851104ccc19f8be83ecc645bcebfba344b5e55a397a9cbb0b380c4a118f1f0ffecf2 SHA512 b86a04acd194e7e96e3a32de6ab4983d6569ffb1714f2af9e2b49623004987e13e57c5db055153a188f5d2d7eea63d649fa87769f7625f3fc4923e0cd5b8f3ee |
22 |
DIST elasticsearch-6.1.2.tar.gz 28455845 BLAKE2B 36215cf3131c8ac24e9b974d6c12892679e1896242119bf88182a229286a8391fc9575b068c6e692b9931022df299920fdc5dbf8f04651bd4bcfd544c1b65b2e SHA512 c72e69700b60faf3b1a542c2317b83189926738affb38033c4b8d7cc0a1b3c21c4f743f441fb10657d4684111746ebb18c9dba2f54845ea6e02e4fb8dc950e5a |
23 |
DIST elasticsearch-6.2.2.tar.gz 29049540 BLAKE2B d3f52486f072721ed1e8766de50cdf3daf6f43ca0b53dbc61f49a14de861a0e193e85ecdd5365d65394d8569c3bda13ef8de4f115afc9e97b52d0b20927e5438 SHA512 e8363a3022b7c8d67be37bcdf4d026cefb166403dcdb19950fdf2da508eb0ccfe2b2e3717a60edb932b7b6f5ec94cd06726d4fc5c7bcdd24711df16945fb8c5c |
24 |
+DIST elasticsearch-6.2.3.tar.gz 29050159 BLAKE2B 32a722e3861abf024a4b82ffe97877896cf3ffc76aac34fd942eeb9ca490ac41f3bf530b6313104fdf2c4900ea377d57837c465c6de6f983afac99802586b1c7 SHA512 8103c2b817cd5e14057c28372f379bb9c2b7833698818882c649d349904163d0c69d147836d03428619535652902532f7e5abc1e23214ad735c54b1d914acabf |
25 |
|
26 |
diff --git a/app-misc/elasticsearch/elasticsearch-6.2.3.ebuild b/app-misc/elasticsearch/elasticsearch-6.2.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..ad26d333245 |
29 |
--- /dev/null |
30 |
+++ b/app-misc/elasticsearch/elasticsearch-6.2.3.ebuild |
31 |
@@ -0,0 +1,72 @@ |
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 systemd user |
38 |
+ |
39 |
+DESCRIPTION="Open Source, Distributed, RESTful, Search Engine" |
40 |
+HOMEPAGE="https://www.elastic.co/products/elasticsearch" |
41 |
+SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz" |
42 |
+LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64" |
45 |
+ |
46 |
+RDEPEND="virtual/jre:1.8" |
47 |
+ |
48 |
+pkg_setup() { |
49 |
+ enewgroup ${PN} |
50 |
+ enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN} |
51 |
+} |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ |
56 |
+ rm -v bin/*.{bat,exe} LICENSE.txt || die |
57 |
+} |
58 |
+ |
59 |
+src_install() { |
60 |
+ keepdir /etc/${PN} |
61 |
+ keepdir /etc/${PN}/scripts |
62 |
+ |
63 |
+ insinto /etc/${PN} |
64 |
+ doins -r config/. |
65 |
+ rm -rv config || die |
66 |
+ |
67 |
+ fowners root:${PN} /etc/${PN} |
68 |
+ fperms 2750 /etc/${PN} |
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.3" ${PN} |
87 |
+ newinitd "${FILESDIR}/${PN}.init.3" ${PN} |
88 |
+ |
89 |
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf |
90 |
+ systemd_newunit "${FILESDIR}"/${PN}.service.2 ${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 |
+} |