Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/
Date: Fri, 28 Jan 2022 08:36:53
Message-Id: 1643358982.c6e90538f9d4beec31023efa68e87da7d6e28f50.sam@gentoo
1 commit: c6e90538f9d4beec31023efa68e87da7d6e28f50
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Fri Jan 28 07:56:17 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 08:36:22 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6e90538
7
8 app-misc/elasticsearch: bump to 6.8.23/7.16.3
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-misc/elasticsearch/Manifest | 3 +
14 app-misc/elasticsearch/elasticsearch-6.8.23.ebuild | 90 ++++++++++++++++++++++
15 app-misc/elasticsearch/elasticsearch-7.16.3.ebuild | 83 ++++++++++++++++++++
16 3 files changed, 176 insertions(+)
17
18 diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
19 index 856eb9df3909..aedbbe137d56 100644
20 --- a/app-misc/elasticsearch/Manifest
21 +++ b/app-misc/elasticsearch/Manifest
22 @@ -1,3 +1,6 @@
23 DIST elasticsearch-6.8.22.tar.gz 149669518 BLAKE2B 7f942891d24491c5064179f38408de62bbb257c8a611f0cbba93eb144233c6353e24b636ffdd36aacf25d528fdc88892ca71525f18e126ffc4420d8bb325bbb1 SHA512 64539d9c451cb32de227cbbe54c2ae1d90ad97fd461d1b0f2f09cffa18f1b9ad787df43a38dfbb0899f7ba2766217bbb56d012d23c25dc3e716009da11c4d26c
24 +DIST elasticsearch-6.8.23.tar.gz 149672445 BLAKE2B dd7b080f1496f3a20755c183befae74194eab05b04c6f77679e9dad6067eef5222a4c7ce43d6267f1233a7bf864c6f8b23d5caf52278e1fe5f48f465e6603113 SHA512 73258b400cd194768058105a74ca0e811962ccf81bed8c4d3a824d4e5b97a8178a31150e60602fa1e04c6764b139980eb45ae6f246864702120653b45120b597
25 DIST elasticsearch-7.16.2-no-jdk-linux-x86_64.tar.gz 199602093 BLAKE2B c1cbb96e02b9f6eff3839bc8e9aa69b60b10f8c41bc18140aee3ba09120b59a36ee8d90e0f08942c8e6726da37d7380d9b1adc5e3c3991ffecaea7d2964b1c07 SHA512 4e913e6657501a23830e138d0f7de7de57e80c0953078ecb10565770931bbba0eed37b38de0888f9618de579138d51ca16f0239048ff70de68330aba862aff8d
26 +DIST elasticsearch-7.16.3-no-jdk-linux-x86_64.tar.gz 167284956 BLAKE2B 9dfa13d6f08bf5bbd5752870839c344635e3cc6b9f34e92948f09afdfb3929c0942d89bd02d5844f40a80d18c2cac51c8bb207c0c830ad2853acf662f5e79845 SHA512 ec9747694ba9f8b76b1620e42addd106afa3d3c207dd3836afe2482556f8a982fa03f3536ebb762f12a6093c9a5eac63cdbf2f1941dde9e3ce69c41652749d4f
27 DIST elasticsearch-oss-6.8.22.tar.gz 68572525 BLAKE2B c98ae3aeffead132ec884e10f3ddc8eaac853f654279214fcb268e9941a49bc9f0156fbdca6d5a538dbc5dabdbba2c23d16fe36327faa24eb2d204aec5fa54a6 SHA512 44019994f9a59a1d96ffc54847a4a7c90f70ece2c661c710878f643d6439d83b7ee6a205f445b1bfb2e7ab3de733434a6241f7b454159142e6e68255e8807e52
28 +DIST elasticsearch-oss-6.8.23.tar.gz 68573265 BLAKE2B 80366fdc4eaaf45161a36da112397938a82d08d842d82dd5a9311abf63ca20afb93ecc06387c6852bbb1a861306382d6e7c2314e67635b6f2e75cdc183057ad8 SHA512 14dbb2809b06499373c3ec5035d829d62255c2c93103618fbfe3d7d03cecf8847f654e83c78f765f23224126ff18ed713b959857e8ecf435c475b11bcd143d3f
29
30 diff --git a/app-misc/elasticsearch/elasticsearch-6.8.23.ebuild b/app-misc/elasticsearch/elasticsearch-6.8.23.ebuild
31 new file mode 100644
32 index 000000000000..5fd5b2ceff2e
33 --- /dev/null
34 +++ b/app-misc/elasticsearch/elasticsearch-6.8.23.ebuild
35 @@ -0,0 +1,90 @@
36 +# Copyright 1999-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit systemd tmpfiles
42 +
43 +DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
44 +HOMEPAGE="https://www.elastic.co/products/elasticsearch"
45 +SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz )
46 + !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}.tar.gz )"
47 +LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +IUSE="x-pack"
51 +
52 +RDEPEND="acct-group/elasticsearch
53 + acct-user/elasticsearch
54 + virtual/jre:1.8"
55 +
56 +QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
57 +
58 +src_prepare() {
59 + default
60 +
61 + rm bin/*.{bat,exe} LICENSE.txt NOTICE.txt || die
62 + rmdir logs || die
63 +
64 + if use x-pack; then
65 + rm bin/x-pack/*.bat || die
66 + rm -r modules/x-pack-ml/platform/{darwin,windows}-x86_64 || die
67 + fi
68 +}
69 +
70 +src_install() {
71 + keepdir /etc/${PN}
72 + keepdir /etc/${PN}/scripts
73 +
74 + insinto /etc/${PN}
75 + doins -r config/.
76 + rm -r config || die
77 +
78 + fowners root:${PN} /etc/${PN}
79 + fperms 2750 /etc/${PN}
80 +
81 + insinto /usr/share/${PN}
82 + doins -r .
83 +
84 + exeinto /usr/share/${PN}/bin
85 + doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
86 +
87 + chmod +x "${ED}"/usr/share/${PN}/bin/* || die
88 +
89 + if use x-pack; then
90 + chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die
91 + fi
92 +
93 + keepdir /var/{lib,log}/${PN}
94 + fowners ${PN}:${PN} /var/{lib,log}/${PN}
95 + fperms 0750 /var/{lib,log}/${PN}
96 + dodir /usr/share/${PN}/plugins
97 +
98 + insinto /etc/sysctl.d
99 + newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
100 +
101 + newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
102 + newinitd "${FILESDIR}/${PN}.init.6" ${PN}
103 +
104 + systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
105 + newtmpfiles "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
106 + systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service
107 +}
108 +
109 +pkg_postinst() {
110 + elog
111 + elog "You may create multiple instances of ${PN} by"
112 + elog "symlinking the init script:"
113 + elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
114 + elog
115 + elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
116 + elog "from /etc/${PN} into the configuration directory of the instance:"
117 + elog "/etc/${PN}/instance"
118 + elog
119 + ewarn "Please make sure you have proper permissions on /etc/${PN}"
120 + ewarn "prior to keystore generation or you may experience startup fails."
121 + ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
122 + ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
123 +
124 + tmpfiles_process /usr/lib/tmpfiles.d/elasticsearch.conf
125 +}
126
127 diff --git a/app-misc/elasticsearch/elasticsearch-7.16.3.ebuild b/app-misc/elasticsearch/elasticsearch-7.16.3.ebuild
128 new file mode 100644
129 index 000000000000..be38b6a483a2
130 --- /dev/null
131 +++ b/app-misc/elasticsearch/elasticsearch-7.16.3.ebuild
132 @@ -0,0 +1,83 @@
133 +# Copyright 1999-2022 Gentoo Authors
134 +# Distributed under the terms of the GNU General Public License v2
135 +
136 +EAPI=7
137 +
138 +inherit systemd tmpfiles
139 +
140 +DESCRIPTION="Free and Open, Distributed, RESTful Search Engine"
141 +HOMEPAGE="https://www.elastic.co/elasticsearch/"
142 +SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz"
143 +LICENSE="Apache-2.0 BSD-2 Elastic-2.0 LGPL-3 MIT public-domain"
144 +SLOT="0"
145 +KEYWORDS="~amd64"
146 +
147 +RDEPEND="acct-group/elasticsearch
148 + acct-user/elasticsearch
149 + sys-libs/zlib
150 + virtual/jre"
151 +
152 +QA_PREBUILT="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
153 +QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
154 +
155 +src_prepare() {
156 + default
157 +
158 + rm LICENSE.txt NOTICE.txt || die
159 + rmdir logs || die
160 +}
161 +
162 +src_install() {
163 + keepdir /etc/${PN}
164 + keepdir /etc/${PN}/scripts
165 +
166 + insinto /etc/${PN}
167 + doins -r config/.
168 + rm -r config || die
169 +
170 + fowners root:${PN} /etc/${PN}
171 + fperms 2750 /etc/${PN}
172 +
173 + insinto /usr/share/${PN}
174 + doins -r .
175 +
176 + exeinto /usr/share/${PN}/bin
177 + doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
178 +
179 + fperms -R +x /usr/share/${PN}/bin
180 + fperms -R +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin
181 +
182 + keepdir /var/{lib,log}/${PN}
183 + fowners ${PN}:${PN} /var/{lib,log}/${PN}
184 + fperms 0750 /var/{lib,log}/${PN}
185 + dodir /usr/share/${PN}/plugins
186 +
187 + insinto /etc/sysctl.d
188 + newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
189 +
190 + newconfd "${FILESDIR}/${PN}.conf.4" ${PN}
191 + newinitd "${FILESDIR}/${PN}.init.8" ${PN}
192 +
193 + systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
194 + systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service
195 +
196 + newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.d ${PN}.conf
197 +}
198 +
199 +pkg_postinst() {
200 + tmpfiles_process /usr/lib/tmpfiles.d/${PN}.conf
201 +
202 + elog
203 + elog "You may create multiple instances of ${PN} by"
204 + elog "symlinking the init script:"
205 + elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
206 + elog
207 + elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
208 + elog "from /etc/${PN} into the configuration directory of the instance:"
209 + elog "/etc/${PN}/instance"
210 + elog
211 + ewarn "Please make sure you have proper permissions on /etc/${PN}"
212 + ewarn "prior to keystore generation or you may experience startup fails."
213 + ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
214 + ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
215 +}