1 |
commit: 7e5de9bbddaea05899ed8af0c9511419461a9696 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri May 11 16:08:14 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 12 17:43:53 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e5de9bb |
7 |
|
8 |
app-misc/elasticsearch: bump to 5.6.9 |
9 |
|
10 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
11 |
|
12 |
app-misc/elasticsearch/Manifest | 1 + |
13 |
app-misc/elasticsearch/elasticsearch-5.6.9.ebuild | 69 +++++++++++++++++++++++ |
14 |
2 files changed, 70 insertions(+) |
15 |
|
16 |
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest |
17 |
index e556b7a2888..f39c8510b3f 100644 |
18 |
--- a/app-misc/elasticsearch/Manifest |
19 |
+++ b/app-misc/elasticsearch/Manifest |
20 |
@@ -1,6 +1,7 @@ |
21 |
DIST elasticsearch-1.7.6.tar.gz 28488767 BLAKE2B 0dc4fb10355e2139ee3a7e7e65366e8aa533b9714bf0f00d2bd8f4ef0669ba9f8f10dc5255c8c7a62abc0362e08ab5fda3c8b6b6f2bacfe5cce7255973293162 SHA512 2746f09b66919912e785c8d25c50ae74dbb38a41d99d9c926550786f9c2d7953d1ae1a54a32dae59a7269e5fbfa74dfbc91c3d412e415efd01c391ef7d329ba7 |
22 |
DIST elasticsearch-5.6.6.tar.gz 33780290 BLAKE2B ce4014b8eb74098990d97d7d87a0bd88df06f6719772f310c97cc33e740f44e84ebf74750c1f81b77c713c661a0e2e9ca826b6ab91b3625023fb9a061005d8ef SHA512 582fc3c2d1dcd5c208c229307ce387015ef8b25d9974fcac9ad4b8b3bc1c983a27daa171f0f242d367cc0776c545a82c5a4c07f6340104e739d83831e0d2210c |
23 |
DIST elasticsearch-5.6.8.tar.gz 33781024 BLAKE2B 8b946b76997ed68baaeaab110f78824c21df7bd7647474f239996191d14c6ca9a5ae4ed564f998d036aa55074f2299e4e3214043058a1984ebfbe9fad1f5d230 SHA512 b306b7e09ad14aaf7e20c3dbac1bc1496b9cb4cfb98b6111aaabf955af88f3fa0d77c72153f278bec11356e022f5c339248d185618b47cb140717bbd3fae09cb |
24 |
+DIST elasticsearch-5.6.9.tar.gz 33794793 BLAKE2B a056443b1f71b3af773b5195147927017456e1c9a6517c549cfe7e4ec70f0ff4ec9363c9ef6376b7b942e82f811cd5927d44eb9f9eb8022a56e54a85b4ba7c46 SHA512 4e61a4c5f79d0439a414f1e9361f855cdb2f79322cf592bad43132605922fb8ded6368b01e05ef6bcbee49911943c2a3b6be5fd6d0900abddfe03c736cca96d6 |
25 |
DIST elasticsearch-6.0.1.tar.gz 28026460 BLAKE2B a70cd36affaccccf1ea552167e585a35cc748de1137cf4b23387798ae31b851104ccc19f8be83ecc645bcebfba344b5e55a397a9cbb0b380c4a118f1f0ffecf2 SHA512 b86a04acd194e7e96e3a32de6ab4983d6569ffb1714f2af9e2b49623004987e13e57c5db055153a188f5d2d7eea63d649fa87769f7625f3fc4923e0cd5b8f3ee |
26 |
DIST elasticsearch-6.1.2.tar.gz 28455845 BLAKE2B 36215cf3131c8ac24e9b974d6c12892679e1896242119bf88182a229286a8391fc9575b068c6e692b9931022df299920fdc5dbf8f04651bd4bcfd544c1b65b2e SHA512 c72e69700b60faf3b1a542c2317b83189926738affb38033c4b8d7cc0a1b3c21c4f743f441fb10657d4684111746ebb18c9dba2f54845ea6e02e4fb8dc950e5a |
27 |
DIST elasticsearch-6.2.3.tar.gz 29050159 BLAKE2B 32a722e3861abf024a4b82ffe97877896cf3ffc76aac34fd942eeb9ca490ac41f3bf530b6313104fdf2c4900ea377d57837c465c6de6f983afac99802586b1c7 SHA512 8103c2b817cd5e14057c28372f379bb9c2b7833698818882c649d349904163d0c69d147836d03428619535652902532f7e5abc1e23214ad735c54b1d914acabf |
28 |
|
29 |
diff --git a/app-misc/elasticsearch/elasticsearch-5.6.9.ebuild b/app-misc/elasticsearch/elasticsearch-5.6.9.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..26cfa98675c |
32 |
--- /dev/null |
33 |
+++ b/app-misc/elasticsearch/elasticsearch-5.6.9.ebuild |
34 |
@@ -0,0 +1,69 @@ |
35 |
+# Copyright 1999-2018 Gentoo Foundation |
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 |
+} |