1 |
commit: b3168257126a49b7f613b034a136e689c47442cb |
2 |
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Aug 28 04:20:01 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 30 21:46:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3168257 |
7 |
|
8 |
app-misc/elasticsearch: bump to 6.8.12/7.9.0 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/737958 |
11 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
app-misc/elasticsearch/Manifest | 4 + |
15 |
app-misc/elasticsearch/elasticsearch-6.8.12.ebuild | 88 ++++++++++++++++++++++ |
16 |
app-misc/elasticsearch/elasticsearch-7.9.0.ebuild | 83 ++++++++++++++++++++ |
17 |
3 files changed, 175 insertions(+) |
18 |
|
19 |
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest |
20 |
index 91ebd917e00..f17011a5b94 100644 |
21 |
--- a/app-misc/elasticsearch/Manifest |
22 |
+++ b/app-misc/elasticsearch/Manifest |
23 |
@@ -1,8 +1,12 @@ |
24 |
DIST elasticsearch-6.8.11.tar.gz 149101114 BLAKE2B 7d6550f817c9b367a096dd0637c3d4dca6f68b95f2d3554273e5c32b5d72b6583c5ff84d2811b0cb191d2fc91d7f8bf5dbaeda3bacb94feedb018d097006f819 SHA512 a2dcbaac26b3f35437f967848fe7bfb1b873b3051bd976ccef56bd4e9f99099d8b497d60da892151939c6f63ecccbee44f550e313474cf132407d145cd1667e9 |
25 |
+DIST elasticsearch-6.8.12.tar.gz 149091869 BLAKE2B 9cbc8cc424b1132f3e93de8f2cc7c603202250571d3f83b798ff78f88672bbc9943b5077369b4d06723e0ed24a3c7f01f89de98a5e52ae6eb141427f2db365a5 SHA512 e962e1c1a5dab165b6ef19296ee18faa86627552561b554d4ec97c8ed1ff2b4cc5f6d46bd1268ba25d8b70aab3afcd499fdaa5e06dced96b70f64b62f2e8fb96 |
26 |
DIST elasticsearch-7.6.2-no-jdk-linux-x86_64.tar.gz 148140124 BLAKE2B 9a850011533052d7a4041484936dfa2c8fe7f7976314147bc2b1d5f239bbdfe68a3593d3e0d2bb4d709a71e81aa7c200f9530921dab9d50c0ab3e349f4769ffb SHA512 aa5f499b26e92e19a673093fe2ff73c1c03a8da029b59cb83db43f9e2dfd7c650ee6a122bcf647b7e83f658ad9b9cc64092e6e7c1b4f8476f2973a6006b8df3c |
27 |
DIST elasticsearch-7.7.0-no-jdk-linux-x86_64.tar.gz 157716656 BLAKE2B 812c4db511f844fb23cb79bdfe3778281f1b6dad6a45553380829e330231304ce0e18eb975867e8474f652a63bdab2f4fb8c14158753aa8b29db5debfd3f00ae SHA512 a8d6cb7186301f50ba72ee5cde6c26390bdb6a8c13d902a75c63038b3dbb3cd7e544bbf6934d88324d722a213b7bf2efc0b27f9cae64428e6842d640bda5ee54 |
28 |
DIST elasticsearch-7.8.1-no-jdk-linux-x86_64.tar.gz 161598020 BLAKE2B 7950d9570760683a939c961c0babdf66a57adfc49d541d75716ce1dc379f211f60edceae06855de0f4bfe50c9a6b1ca0296aa58fe324a28b009fb8cfe5c2a5d7 SHA512 1fd0dc28cc12f4cafe8499ca2894a00f0aef506429a3cd5fa4c9ec006e4dd281099bd0f41f1e0ff9d67ef25d5d1cf3be7f6c43c1758ef3464ee4b650fb560842 |
29 |
+DIST elasticsearch-7.9.0-no-jdk-linux-x86_64.tar.gz 162809477 BLAKE2B 79a0cb0a62f55876eac92edae39241ac3ca49b7655e083700ab7d8a3775cd5356049dc9b7e0ef02b5d8c638ca2d1aae0a28be029e98ae6d0c5a792d682592a65 SHA512 79dbc45fe41e352586c178085e3ee4dc87d94f9a2d883f5522acb8e8733e1663c36d58891d24f1f2813407cc02b27312bf261b98305168f614a6bb962163cb17 |
30 |
DIST elasticsearch-oss-6.8.11.tar.gz 68247334 BLAKE2B d35bd5b2cec24923b03fe21e5f31055d0380c71908f9610d9897d7b97e599b65fbc98d04e905f35e7042f3b2697e89f9e927cf1b2b5b652f3a0e8731caaeaf54 SHA512 f92bd4dc68d8a42c1c5a8f424e375e4996d14d8860aef2e9a3208613a438543647e9999cdaa18870de4fb1f7d514929e535891e5cd6b8a668b2c90dab0106c51 |
31 |
+DIST elasticsearch-oss-6.8.12.tar.gz 68241645 BLAKE2B c62790e136c3c968b03a927d6fd67a5f8d6feae14a522213dd2432db1b53f14e931b40eb2120d47d23d7a8895487e2f8a03aaaf66098758a39d802556530b72c SHA512 9f6179ee49baa48b49c5328b88ddf2f0ef868f49c1f04d77975622120749725c48ac09cd565c05f6033eb227eaff905aff9f881a85efcf2fa75cc586cb8c45cb |
32 |
DIST elasticsearch-oss-7.6.2-no-jdk-linux-x86_64.tar.gz 72570377 BLAKE2B 5a5ec3e79cba236dd4a6ffd279b0fca4ad882c877b418261b0314d8101885a2d2496c837b44e5dbefe5ed994aeeca488a8f08a2ba26c4b44b156c180dae6004c SHA512 6197a0b62f577cd0692c1fb97a473a9971f8fef383dc6ef618035785dbc662947d2adbc425ce130ef531cbfaf9add9ed5da5a698387e770c49af820644d67e72 |
33 |
DIST elasticsearch-oss-7.7.0-no-jdk-linux-x86_64.tar.gz 73216528 BLAKE2B f0f1a3d3347ea37703e90bd896b24f6e3c58406d9fb20f3607a4d08eee325b5ae293db48d1afdc208468ee775b9085a28f39f2e175b67e4881bfb61d5cb85a9a SHA512 f9b323cff078a0dc856f99efd164775a9cd0718bb0ddb6c4d4817fa53cae71748f1aec5158afa45d4b29076043cbada9743a996e685439436e93d94a9eff2768 |
34 |
DIST elasticsearch-oss-7.8.1-no-jdk-linux-x86_64.tar.gz 75134201 BLAKE2B a3c88ad5f94a5cebefc1a5a3a913a62bc6c8751a78c179a05667f47da71c41b480edf8d7f962ad34aa8ab0eac8168d7b8cd57f33068c17ae7e0a8d5414fbc924 SHA512 f0caa06c1172b25d8f9cb9ddced72185aaaabb1b6d7f31fe1ba67172346236651ca3bc560e7ef206b4bf9521f228d46ee98df2e41b129253215135b583086ccc |
35 |
+DIST elasticsearch-oss-7.9.0-no-jdk-linux-x86_64.tar.gz 75601594 BLAKE2B 7e6edba0cb4948a8602b188193d88337cb0061a519059a23055e36ae3ab8d7df95f5c85327cb049286915872c74ec9b6adc2df21566d5eea007d134f7e3a0920 SHA512 6ec0bbb5a9f2bbf7bf78aea2999be2216f47b9f96caba27f99d40bdcdbd9f78f55e804643240fa97438cef375f4f7237860998e1d63fc401b8930d64eddea800 |
36 |
|
37 |
diff --git a/app-misc/elasticsearch/elasticsearch-6.8.12.ebuild b/app-misc/elasticsearch/elasticsearch-6.8.12.ebuild |
38 |
new file mode 100644 |
39 |
index 00000000000..6191d3d9e2e |
40 |
--- /dev/null |
41 |
+++ b/app-misc/elasticsearch/elasticsearch-6.8.12.ebuild |
42 |
@@ -0,0 +1,88 @@ |
43 |
+# Copyright 1999-2020 Gentoo Authors |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=7 |
47 |
+ |
48 |
+inherit systemd |
49 |
+ |
50 |
+DESCRIPTION="Open Source, Distributed, RESTful, Search Engine" |
51 |
+HOMEPAGE="https://www.elastic.co/products/elasticsearch" |
52 |
+SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz ) |
53 |
+ !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}.tar.gz )" |
54 |
+LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~amd64" |
57 |
+IUSE="x-pack" |
58 |
+ |
59 |
+RDEPEND="acct-group/elasticsearch |
60 |
+ acct-user/elasticsearch |
61 |
+ virtual/jre:1.8" |
62 |
+ |
63 |
+QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ |
68 |
+ rm bin/*.{bat,exe} LICENSE.txt NOTICE.txt || die |
69 |
+ rmdir logs || die |
70 |
+ |
71 |
+ if use x-pack; then |
72 |
+ rm bin/x-pack/*.bat || die |
73 |
+ rm -r modules/x-pack-ml/platform/{darwin,windows}-x86_64 || die |
74 |
+ fi |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ keepdir /etc/${PN} |
79 |
+ keepdir /etc/${PN}/scripts |
80 |
+ |
81 |
+ insinto /etc/${PN} |
82 |
+ doins -r config/. |
83 |
+ rm -r config || die |
84 |
+ |
85 |
+ fowners root:${PN} /etc/${PN} |
86 |
+ fperms 2750 /etc/${PN} |
87 |
+ |
88 |
+ insinto /usr/share/${PN} |
89 |
+ doins -r . |
90 |
+ |
91 |
+ exeinto /usr/share/${PN}/bin |
92 |
+ doexe "${FILESDIR}/elasticsearch-systemd-pre-exec" |
93 |
+ |
94 |
+ chmod +x "${ED}"/usr/share/${PN}/bin/* || die |
95 |
+ |
96 |
+ if use x-pack; then |
97 |
+ chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die |
98 |
+ fi |
99 |
+ |
100 |
+ keepdir /var/{lib,log}/${PN} |
101 |
+ fowners ${PN}:${PN} /var/{lib,log}/${PN} |
102 |
+ fperms 0750 /var/{lib,log}/${PN} |
103 |
+ dodir /usr/share/${PN}/plugins |
104 |
+ |
105 |
+ insinto /etc/sysctl.d |
106 |
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf |
107 |
+ |
108 |
+ newconfd "${FILESDIR}/${PN}.conf.3" ${PN} |
109 |
+ newinitd "${FILESDIR}/${PN}.init.6" ${PN} |
110 |
+ |
111 |
+ systemd_install_serviced "${FILESDIR}/${PN}.service.conf" |
112 |
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf |
113 |
+ systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service |
114 |
+} |
115 |
+ |
116 |
+pkg_postinst() { |
117 |
+ elog |
118 |
+ elog "You may create multiple instances of ${PN} by" |
119 |
+ elog "symlinking the init script:" |
120 |
+ elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance" |
121 |
+ elog |
122 |
+ elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts" |
123 |
+ elog "from /etc/${PN} into the configuration directory of the instance:" |
124 |
+ elog "/etc/${PN}/instance" |
125 |
+ elog |
126 |
+ ewarn "Please make sure you have proper permissions on /etc/${PN}" |
127 |
+ ewarn "prior to keystore generation or you may experience startup fails." |
128 |
+ ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}" |
129 |
+ ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore" |
130 |
+} |
131 |
|
132 |
diff --git a/app-misc/elasticsearch/elasticsearch-7.9.0.ebuild b/app-misc/elasticsearch/elasticsearch-7.9.0.ebuild |
133 |
new file mode 100644 |
134 |
index 00000000000..2155270debe |
135 |
--- /dev/null |
136 |
+++ b/app-misc/elasticsearch/elasticsearch-7.9.0.ebuild |
137 |
@@ -0,0 +1,83 @@ |
138 |
+# Copyright 1999-2020 Gentoo Authors |
139 |
+# Distributed under the terms of the GNU General Public License v2 |
140 |
+ |
141 |
+EAPI=7 |
142 |
+ |
143 |
+inherit systemd |
144 |
+ |
145 |
+DESCRIPTION="Open Source, Distributed, RESTful, Search Engine" |
146 |
+HOMEPAGE="https://www.elastic.co/products/elasticsearch" |
147 |
+SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz ) |
148 |
+ !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}-no-jdk-linux-x86_64.tar.gz )" |
149 |
+LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )" |
150 |
+SLOT="0" |
151 |
+KEYWORDS="~amd64" |
152 |
+IUSE="x-pack" |
153 |
+ |
154 |
+RDEPEND="acct-group/elasticsearch |
155 |
+ acct-user/elasticsearch |
156 |
+ virtual/jre" |
157 |
+ |
158 |
+QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" |
159 |
+ |
160 |
+src_prepare() { |
161 |
+ default |
162 |
+ |
163 |
+ rm LICENSE.txt NOTICE.txt || die |
164 |
+ rmdir logs || die |
165 |
+} |
166 |
+ |
167 |
+src_install() { |
168 |
+ keepdir /etc/${PN} |
169 |
+ keepdir /etc/${PN}/scripts |
170 |
+ |
171 |
+ insinto /etc/${PN} |
172 |
+ doins -r config/. |
173 |
+ rm -r config || die |
174 |
+ |
175 |
+ fowners root:${PN} /etc/${PN} |
176 |
+ fperms 2750 /etc/${PN} |
177 |
+ |
178 |
+ insinto /usr/share/${PN} |
179 |
+ doins -r . |
180 |
+ |
181 |
+ exeinto /usr/share/${PN}/bin |
182 |
+ doexe "${FILESDIR}/elasticsearch-systemd-pre-exec" |
183 |
+ |
184 |
+ chmod +x "${ED}"/usr/share/${PN}/bin/* || die |
185 |
+ |
186 |
+ if use x-pack; then |
187 |
+ chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die |
188 |
+ fi |
189 |
+ |
190 |
+ keepdir /var/{lib,log}/${PN} |
191 |
+ fowners ${PN}:${PN} /var/{lib,log}/${PN} |
192 |
+ fperms 0750 /var/{lib,log}/${PN} |
193 |
+ dodir /usr/share/${PN}/plugins |
194 |
+ |
195 |
+ insinto /etc/sysctl.d |
196 |
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf |
197 |
+ |
198 |
+ newconfd "${FILESDIR}/${PN}.conf.3" ${PN} |
199 |
+ newinitd "${FILESDIR}/${PN}.init.7" ${PN} |
200 |
+ |
201 |
+ systemd_install_serviced "${FILESDIR}/${PN}.service.conf" |
202 |
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf |
203 |
+ systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service |
204 |
+} |
205 |
+ |
206 |
+pkg_postinst() { |
207 |
+ elog |
208 |
+ elog "You may create multiple instances of ${PN} by" |
209 |
+ elog "symlinking the init script:" |
210 |
+ elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance" |
211 |
+ elog |
212 |
+ elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts" |
213 |
+ elog "from /etc/${PN} into the configuration directory of the instance:" |
214 |
+ elog "/etc/${PN}/instance" |
215 |
+ elog |
216 |
+ ewarn "Please make sure you have proper permissions on /etc/${PN}" |
217 |
+ ewarn "prior to keystore generation or you may experience startup fails." |
218 |
+ ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}" |
219 |
+ ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore" |
220 |
+} |