1 |
commit: a8ee7b6a1a4f46019129da26d19f827a7fabee96 |
2 |
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Sep 24 21:17:17 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 4 12:48:53 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8ee7b6a |
7 |
|
8 |
app-misc/elasticsearch: bump to 6.8.19/7.15.0 |
9 |
|
10 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
app-misc/elasticsearch/Manifest | 3 + |
14 |
app-misc/elasticsearch/elasticsearch-6.8.19.ebuild | 88 ++++++++++++++++++++++ |
15 |
app-misc/elasticsearch/elasticsearch-7.15.0.ebuild | 82 ++++++++++++++++++++ |
16 |
3 files changed, 173 insertions(+) |
17 |
|
18 |
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest |
19 |
index 0e4a9f94785..e1dd8c04c22 100644 |
20 |
--- a/app-misc/elasticsearch/Manifest |
21 |
+++ b/app-misc/elasticsearch/Manifest |
22 |
@@ -1,10 +1,13 @@ |
23 |
DIST elasticsearch-6.8.15.tar.gz 149102328 BLAKE2B 0ce9ba565d751cd27721f3d49dd24761937c3476cee4896ba1a4d84e4fc238296129481f18cad64270fe8af71a043c2e8e583df14f2a084850fb10c93fcea0ef SHA512 c62c4d9d1bb83e10d3e1079f56b834f2f89b1f712c29d9ce7e81786199c71d287ecbf6df158eca56a7af711eafe13dfb276e12b34e1a0a6cf6719e1fbb44a142 |
24 |
DIST elasticsearch-6.8.16.tar.gz 149125098 BLAKE2B cafdb7fd97b3df087472c65ede9eb9c703f6499a03d70c5fcc497bdaafc0757d0b9e7fe84d0a8c710cdecbe85654fdad1f854209015a545e0bf43d8e585a481f SHA512 0b15f77ba5962970ef38869a233ee3d091a64b218cf42dc5f4bdd8a81322739992f75e3c438295435f28af20af1e138c2f5e3afed76a7ebc0f348764528dd0f3 |
25 |
DIST elasticsearch-6.8.17.tar.gz 149132823 BLAKE2B a83d4e81059a717e48ac54e7565efe282f42103718ba9cef9994a6970769bb01248e99ffbfe061ca85a7b44890604c6174dc11046a94c455dc01da7f495524ea SHA512 5eb365efccff4e371d9ac873b45684c36cfd7f25ec51a86c3cd74beff4491dbc0097dba22f91335c35478e3b25decc6ae4bc5d538add0e17a39eb063dfa2d88c |
26 |
+DIST elasticsearch-6.8.19.tar.gz 149143102 BLAKE2B 74b529d9b9944101c0371c2e1a43697aca0ca5907a4fc25cb7a54b30d9d27a6e876317c8946636314db48ffab59be732ee9a52f2d989c1cff12c11ca91e68cb5 SHA512 2d12a201496668da7547eef77000d2317df083a0d03390549ded9aa80e8ea69d836b62355bb1b8ff363be446887579a34cf417b0b1b8e4d0f6a178598a3cdac1 |
27 |
DIST elasticsearch-7.12.0-no-jdk-linux-x86_64.tar.gz 173069694 BLAKE2B 5de74b1e6de743246cf48e32254f9646fa25c2820d0be9df886fdefe131a302ddb8906546147f0d284e2fc0faf8cc0238bf854fe1611d28bf1e7cb1518bd4e31 SHA512 205aa2a2fa2ab7eb7b54087420e0123aa97e5456e2e1f31cad9ea7b84be3f9823a2a7c47d4cf1697833e5f795359477d3a3b0ea4955a8f92583cf2228071827e |
28 |
DIST elasticsearch-7.12.1-no-jdk-linux-x86_64.tar.gz 173079845 BLAKE2B 98214508c2c1dcb631f59d9e51d5949f9a7c5d1f68ff78c8d93af04c6a21fa1e1c6e2051f04bbdb8154443d6295ad54af2016695fcb9193b7595e1486777ba98 SHA512 c91fd66668977280d7339caf6b4fef9fce5640492f0e2a65bc537c6da8397c801a3727f1ff56b7a1591b11ea47195720c588a4eba473043f829a87cd3dcc0af4 |
29 |
DIST elasticsearch-7.13.2-no-jdk-linux-x86_64.tar.gz 174688419 BLAKE2B e8541581dfc856b9b005bc7fda29c9aaf82d61c406df1f7e06ea8997a71567047d4822e5e873aee41f7a295f2eba10508c966e9ebc4e8b7c734f1c100f4a05f3 SHA512 4d02faf019eab1fc590d76fdc50c6396cfe5bc4363baaa3d1e63ca7210942cbdf5c08d28e5d4b7d2cf47fb18ee83b94529ecb2bdaba6521798721398c8a06165 |
30 |
DIST elasticsearch-7.13.4-no-jdk-linux-x86_64.tar.gz 174690446 BLAKE2B bab17a006f14d262ee85918c8b2e5f610a1e726d158cf423bf306971826f182963e0231456539253f5054069b82672e8803c0da06166215d128bdea02e6738db SHA512 5d6d53d9d6c6faf5d6599019882aa4b5d91f04944ab26c496cab033880b71f1ce2addb98bcf12b21891c005e810ce4a0493627b9ec9f0f78b4f7786efa398eab |
31 |
+DIST elasticsearch-7.15.0-no-jdk-linux-x86_64.tar.gz 196775804 BLAKE2B c08a77a03dd98acbbbdabdf408c33cc7786d8b00e64558b0658e6952d3c32842b2ede48a54e58ee85ece882f56675d77ff39bc2b6ede7d8c7e446bbfd0b23965 SHA512 dbd5c5ce9a08ea0bbc55e9f470a7455d99f1458287cb1d885f07f2670cc8885dbe764315c1267f31ef745a424ece52b4e60239993e0ed7d0bec70dd8c022f7fa |
32 |
DIST elasticsearch-oss-6.8.15.tar.gz 68240776 BLAKE2B 431d845e02f2118a98021af4422ece34274b6d0811a32c5a3e679da3f8f56ca9cd45949307268811edbb83327a4a80fb84866cbbaaf01f7d3af042412b1e1bfa SHA512 7e6a819339ac6043af218f9d97d5d68c50ac46900e4293e7fa18992f7a50b10b0ab2434e26ff0dc1546204ae7526de8ac6ef6545fc0db9c862ceeaa0d96c56f5 |
33 |
DIST elasticsearch-oss-6.8.16.tar.gz 68248767 BLAKE2B 2c8c14a6e2f837bc547de2e8c97f2fbe2dbf7743978a00e2fc37cd61eb46144df2a24f67360761e0342987b9194176109cfbd07545d2e8f88cae48f9508c659c SHA512 0f46c69136312d535ccff4663655500538ffc924bbe50350c2eed3372609a28e642bb906cbb9a631af5fa10568a16c1a630ef181c383ee247c98325ddc85e04c |
34 |
DIST elasticsearch-oss-6.8.17.tar.gz 68247749 BLAKE2B 12e85804a7d58dc27d85fbed6501831d92428405cb4636355c523a370863e00301bd75d7d12404ee0c7eefc32c53bc4b23e8fc1fecf2f606faf85369b2262cc7 SHA512 0f165357b1f389fbd01f07397a2b3ea5d493fae720c15213f2ee47a0c2c75bc4a448384767646d7585a18d4577899b840121c1829a987a16d2de68f216b28f7c |
35 |
+DIST elasticsearch-oss-6.8.19.tar.gz 68255213 BLAKE2B 7fba24a70dafbaf94d2c9f2f25dfc976f831759e8be67ce0a5f15ffe11b9f8d4d62b7906ad5250bcbaacab43139b4471328978c8adc4be527e178597b6bf3294 SHA512 d0a371a4bf19db38b8b0379856a3535c6472e373abd1e9cae0171cffed97005b9fb7b6f7d3d67edc3d67feb5265a9f33d974d6abad8e398148be94566735c2c0 |
36 |
|
37 |
diff --git a/app-misc/elasticsearch/elasticsearch-6.8.19.ebuild b/app-misc/elasticsearch/elasticsearch-6.8.19.ebuild |
38 |
new file mode 100644 |
39 |
index 00000000000..6b347e7957c |
40 |
--- /dev/null |
41 |
+++ b/app-misc/elasticsearch/elasticsearch-6.8.19.ebuild |
42 |
@@ -0,0 +1,88 @@ |
43 |
+# Copyright 1999-2021 Gentoo Authors |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=7 |
47 |
+ |
48 |
+inherit systemd tmpfiles |
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 |
+ newtmpfiles "${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.15.0.ebuild b/app-misc/elasticsearch/elasticsearch-7.15.0.ebuild |
133 |
new file mode 100644 |
134 |
index 00000000000..e2035c21e8f |
135 |
--- /dev/null |
136 |
+++ b/app-misc/elasticsearch/elasticsearch-7.15.0.ebuild |
137 |
@@ -0,0 +1,82 @@ |
138 |
+# Copyright 1999-2021 Gentoo Authors |
139 |
+# Distributed under the terms of the GNU General Public License v2 |
140 |
+ |
141 |
+EAPI=7 |
142 |
+ |
143 |
+inherit systemd tmpfiles |
144 |
+ |
145 |
+DESCRIPTION="Free and Open, Distributed, RESTful Search Engine" |
146 |
+HOMEPAGE="https://www.elastic.co/elasticsearch/" |
147 |
+SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz" |
148 |
+LICENSE="Apache-2.0 BSD-2 Elastic-2.0 LGPL-3 MIT public-domain" |
149 |
+SLOT="0" |
150 |
+KEYWORDS="~amd64" |
151 |
+ |
152 |
+RDEPEND="acct-group/elasticsearch |
153 |
+ acct-user/elasticsearch |
154 |
+ virtual/jre" |
155 |
+ |
156 |
+QA_PREBUILT="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" |
157 |
+QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" |
158 |
+ |
159 |
+src_prepare() { |
160 |
+ default |
161 |
+ |
162 |
+ rm LICENSE.txt NOTICE.txt || die |
163 |
+ rmdir logs || die |
164 |
+} |
165 |
+ |
166 |
+src_install() { |
167 |
+ keepdir /etc/${PN} |
168 |
+ keepdir /etc/${PN}/scripts |
169 |
+ |
170 |
+ insinto /etc/${PN} |
171 |
+ doins -r config/. |
172 |
+ rm -r config || die |
173 |
+ |
174 |
+ fowners root:${PN} /etc/${PN} |
175 |
+ fperms 2750 /etc/${PN} |
176 |
+ |
177 |
+ insinto /usr/share/${PN} |
178 |
+ doins -r . |
179 |
+ |
180 |
+ exeinto /usr/share/${PN}/bin |
181 |
+ doexe "${FILESDIR}/elasticsearch-systemd-pre-exec" |
182 |
+ |
183 |
+ fperms -R +x /usr/share/${PN}/bin |
184 |
+ fperms -R +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin |
185 |
+ |
186 |
+ keepdir /var/{lib,log}/${PN} |
187 |
+ fowners ${PN}:${PN} /var/{lib,log}/${PN} |
188 |
+ fperms 0750 /var/{lib,log}/${PN} |
189 |
+ dodir /usr/share/${PN}/plugins |
190 |
+ |
191 |
+ insinto /etc/sysctl.d |
192 |
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf |
193 |
+ |
194 |
+ newconfd "${FILESDIR}/${PN}.conf.4" ${PN} |
195 |
+ newinitd "${FILESDIR}/${PN}.init.8" ${PN} |
196 |
+ |
197 |
+ systemd_install_serviced "${FILESDIR}/${PN}.service.conf" |
198 |
+ systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service |
199 |
+ |
200 |
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.d ${PN}.conf |
201 |
+} |
202 |
+ |
203 |
+pkg_postinst() { |
204 |
+ tmpfiles_process /usr/lib/tmpfiles.d/${PN}.conf |
205 |
+ |
206 |
+ elog |
207 |
+ elog "You may create multiple instances of ${PN} by" |
208 |
+ elog "symlinking the init script:" |
209 |
+ elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance" |
210 |
+ elog |
211 |
+ elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts" |
212 |
+ elog "from /etc/${PN} into the configuration directory of the instance:" |
213 |
+ elog "/etc/${PN}/instance" |
214 |
+ elog |
215 |
+ ewarn "Please make sure you have proper permissions on /etc/${PN}" |
216 |
+ ewarn "prior to keystore generation or you may experience startup fails." |
217 |
+ ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}" |
218 |
+ ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore" |
219 |
+} |