1 |
commit: 2776bc38da92e4aaf0e0a30eece7aae438850534 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Dec 3 11:34:23 2018 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 4 15:27:13 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2776bc38 |
7 |
|
8 |
app-misc/elasticsearch: bump to 6.5.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.52, 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 | 2 + |
15 |
app-misc/elasticsearch/elasticsearch-6.5.1.ebuild | 91 +++++++++++++++++++++++ |
16 |
2 files changed, 93 insertions(+) |
17 |
|
18 |
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest |
19 |
index f2674b52a8e..0e1c85c251a 100644 |
20 |
--- a/app-misc/elasticsearch/Manifest |
21 |
+++ b/app-misc/elasticsearch/Manifest |
22 |
@@ -1,5 +1,7 @@ |
23 |
DIST elasticsearch-5.6.13.tar.gz 33894848 BLAKE2B d6b486154c4b4df155e443adee7d07200822f4a14f9cc50753e5b4621630c3b5de7b6b3d3ad7745b898f5a24c02aaddbec05aaf0f5d38fbda8acd78eed433939 SHA512 dbda463f0fba0b921ac65ca8743f53cb21410001cb6113aeaa2bfe3e22fbdac9f9010a3bdd2df5b8bc6c7cd59513d9fbac8b408d22d2b885ff5dadbb463b7981 |
24 |
DIST elasticsearch-6.3.2.tar.gz 91452574 BLAKE2B c422990fabad70e6e77e8f59f6fb9e9bf5a84eb7e6b8b67dfd91f53e474b1b501b3a1d5ea8f54f0793631504f194a116e816eb3558782b67c8dadecbc2711ee5 SHA512 954cd1e16a5f2e0b0efaeb7e6b19c708d1588d30814a31defb09037c3b90f78c5e9dbd1ca9af9c700d517145a4279bacc1d8ce7cc6894fbe7bf71eec9ed3110d |
25 |
DIST elasticsearch-6.4.3.tar.gz 97872736 BLAKE2B e8c5db4f7238afccce4cf1ca0eced7b7e97891455cd28583eafd7ba028ba3cbc3596cedb2dc4267e677b3c7bbd459b8144284eca358f8c0e34a9a0b8a33426a8 SHA512 2f48720fd1644b1d0f103ca93bd19632c2a12bd3c94434ddf58bc692cb0b23631222f8d23cc0d0e85e271e11099fe0fc8aedf402906b76845ad680eb592f8987 |
26 |
+DIST elasticsearch-6.5.1.tar.gz 113317061 BLAKE2B 37fcff019080e02d2dd0a1bccd0dd77903e2cf395f20fcbefb5cd45e60a187fd9394b60bfc136198f1c246289a9d1f494ce39d5024f728cc2409b87131b3f3d1 SHA512 f64474a4bf61cec72b4b6391747add6c12824f0f98a01da6745bc7a35811ba9a32f6fd9366042655113e344857bb7be1b764cb5442a98ca6d1745147fa80198c |
27 |
DIST elasticsearch-oss-6.3.2.tar.gz 29418577 BLAKE2B 152640dc01a10f44ba43f87f68361cc0dd5e1cf54d0ff92377f3acd1a12a247f002ffe2d003cc53760e891278249c10b1d6d4eb978b0bb1c1ebf8879a2cfcb9a SHA512 3c51a860414f7e55900b1d9a350bdbc3e673c8445e316454c2480315b4b9fc08df58090c6281cecc3ae63d12d78d6bd58e228b3371aa325db799ce18758a21f4 |
28 |
DIST elasticsearch-oss-6.4.3.tar.gz 33727639 BLAKE2B b4f4821af7a2447a6a16158c32bf676ebbfd8598fde8af558dd19d6e365df66be17d0984e3acb9380a0d5e0cff486b85f6edf96312bd3bb3fc5ae52c270306f3 SHA512 b1147baa95119a8a96779125351358b4c62f2a546b65a9750c11d1d1b9270f06db6da8ff1d9ad11efade1eaea8487087e2d8839b0edfc5da6d9b54da6c6df4e7 |
29 |
+DIST elasticsearch-oss-6.5.1.tar.gz 34259848 BLAKE2B b489a1668e627bf8970bb287902fd73668986c46c9516edb78a41d0e1443f330ae7acdc7c898182b960d1ed375182e649d9c601f53353cc020a5bb166b42d3cf SHA512 567fe43695359c4ced2870f98a04a477db68c34aa2ccfd255702c78273b7a4b1466d4b4e32707817a36fa92ddf9ccf54587f77e7628fc63663ff64fc41e7e727 |
30 |
|
31 |
diff --git a/app-misc/elasticsearch/elasticsearch-6.5.1.ebuild b/app-misc/elasticsearch/elasticsearch-6.5.1.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..52da0c6d635 |
34 |
--- /dev/null |
35 |
+++ b/app-misc/elasticsearch/elasticsearch-6.5.1.ebuild |
36 |
@@ -0,0 +1,91 @@ |
37 |
+# Copyright 1999-2018 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=6 |
41 |
+ |
42 |
+inherit systemd user |
43 |
+ |
44 |
+DESCRIPTION="Open Source, Distributed, RESTful, Search Engine" |
45 |
+HOMEPAGE="https://www.elastic.co/products/elasticsearch" |
46 |
+SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz ) |
47 |
+ !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}.tar.gz )" |
48 |
+LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64" |
51 |
+IUSE="x-pack" |
52 |
+ |
53 |
+RDEPEND="virtual/jre:1.8" |
54 |
+ |
55 |
+QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" |
56 |
+ |
57 |
+pkg_setup() { |
58 |
+ enewgroup ${PN} |
59 |
+ enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN} |
60 |
+} |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ |
65 |
+ rm bin/*.{bat,exe} LICENSE.txt NOTICE.txt || die |
66 |
+ rmdir logs || die |
67 |
+ |
68 |
+ if use x-pack; then |
69 |
+ rm bin/x-pack/*.bat || die |
70 |
+ rm -r modules/x-pack-ml/platform/{darwin,windows}-x86_64 || die |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ keepdir /etc/${PN} |
76 |
+ keepdir /etc/${PN}/scripts |
77 |
+ |
78 |
+ insinto /etc/${PN} |
79 |
+ doins -r config/. |
80 |
+ rm -r config || die |
81 |
+ |
82 |
+ fowners root:${PN} /etc/${PN} |
83 |
+ fperms 2750 /etc/${PN} |
84 |
+ |
85 |
+ insinto /usr/share/${PN} |
86 |
+ doins -r . |
87 |
+ |
88 |
+ exeinto /usr/share/${PN}/bin |
89 |
+ doexe "${FILESDIR}/elasticsearch-systemd-pre-exec" |
90 |
+ |
91 |
+ chmod +x "${ED}"/usr/share/${PN}/bin/* || die |
92 |
+ |
93 |
+ if use x-pack; then |
94 |
+ chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die |
95 |
+ fi |
96 |
+ |
97 |
+ keepdir /var/{lib,log}/${PN} |
98 |
+ fowners ${PN}:${PN} /var/{lib,log}/${PN} |
99 |
+ fperms 0750 /var/{lib,log}/${PN} |
100 |
+ dodir /usr/share/${PN}/plugins |
101 |
+ |
102 |
+ insinto /etc/sysctl.d |
103 |
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf |
104 |
+ |
105 |
+ newconfd "${FILESDIR}/${PN}.conf.3" ${PN} |
106 |
+ newinitd "${FILESDIR}/${PN}.init.5" ${PN} |
107 |
+ |
108 |
+ systemd_install_serviced "${FILESDIR}/${PN}.service.conf" |
109 |
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf |
110 |
+ systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service |
111 |
+} |
112 |
+ |
113 |
+pkg_postinst() { |
114 |
+ elog |
115 |
+ elog "You may create multiple instances of ${PN} by" |
116 |
+ elog "symlinking the init script:" |
117 |
+ elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance" |
118 |
+ elog |
119 |
+ elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts" |
120 |
+ elog "from /etc/${PN} into the configuration directory of the instance:" |
121 |
+ elog "/etc/${PN}/instance" |
122 |
+ elog |
123 |
+ ewarn "Please make sure you have proper permissions on /etc/${PN}" |
124 |
+ ewarn "prior to keystore generation or you may experience startup fails." |
125 |
+ ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}" |
126 |
+ ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore" |
127 |
+} |