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: Mon, 31 May 2021 08:20:12
Message-Id: 1622448940.aefb0db6fb583fbd361b7ef7c7b0c98e6ab6f0fe.sam@gentoo
1 commit: aefb0db6fb583fbd361b7ef7c7b0c98e6ab6f0fe
2 Author: Ferenc Erki <erkiferenc <AT> gmail <DOT> com>
3 AuthorDate: Sat May 29 18:49:38 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon May 31 08:15:40 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aefb0db6
7
8 app-misc/elasticsearch: drop vulnerable
9
10 Bug: https://bugs.gentoo.org/775059
11 Signed-off-by: Ferenc Erki <erkiferenc <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/21041
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 app-misc/elasticsearch/Manifest | 2 -
16 app-misc/elasticsearch/elasticsearch-7.10.2.ebuild | 86 ----------------------
17 2 files changed, 88 deletions(-)
18
19 diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
20 index 4c19d811a8c..261504866e1 100644
21 --- a/app-misc/elasticsearch/Manifest
22 +++ b/app-misc/elasticsearch/Manifest
23 @@ -1,6 +1,4 @@
24 DIST elasticsearch-6.8.15.tar.gz 149102328 BLAKE2B 0ce9ba565d751cd27721f3d49dd24761937c3476cee4896ba1a4d84e4fc238296129481f18cad64270fe8af71a043c2e8e583df14f2a084850fb10c93fcea0ef SHA512 c62c4d9d1bb83e10d3e1079f56b834f2f89b1f712c29d9ce7e81786199c71d287ecbf6df158eca56a7af711eafe13dfb276e12b34e1a0a6cf6719e1fbb44a142
25 -DIST elasticsearch-7.10.2-no-jdk-linux-x86_64.tar.gz 164380146 BLAKE2B 16797ed48c4cb6f91ed891014f275ad86a4852579232df1827413389fc9e505327412729f70783750252190a34b0e0d552ec0b5f25f3d0a811724191eccc6568 SHA512 bd3def00af04670ad04556c911ef8c68b639e1c3b621f36a8973d9700f95873d10bc706a4e3a98f892ac59c1b761d56035a236068d6958af772874e428940dc4
26 DIST elasticsearch-7.12.0-no-jdk-linux-x86_64.tar.gz 173069694 BLAKE2B 5de74b1e6de743246cf48e32254f9646fa25c2820d0be9df886fdefe131a302ddb8906546147f0d284e2fc0faf8cc0238bf854fe1611d28bf1e7cb1518bd4e31 SHA512 205aa2a2fa2ab7eb7b54087420e0123aa97e5456e2e1f31cad9ea7b84be3f9823a2a7c47d4cf1697833e5f795359477d3a3b0ea4955a8f92583cf2228071827e
27 DIST elasticsearch-7.12.1-no-jdk-linux-x86_64.tar.gz 173079845 BLAKE2B 98214508c2c1dcb631f59d9e51d5949f9a7c5d1f68ff78c8d93af04c6a21fa1e1c6e2051f04bbdb8154443d6295ad54af2016695fcb9193b7595e1486777ba98 SHA512 c91fd66668977280d7339caf6b4fef9fce5640492f0e2a65bc537c6da8397c801a3727f1ff56b7a1591b11ea47195720c588a4eba473043f829a87cd3dcc0af4
28 DIST elasticsearch-oss-6.8.15.tar.gz 68240776 BLAKE2B 431d845e02f2118a98021af4422ece34274b6d0811a32c5a3e679da3f8f56ca9cd45949307268811edbb83327a4a80fb84866cbbaaf01f7d3af042412b1e1bfa SHA512 7e6a819339ac6043af218f9d97d5d68c50ac46900e4293e7fa18992f7a50b10b0ab2434e26ff0dc1546204ae7526de8ac6ef6545fc0db9c862ceeaa0d96c56f5
29 -DIST elasticsearch-oss-7.10.2-no-jdk-linux-x86_64.tar.gz 76383466 BLAKE2B e99c04b0d10ef5755986515c7127ebde00b58e0eba69b6a05e12bd0bffee70266bbb023680584bfe0f321d5a3cf79af89cce3a5191923ad721a9f6039ab82743 SHA512 7b63237996569ccdc7c9d9e7cc097fcb23865396eddac30e5f02543484220d2fc70a7285b430877e5e76a5d8716d9682de9fc40d5e57a08f331e82011fc59756
30
31 diff --git a/app-misc/elasticsearch/elasticsearch-7.10.2.ebuild b/app-misc/elasticsearch/elasticsearch-7.10.2.ebuild
32 deleted file mode 100644
33 index 826ad97256d..00000000000
34 --- a/app-misc/elasticsearch/elasticsearch-7.10.2.ebuild
35 +++ /dev/null
36 @@ -1,86 +0,0 @@
37 -# Copyright 1999-2020 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=7
41 -
42 -inherit systemd tmpfiles
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}-no-jdk-linux-x86_64.tar.gz )
47 - !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}-no-jdk-linux-x86_64.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="acct-group/elasticsearch
54 - acct-user/elasticsearch
55 - virtual/jre"
56 -
57 -QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
58 -
59 -src_prepare() {
60 - default
61 -
62 - rm LICENSE.txt NOTICE.txt || die
63 - rmdir logs || die
64 -}
65 -
66 -src_install() {
67 - keepdir /etc/${PN}
68 - keepdir /etc/${PN}/scripts
69 -
70 - insinto /etc/${PN}
71 - doins -r config/.
72 - rm -r config || die
73 -
74 - fowners root:${PN} /etc/${PN}
75 - fperms 2750 /etc/${PN}
76 -
77 - insinto /usr/share/${PN}
78 - doins -r .
79 -
80 - exeinto /usr/share/${PN}/bin
81 - doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
82 -
83 - fperms -R +x /usr/share/${PN}/bin
84 -
85 - if use x-pack; then
86 - fperms -R +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin
87 - fi
88 -
89 - keepdir /var/{lib,log}/${PN}
90 - fowners ${PN}:${PN} /var/{lib,log}/${PN}
91 - fperms 0750 /var/{lib,log}/${PN}
92 - dodir /usr/share/${PN}/plugins
93 -
94 - insinto /etc/sysctl.d
95 - newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
96 -
97 - newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
98 - newinitd "${FILESDIR}/${PN}.init.7" ${PN}
99 -
100 - systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
101 - systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service
102 -
103 - newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.d ${PN}.conf
104 -}
105 -
106 -pkg_postinst() {
107 - tmpfiles_process /usr/lib/tmpfiles.d/${PN}.conf
108 -
109 - elog
110 - elog "You may create multiple instances of ${PN} by"
111 - elog "symlinking the init script:"
112 - elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
113 - elog
114 - elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
115 - elog "from /etc/${PN} into the configuration directory of the instance:"
116 - elog "/etc/${PN}/instance"
117 - elog
118 - ewarn "Please make sure you have proper permissions on /etc/${PN}"
119 - ewarn "prior to keystore generation or you may experience startup fails."
120 - ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
121 - ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
122 -}