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, 26 Aug 2022 07:45:02
Message-Id: 1661499887.bf46490b114b19565b09eccb166db5596b8d999d.sam@gentoo
1 commit: bf46490b114b19565b09eccb166db5596b8d999d
2 Author: Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja>
3 AuthorDate: Wed Aug 17 10:13:15 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 26 07:44:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf46490b
7
8 app-misc/elasticsearch: drop 8.2.2
9
10 Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja>
11 Closes: https://github.com/gentoo/gentoo/pull/26895
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 app-misc/elasticsearch/Manifest | 1 -
15 app-misc/elasticsearch/elasticsearch-8.2.2.ebuild | 95 -----------------------
16 2 files changed, 96 deletions(-)
17
18 diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
19 index f5c1c4f77b92..b2d581edf8d1 100644
20 --- a/app-misc/elasticsearch/Manifest
21 +++ b/app-misc/elasticsearch/Manifest
22 @@ -1,3 +1,2 @@
23 DIST elasticsearch-7.17.5-no-jdk-linux-x86_64.tar.gz 167410729 BLAKE2B c6e68176705a1ae2c72a945b2a2b7542f2cb6ebc2420fb52cf26cafdc3045c6f82a5f707062d48142875bf1fbc4be65e473ed9515d65ec25d5a460cc2af991e9 SHA512 d8bc819c9ac5a9035d08e45abf8464275cc2cad7c2f091a3e112100ffbd2605759543e111d9e44c3352f92a08230287c2cba6a91f07ab3d92513682e56b97184
24 -DIST elasticsearch-8.2.2-linux-x86_64.tar.gz 526116807 BLAKE2B bc30d3532bb62bee88fdfc8e3406d32884add3601363d5bf91f66c110e05241beb6b73cf7a2f8104a843628f4841a313ed5bdf3098030eb5e4567c98b69ac703 SHA512 78d1315a47ae9f082297e049320c5a9787aa9fe44cd2967f3ea37ae954ad34aaa29ca7b3210ac96955be2838d0233b7f86a3e0c66d82dda3724753a0c24c78e8
25 DIST elasticsearch-8.3.3-linux-x86_64.tar.gz 539315339 BLAKE2B be786e3a05eb8399cdd168d71edb901ffb08bc6f8a564aebbb8b578fbd628a142c36b2ced540801a60b4d962c48f6be426ae27a0fd4dfb5a99bb022d4fa271b5 SHA512 dca98fc78d55e58cfb48a9abe9276f10d7f104b3a60cc8c6850b093fb12342a7f3f379530476324bf97dc69d68511bb1de97e0aa7bb9aa3e27808dc656305b5f
26
27 diff --git a/app-misc/elasticsearch/elasticsearch-8.2.2.ebuild b/app-misc/elasticsearch/elasticsearch-8.2.2.ebuild
28 deleted file mode 100644
29 index 74c42298df8a..000000000000
30 --- a/app-misc/elasticsearch/elasticsearch-8.2.2.ebuild
31 +++ /dev/null
32 @@ -1,95 +0,0 @@
33 -# Copyright 1999-2022 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=8
37 -
38 -inherit systemd tmpfiles
39 -
40 -DESCRIPTION="Free and Open, Distributed, RESTful Search Engine"
41 -HOMEPAGE="https://www.elastic.co/elasticsearch/"
42 -SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}-linux-x86_64.tar.gz"
43 -
44 -LICENSE="Apache-2.0 BSD-2 Elastic-2.0 LGPL-3 MIT public-domain"
45 -SLOT="0"
46 -KEYWORDS="~amd64"
47 -
48 -DEPEND="acct-group/elasticsearch
49 - acct-user/elasticsearch"
50 -RDEPEND="acct-group/elasticsearch
51 - acct-user/elasticsearch
52 - sys-libs/zlib
53 - virtual/jre:17"
54 -
55 -QA_PREBUILT="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
56 -QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
57 -
58 -PATCHES=(
59 - "${FILESDIR}/${PN}-env.patch"
60 -)
61 -
62 -src_prepare() {
63 - default
64 -
65 - rm -rf jdk || die
66 - sed -i -e "s:logs/:/var/log/${PN}/:g" config/jvm.options || die
67 - rm LICENSE.txt NOTICE.txt || die
68 - rmdir logs || die
69 -}
70 -
71 -src_install() {
72 - keepdir /etc/${PN}
73 - keepdir /etc/${PN}/scripts
74 -
75 - insinto /etc/${PN}
76 - doins -r config/.
77 - rm -r config || die
78 -
79 - fowners -R root:${PN} /etc/${PN}
80 - fperms -R 2750 /etc/${PN}
81 -
82 - insinto /usr/share/${PN}
83 - doins -r .
84 -
85 - keepdir /usr/share/${PN}/plugins
86 -
87 - exeinto /usr/share/${PN}/bin
88 - doexe "${FILESDIR}"/elasticsearch-systemd-pre-exec
89 -
90 - fperms -R +x /usr/share/${PN}/bin
91 - fperms -R +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin
92 -
93 - keepdir /var/{lib,log}/${PN}
94 - fowners ${PN}:${PN} /var/{lib,log}/${PN}
95 - fperms 0750 /var/{lib,log}/${PN}
96 -
97 - insinto /etc/sysctl.d
98 - newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
99 -
100 - newconfd "${FILESDIR}/${PN}.conf.4" ${PN}
101 - newinitd "${FILESDIR}/${PN}.init.8" ${PN}
102 -
103 - systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
104 - systemd_newunit "${FILESDIR}"/${PN}.service.4 ${PN}.service
105 -
106 - newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.d ${PN}.conf
107 -}
108 -
109 -pkg_postinst() {
110 - # Elasticsearch will choke on our keep file and dodir will not preserve the empty dir
111 - rm /usr/share/${PN}/plugins/.keep* || die
112 - tmpfiles_process /usr/lib/tmpfiles.d/${PN}.conf
113 - if ! systemd_is_booted ; then
114 - elog "You may create multiple instances of ${PN} by"
115 - elog "symlinking the init script:"
116 - elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
117 - elog
118 - elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
119 - elog "from /etc/${PN} into the configuration directory of the instance:"
120 - elog "/etc/${PN}/instance"
121 - elog
122 - fi
123 - ewarn "Please make sure you have proper permissions on /etc/${PN}"
124 - ewarn "prior to keystore generation or you may experience startup failures."
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 -}