1 |
commit: 345f5c25b61a107b4c6f2115ad722905564e9f58 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Sep 21 08:05:51 2017 +0000 |
4 |
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 21 15:05:11 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=345f5c25 |
7 |
|
8 |
app-misc/elasticsearch: bump to 5.6.1 |
9 |
|
10 |
Closes:#5745 |
11 |
|
12 |
Package-Manager: Portage-2.3.10, Repoman-2.3.2 |
13 |
|
14 |
app-misc/elasticsearch/Manifest | 1 + |
15 |
app-misc/elasticsearch/elasticsearch-5.6.1.ebuild | 67 +++++++++++++++++++++++ |
16 |
2 files changed, 68 insertions(+) |
17 |
|
18 |
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest |
19 |
index f9a39b4bc0e..d9689531786 100644 |
20 |
--- a/app-misc/elasticsearch/Manifest |
21 |
+++ b/app-misc/elasticsearch/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST elasticsearch-5.5.2.tar.gz 33485703 SHA256 0870e2c0c72e6eda976effa07aa1cdd06a9500302320b5c22ed292ce21665bf1 SHA512 62048f15b43e38a61e3a19a1599c25cd0d9009cc1172db5b450b04dec349ecd313b1f20e3d1c7ed1c101ae3e6f6c6d2cdf004a9713ad803576277f93e3adbdb9 WHIRLPOOL 3a71cef2858b76b11e1693907e745912a83f23e26c35a3456c6324fc19c317c53d4404e20134b034e41e162c1ea8d58c38bbd4afe0394d886ab32f6b698172ec |
24 |
+DIST elasticsearch-5.6.1.tar.gz 33747853 SHA256 006f9cb3886877df845e3c3dea8a688777fb739a862d3afe1a113c16a732715f SHA512 be4ec7b16628bcf217ccf2035399a0729f4a46a2243fdb070535b1e36169fe31f36f1f78d7aa54e44c411b2f33bf76eb5833b2531339c2f040407774990986aa WHIRLPOOL ef12806fd3f00738f8544893ff895174a8af5891c730c1dd308e5537bee23ead429f14448ba0cbfe13766393b88593eb07cd1a7144485b105877cf8d7e84ccd5 |
25 |
|
26 |
diff --git a/app-misc/elasticsearch/elasticsearch-5.6.1.ebuild b/app-misc/elasticsearch/elasticsearch-5.6.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..b2ac22fbd6c |
29 |
--- /dev/null |
30 |
+++ b/app-misc/elasticsearch/elasticsearch-5.6.1.ebuild |
31 |
@@ -0,0 +1,67 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit systemd user |
38 |
+ |
39 |
+DESCRIPTION="Open Source, Distributed, RESTful, Search Engine" |
40 |
+HOMEPAGE="https://www.elastic.co/products/elasticsearch" |
41 |
+SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz" |
42 |
+LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64" |
45 |
+ |
46 |
+RDEPEND="virtual/jre:1.8" |
47 |
+ |
48 |
+pkg_setup() { |
49 |
+ enewgroup ${PN} |
50 |
+ enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN} |
51 |
+} |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ rm -v bin/*.{bat,exe} LICENSE.txt || die |
55 |
+ |
56 |
+ default |
57 |
+} |
58 |
+ |
59 |
+src_install() { |
60 |
+ keepdir /etc/${PN} |
61 |
+ keepdir /etc/${PN}/scripts |
62 |
+ |
63 |
+ insinto /etc/${PN} |
64 |
+ doins config/* |
65 |
+ rm -rv config || die |
66 |
+ |
67 |
+ insinto /usr/share/${PN} |
68 |
+ doins -r ./* |
69 |
+ |
70 |
+ exeinto /usr/share/${PN}/bin |
71 |
+ doexe "${FILESDIR}/elasticsearch-systemd-pre-exec" |
72 |
+ |
73 |
+ chmod +x "${ED}"/usr/share/${PN}/bin/* || die |
74 |
+ |
75 |
+ keepdir /var/{lib,log}/${PN} |
76 |
+ dodir /usr/share/${PN}/plugins |
77 |
+ |
78 |
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" "${PN}.conf" |
79 |
+ |
80 |
+ insinto /etc/sysctl.d |
81 |
+ newins "${FILESDIR}/${PN}.sysctl.d" "${PN}.conf" |
82 |
+ |
83 |
+ newinitd "${FILESDIR}/${PN}.init" "${PN}" |
84 |
+ newconfd "${FILESDIR}/${PN}.conf" "${PN}" |
85 |
+ systemd_newunit "${FILESDIR}"/${PN}.service "${PN}.service" |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ elog |
90 |
+ elog "You may create multiple instances of ${PN} by" |
91 |
+ elog "symlinking the init script:" |
92 |
+ elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance" |
93 |
+ elog |
94 |
+ elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts" |
95 |
+ elog "from /etc/elasticsearch into the configuration directory of the instance:" |
96 |
+ elog "/etc/${PN}/instance" |
97 |
+ elog |
98 |
+} |