Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/
Date: Wed, 31 Jan 2018 21:56:09
Message-Id: 1517435733.77c24ee54fba517521919c21e7bf9478c4d4332f.mgorny@gentoo
1 commit: 77c24ee54fba517521919c21e7bf9478c4d4332f
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Mon Jan 29 07:58:46 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 31 21:55:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77c24ee5
7
8 app-misc/elasticsearch: bump to 5.6.6/6.1.2
9
10 Package-Manager: Portage-2.3.20, Repoman-2.3.6
11
12 app-misc/elasticsearch/Manifest | 2 +
13 app-misc/elasticsearch/elasticsearch-5.6.6.ebuild | 69 +++++++++++++++++++++++
14 app-misc/elasticsearch/elasticsearch-6.1.2.ebuild | 69 +++++++++++++++++++++++
15 3 files changed, 140 insertions(+)
16
17 diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
18 index 15417d6ba11..e92ed48bab8 100644
19 --- a/app-misc/elasticsearch/Manifest
20 +++ b/app-misc/elasticsearch/Manifest
21 @@ -1,4 +1,6 @@
22 DIST elasticsearch-1.7.6.tar.gz 28488767 BLAKE2B 0dc4fb10355e2139ee3a7e7e65366e8aa533b9714bf0f00d2bd8f4ef0669ba9f8f10dc5255c8c7a62abc0362e08ab5fda3c8b6b6f2bacfe5cce7255973293162 SHA512 2746f09b66919912e785c8d25c50ae74dbb38a41d99d9c926550786f9c2d7953d1ae1a54a32dae59a7269e5fbfa74dfbc91c3d412e415efd01c391ef7d329ba7
23 DIST elasticsearch-5.5.3.tar.gz 33486646 BLAKE2B 4f28d843b2daa73af1160436f9eedd20b9d91ee8d4454a210ad59c736c0ac0bd91384d972583d4de7e7dbc228b3e37546343da68545312333379298042ad8214 SHA512 013e238a3ccdb795b9472a6111ae804b770435776dfb703b379c34498591d3804e45fb27a7c473348917b4d9e6fde367184474680f1f72bbca129bf9644fb527
24 DIST elasticsearch-5.6.5.tar.gz 33780822 BLAKE2B 0541e27d7d9d18ec308495ab1cfb65c8f8e79960ef5d110ef5194a4033301b858a676c8c4d61f246e01ebc5679280c3eafe628e22ccfd84de9129f7a4606a041 SHA512 c3f31f561631c3f8df53cb49ac9a86dff3bcaa9e3ea2ac67dd959900ec1ddf676d307c9d8319ac51062072e506994934c61395049f6a6eac67e377d53517103f
25 +DIST elasticsearch-5.6.6.tar.gz 33780290 BLAKE2B ce4014b8eb74098990d97d7d87a0bd88df06f6719772f310c97cc33e740f44e84ebf74750c1f81b77c713c661a0e2e9ca826b6ab91b3625023fb9a061005d8ef SHA512 582fc3c2d1dcd5c208c229307ce387015ef8b25d9974fcac9ad4b8b3bc1c983a27daa171f0f242d367cc0776c545a82c5a4c07f6340104e739d83831e0d2210c
26 DIST elasticsearch-6.0.1.tar.gz 28026460 BLAKE2B a70cd36affaccccf1ea552167e585a35cc748de1137cf4b23387798ae31b851104ccc19f8be83ecc645bcebfba344b5e55a397a9cbb0b380c4a118f1f0ffecf2 SHA512 b86a04acd194e7e96e3a32de6ab4983d6569ffb1714f2af9e2b49623004987e13e57c5db055153a188f5d2d7eea63d649fa87769f7625f3fc4923e0cd5b8f3ee
27 +DIST elasticsearch-6.1.2.tar.gz 28455845 BLAKE2B 36215cf3131c8ac24e9b974d6c12892679e1896242119bf88182a229286a8391fc9575b068c6e692b9931022df299920fdc5dbf8f04651bd4bcfd544c1b65b2e SHA512 c72e69700b60faf3b1a542c2317b83189926738affb38033c4b8d7cc0a1b3c21c4f743f441fb10657d4684111746ebb18c9dba2f54845ea6e02e4fb8dc950e5a
28
29 diff --git a/app-misc/elasticsearch/elasticsearch-5.6.6.ebuild b/app-misc/elasticsearch/elasticsearch-5.6.6.ebuild
30 new file mode 100644
31 index 00000000000..26cfa98675c
32 --- /dev/null
33 +++ b/app-misc/elasticsearch/elasticsearch-5.6.6.ebuild
34 @@ -0,0 +1,69 @@
35 +# Copyright 1999-2018 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit systemd user
41 +
42 +DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
43 +HOMEPAGE="https://www.elastic.co/products/elasticsearch"
44 +SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz"
45 +LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +
49 +RDEPEND="virtual/jre:1.8"
50 +
51 +pkg_setup() {
52 + enewgroup ${PN}
53 + enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN}
54 +}
55 +
56 +src_prepare() {
57 + default
58 +
59 + rm -v bin/*.{bat,exe} LICENSE.txt || die
60 +}
61 +
62 +src_install() {
63 + keepdir /etc/${PN}
64 + keepdir /etc/${PN}/scripts
65 +
66 + insinto /etc/${PN}
67 + doins -r config/.
68 + rm -rv config || die
69 +
70 + insinto /usr/share/${PN}
71 + doins -r .
72 +
73 + exeinto /usr/share/${PN}/bin
74 + doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
75 +
76 + chmod +x "${ED}"/usr/share/${PN}/bin/* || die
77 +
78 + keepdir /var/{lib,log}/${PN}
79 + fowners ${PN}:${PN} /var/{lib,log}/${PN}
80 + fperms 0750 /var/{lib,log}/${PN}
81 + dodir /usr/share/${PN}/plugins
82 +
83 + insinto /etc/sysctl.d
84 + newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
85 +
86 + newconfd "${FILESDIR}/${PN}.conf.2" ${PN}
87 + newinitd "${FILESDIR}/${PN}.init.2" ${PN}
88 +
89 + systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
90 + systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service
91 +}
92 +
93 +pkg_postinst() {
94 + elog
95 + elog "You may create multiple instances of ${PN} by"
96 + elog "symlinking the init script:"
97 + elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
98 + elog
99 + elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
100 + elog "from /etc/elasticsearch into the configuration directory of the instance:"
101 + elog "/etc/${PN}/instance"
102 + elog
103 +}
104
105 diff --git a/app-misc/elasticsearch/elasticsearch-6.1.2.ebuild b/app-misc/elasticsearch/elasticsearch-6.1.2.ebuild
106 new file mode 100644
107 index 00000000000..4a1d5418c70
108 --- /dev/null
109 +++ b/app-misc/elasticsearch/elasticsearch-6.1.2.ebuild
110 @@ -0,0 +1,69 @@
111 +# Copyright 1999-2018 Gentoo Foundation
112 +# Distributed under the terms of the GNU General Public License v2
113 +
114 +EAPI=6
115 +
116 +inherit systemd user
117 +
118 +DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
119 +HOMEPAGE="https://www.elastic.co/products/elasticsearch"
120 +SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz"
121 +LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain"
122 +SLOT="0"
123 +KEYWORDS="~amd64"
124 +
125 +RDEPEND="virtual/jre:1.8"
126 +
127 +pkg_setup() {
128 + enewgroup ${PN}
129 + enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN}
130 +}
131 +
132 +src_prepare() {
133 + default
134 +
135 + rm -v bin/*.{bat,exe} LICENSE.txt || die
136 +}
137 +
138 +src_install() {
139 + keepdir /etc/${PN}
140 + keepdir /etc/${PN}/scripts
141 +
142 + insinto /etc/${PN}
143 + doins -r config/.
144 + rm -rv config || die
145 +
146 + insinto /usr/share/${PN}
147 + doins -r .
148 +
149 + exeinto /usr/share/${PN}/bin
150 + doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
151 +
152 + chmod +x "${ED}"/usr/share/${PN}/bin/* || die
153 +
154 + keepdir /var/{lib,log}/${PN}
155 + fowners ${PN}:${PN} /var/{lib,log}/${PN}
156 + fperms 0750 /var/{lib,log}/${PN}
157 + dodir /usr/share/${PN}/plugins
158 +
159 + insinto /etc/sysctl.d
160 + newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
161 +
162 + newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
163 + newinitd "${FILESDIR}/${PN}.init.3" ${PN}
164 +
165 + systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
166 + systemd_newunit "${FILESDIR}"/${PN}.service.2 ${PN}.service
167 +}
168 +
169 +pkg_postinst() {
170 + elog
171 + elog "You may create multiple instances of ${PN} by"
172 + elog "symlinking the init script:"
173 + elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
174 + elog
175 + elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
176 + elog "from /etc/elasticsearch into the configuration directory of the instance:"
177 + elog "/etc/${PN}/instance"
178 + elog
179 +}