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