Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/
Date: Tue, 02 Oct 2018 09:40:22
Message-Id: 1538473055.150ca4f443b124c64aa9e3c446d7d4dda98569b1.whissi@gentoo
1 commit: 150ca4f443b124c64aa9e3c446d7d4dda98569b1
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Fri Sep 28 11:24:31 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 2 09:37:35 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=150ca4f4
7
8 app-misc/elasticsearch: bump to 6.4.1
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Package-Manager: Portage-2.3.50, Repoman-2.3.11
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 app-misc/elasticsearch/Manifest | 2 +
15 app-misc/elasticsearch/elasticsearch-6.4.1.ebuild | 91 +++++++++++++++++++++++
16 2 files changed, 93 insertions(+)
17
18 diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
19 index 344520433f1..23f941474c4 100644
20 --- a/app-misc/elasticsearch/Manifest
21 +++ b/app-misc/elasticsearch/Manifest
22 @@ -2,5 +2,7 @@ DIST elasticsearch-5.6.11.tar.gz 33864199 BLAKE2B 08884e6367007835ec1d248912d412
23 DIST elasticsearch-5.6.12.tar.gz 33861038 BLAKE2B 548513d568ffad6373f15671934cce84217d59b8a036847685ad055681f816d3a75fb6ba2c60c7965402e791d6f5b1a11fe8918bca9f4a60fb8e9d43809da0a2 SHA512 bc2436ff34bca652f6a6462920921dce3b085300787e02191c0673d7b3789c0cf81681108573f0ec4dc945e91a2e6ae19898d1b606ca35694bfde6d9cd5762cd
24 DIST elasticsearch-6.3.2.tar.gz 91452574 BLAKE2B c422990fabad70e6e77e8f59f6fb9e9bf5a84eb7e6b8b67dfd91f53e474b1b501b3a1d5ea8f54f0793631504f194a116e816eb3558782b67c8dadecbc2711ee5 SHA512 954cd1e16a5f2e0b0efaeb7e6b19c708d1588d30814a31defb09037c3b90f78c5e9dbd1ca9af9c700d517145a4279bacc1d8ce7cc6894fbe7bf71eec9ed3110d
25 DIST elasticsearch-6.4.0.tar.gz 97901357 BLAKE2B 60263c3b68a91fba2341d45162cac328e5561cfe046bcc0dfff3eb09d2e487374c5e8481b460a54861df7b2c5774ac2cc6c884fc6b5455fb40f0c89848c0ad0b SHA512 6f465378a51c487f1f6a84a0843ac1038db60170ee8a5d96874a759f6dbbf2de9f7bcbbf55616f49f28f1098c82f2e585c917267d02b8b1f43627a1984b3da66
26 +DIST elasticsearch-6.4.1.tar.gz 97924081 BLAKE2B 179433ebe9fca80517057a0379d67545bfd42af741ca64fc2e5b307f9071634d20f297c46d43cfbcfa8dcc45f269c5db32b70656bd4c3035a47aacae861875a2 SHA512 a023a6db5554dee6f10718dfa297aa06a735c7857542c2db80fa5c2b86ff4bf405bb8167578c5b60741ad05ed96a64b54bc71d128a0ff955468b0449588b053c
27 DIST elasticsearch-oss-6.3.2.tar.gz 29418577 BLAKE2B 152640dc01a10f44ba43f87f68361cc0dd5e1cf54d0ff92377f3acd1a12a247f002ffe2d003cc53760e891278249c10b1d6d4eb978b0bb1c1ebf8879a2cfcb9a SHA512 3c51a860414f7e55900b1d9a350bdbc3e673c8445e316454c2480315b4b9fc08df58090c6281cecc3ae63d12d78d6bd58e228b3371aa325db799ce18758a21f4
28 DIST elasticsearch-oss-6.4.0.tar.gz 33727061 BLAKE2B dd0ff95bb124103ca340b480c5192c9919ef226d4c3ef1b61accd0df2ee9b60a8215693b3db0fa327a4d6791de66746654144a9172210687e8a2efa9f6f4dde3 SHA512 0197dcf24bdb81cbcfa492d899363528816143962abd1925a5092e8177c25e8ca490afe5868b41057b3cded296f59f38ed11ba0156a820b6c877c69a5888846c
29 +DIST elasticsearch-oss-6.4.1.tar.gz 33725674 BLAKE2B e24809eab213aa34499dcfb1e9a9a2b37d85346d4647282de51c95b17f0ae693f9b48e1649658d700ed8e3d547fd22b5f2276c3b4a2b78aa6c129b8bd1eb096b SHA512 5036adbb091dff95416f4f4b24f615475d7c8c058fcda733ec49a9867b7dafcb90c430f486c667cdc30958280814e609c3f0bc49c20bdb06c0a22d01504a3873
30
31 diff --git a/app-misc/elasticsearch/elasticsearch-6.4.1.ebuild b/app-misc/elasticsearch/elasticsearch-6.4.1.ebuild
32 new file mode 100644
33 index 00000000000..52da0c6d635
34 --- /dev/null
35 +++ b/app-misc/elasticsearch/elasticsearch-6.4.1.ebuild
36 @@ -0,0 +1,91 @@
37 +# Copyright 1999-2018 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +inherit systemd user
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}.tar.gz )
47 + !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}.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="virtual/jre:1.8"
54 +
55 +QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
56 +
57 +pkg_setup() {
58 + enewgroup ${PN}
59 + enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN}
60 +}
61 +
62 +src_prepare() {
63 + default
64 +
65 + rm bin/*.{bat,exe} LICENSE.txt NOTICE.txt || die
66 + rmdir logs || die
67 +
68 + if use x-pack; then
69 + rm bin/x-pack/*.bat || die
70 + rm -r modules/x-pack-ml/platform/{darwin,windows}-x86_64 || die
71 + fi
72 +}
73 +
74 +src_install() {
75 + keepdir /etc/${PN}
76 + keepdir /etc/${PN}/scripts
77 +
78 + insinto /etc/${PN}
79 + doins -r config/.
80 + rm -r config || die
81 +
82 + fowners root:${PN} /etc/${PN}
83 + fperms 2750 /etc/${PN}
84 +
85 + insinto /usr/share/${PN}
86 + doins -r .
87 +
88 + exeinto /usr/share/${PN}/bin
89 + doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
90 +
91 + chmod +x "${ED}"/usr/share/${PN}/bin/* || die
92 +
93 + if use x-pack; then
94 + chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die
95 + fi
96 +
97 + keepdir /var/{lib,log}/${PN}
98 + fowners ${PN}:${PN} /var/{lib,log}/${PN}
99 + fperms 0750 /var/{lib,log}/${PN}
100 + dodir /usr/share/${PN}/plugins
101 +
102 + insinto /etc/sysctl.d
103 + newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
104 +
105 + newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
106 + newinitd "${FILESDIR}/${PN}.init.5" ${PN}
107 +
108 + systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
109 + systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
110 + systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service
111 +}
112 +
113 +pkg_postinst() {
114 + elog
115 + elog "You may create multiple instances of ${PN} by"
116 + elog "symlinking the init script:"
117 + elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
118 + elog
119 + elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
120 + elog "from /etc/${PN} into the configuration directory of the instance:"
121 + elog "/etc/${PN}/instance"
122 + elog
123 + ewarn "Please make sure you have proper permissions on /etc/${PN}"
124 + ewarn "prior to keystore generation or you may experience startup fails."
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 +}