1 |
commit: 350b6d368f04134e6815e7ba1f3bdd95332dfb49 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Sep 28 11:23:47 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 2 09:37:04 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=350b6d36 |
7 |
|
8 |
app-misc/elasticsearch: bump to 5.6.12 |
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 | 1 + |
15 |
app-misc/elasticsearch/elasticsearch-5.6.12.ebuild | 69 ++++++++++++++++++++++ |
16 |
2 files changed, 70 insertions(+) |
17 |
|
18 |
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest |
19 |
index d91a6e667d4..344520433f1 100644 |
20 |
--- a/app-misc/elasticsearch/Manifest |
21 |
+++ b/app-misc/elasticsearch/Manifest |
22 |
@@ -1,4 +1,5 @@ |
23 |
DIST elasticsearch-5.6.11.tar.gz 33864199 BLAKE2B 08884e6367007835ec1d248912d4127ade4d5fff85927df86ee7de4ebf5ee9bc9639940c89b71739cf17fd389d0c47a23cc48ccd1777b94830f1614663fd7487 SHA512 cc0ec89889e23d7aa3e03a2bb76bf6bb40b3084a8a13da99851c4770533048283d36b4c13322b4689480914e5e57c4c998d4abba44d8caa44ffdb21edb207a9c |
24 |
+DIST elasticsearch-5.6.12.tar.gz 33861038 BLAKE2B 548513d568ffad6373f15671934cce84217d59b8a036847685ad055681f816d3a75fb6ba2c60c7965402e791d6f5b1a11fe8918bca9f4a60fb8e9d43809da0a2 SHA512 bc2436ff34bca652f6a6462920921dce3b085300787e02191c0673d7b3789c0cf81681108573f0ec4dc945e91a2e6ae19898d1b606ca35694bfde6d9cd5762cd |
25 |
DIST elasticsearch-6.3.2.tar.gz 91452574 BLAKE2B c422990fabad70e6e77e8f59f6fb9e9bf5a84eb7e6b8b67dfd91f53e474b1b501b3a1d5ea8f54f0793631504f194a116e816eb3558782b67c8dadecbc2711ee5 SHA512 954cd1e16a5f2e0b0efaeb7e6b19c708d1588d30814a31defb09037c3b90f78c5e9dbd1ca9af9c700d517145a4279bacc1d8ce7cc6894fbe7bf71eec9ed3110d |
26 |
DIST elasticsearch-6.4.0.tar.gz 97901357 BLAKE2B 60263c3b68a91fba2341d45162cac328e5561cfe046bcc0dfff3eb09d2e487374c5e8481b460a54861df7b2c5774ac2cc6c884fc6b5455fb40f0c89848c0ad0b SHA512 6f465378a51c487f1f6a84a0843ac1038db60170ee8a5d96874a759f6dbbf2de9f7bcbbf55616f49f28f1098c82f2e585c917267d02b8b1f43627a1984b3da66 |
27 |
DIST elasticsearch-oss-6.3.2.tar.gz 29418577 BLAKE2B 152640dc01a10f44ba43f87f68361cc0dd5e1cf54d0ff92377f3acd1a12a247f002ffe2d003cc53760e891278249c10b1d6d4eb978b0bb1c1ebf8879a2cfcb9a SHA512 3c51a860414f7e55900b1d9a350bdbc3e673c8445e316454c2480315b4b9fc08df58090c6281cecc3ae63d12d78d6bd58e228b3371aa325db799ce18758a21f4 |
28 |
|
29 |
diff --git a/app-misc/elasticsearch/elasticsearch-5.6.12.ebuild b/app-misc/elasticsearch/elasticsearch-5.6.12.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..32370ac9f8a |
32 |
--- /dev/null |
33 |
+++ b/app-misc/elasticsearch/elasticsearch-5.6.12.ebuild |
34 |
@@ -0,0 +1,69 @@ |
35 |
+# Copyright 1999-2018 Gentoo Authors |
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 |
+} |