1 |
commit: 62ebb65f99c57b1b849446920d8f88fb4f4bb0e4 |
2 |
Author: Tomas Mozes <tmozes <AT> sygic <DOT> com> |
3 |
AuthorDate: Sun Sep 9 19:59:26 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 9 20:41:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62ebb65f |
7 |
|
8 |
app-misc/elasticsearch: bump to 6.4.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
|
12 |
app-misc/elasticsearch/Manifest | 2 + |
13 |
app-misc/elasticsearch/elasticsearch-6.4.0.ebuild | 91 +++++++++++++++++++++++ |
14 |
2 files changed, 93 insertions(+) |
15 |
|
16 |
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest |
17 |
index 38e95874c94..cbc0dd9f029 100644 |
18 |
--- a/app-misc/elasticsearch/Manifest |
19 |
+++ b/app-misc/elasticsearch/Manifest |
20 |
@@ -2,5 +2,7 @@ DIST elasticsearch-5.6.10.tar.gz 33796721 BLAKE2B 4e9d1d910a70acf32ca63cec811b71 |
21 |
DIST elasticsearch-5.6.11.tar.gz 33864199 BLAKE2B 08884e6367007835ec1d248912d4127ade4d5fff85927df86ee7de4ebf5ee9bc9639940c89b71739cf17fd389d0c47a23cc48ccd1777b94830f1614663fd7487 SHA512 cc0ec89889e23d7aa3e03a2bb76bf6bb40b3084a8a13da99851c4770533048283d36b4c13322b4689480914e5e57c4c998d4abba44d8caa44ffdb21edb207a9c |
22 |
DIST elasticsearch-6.2.4.tar.gz 29056810 BLAKE2B 121be27ac1db4fa6bbe285161b3f2b2dd889859b50f46b57b68ed43514568c4aa9629b5ca32edcc2328a6e7245256d64901c8acc8b2dd91337f8ca97b87c46e1 SHA512 9e6c0de8ed0d9e27fdd18ef7bada376af5a8680bb7a4f4d805926da456b349cee731ba90328b5eda5f0e62fa3f00f34646bf1c2b6c662d055f4be338d0690941 |
23 |
DIST elasticsearch-6.3.2.tar.gz 91452574 BLAKE2B c422990fabad70e6e77e8f59f6fb9e9bf5a84eb7e6b8b67dfd91f53e474b1b501b3a1d5ea8f54f0793631504f194a116e816eb3558782b67c8dadecbc2711ee5 SHA512 954cd1e16a5f2e0b0efaeb7e6b19c708d1588d30814a31defb09037c3b90f78c5e9dbd1ca9af9c700d517145a4279bacc1d8ce7cc6894fbe7bf71eec9ed3110d |
24 |
+DIST elasticsearch-6.4.0.tar.gz 97901357 BLAKE2B 60263c3b68a91fba2341d45162cac328e5561cfe046bcc0dfff3eb09d2e487374c5e8481b460a54861df7b2c5774ac2cc6c884fc6b5455fb40f0c89848c0ad0b SHA512 6f465378a51c487f1f6a84a0843ac1038db60170ee8a5d96874a759f6dbbf2de9f7bcbbf55616f49f28f1098c82f2e585c917267d02b8b1f43627a1984b3da66 |
25 |
DIST elasticsearch-oss-6.3.1.tar.gz 29417012 BLAKE2B 356665cde2f12ae5813d95302398f5fced07c53d25e6e1dc7ad41c8dc8ad42cd3d5bd4ffa6cab24af8088c29800f6ec59a483710272b756af2f76b5967d4b932 SHA512 3df0f7f35e150198f7ff660cf4d90fbd1c2ca587287c6340d427f968711b6390123bfafd09a744c9bdf328d57423bcb75f6e4701ce14a7257388611abea62545 |
26 |
DIST elasticsearch-oss-6.3.2.tar.gz 29418577 BLAKE2B 152640dc01a10f44ba43f87f68361cc0dd5e1cf54d0ff92377f3acd1a12a247f002ffe2d003cc53760e891278249c10b1d6d4eb978b0bb1c1ebf8879a2cfcb9a SHA512 3c51a860414f7e55900b1d9a350bdbc3e673c8445e316454c2480315b4b9fc08df58090c6281cecc3ae63d12d78d6bd58e228b3371aa325db799ce18758a21f4 |
27 |
+DIST elasticsearch-oss-6.4.0.tar.gz 33727061 BLAKE2B dd0ff95bb124103ca340b480c5192c9919ef226d4c3ef1b61accd0df2ee9b60a8215693b3db0fa327a4d6791de66746654144a9172210687e8a2efa9f6f4dde3 SHA512 0197dcf24bdb81cbcfa492d899363528816143962abd1925a5092e8177c25e8ca490afe5868b41057b3cded296f59f38ed11ba0156a820b6c877c69a5888846c |
28 |
|
29 |
diff --git a/app-misc/elasticsearch/elasticsearch-6.4.0.ebuild b/app-misc/elasticsearch/elasticsearch-6.4.0.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..e022c71854f |
32 |
--- /dev/null |
33 |
+++ b/app-misc/elasticsearch/elasticsearch-6.4.0.ebuild |
34 |
@@ -0,0 +1,91 @@ |
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="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz ) |
45 |
+ !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}.tar.gz )" |
46 |
+LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64" |
49 |
+IUSE="x-pack" |
50 |
+ |
51 |
+RDEPEND="virtual/jre:1.8" |
52 |
+ |
53 |
+QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" |
54 |
+ |
55 |
+pkg_setup() { |
56 |
+ enewgroup ${PN} |
57 |
+ enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN} |
58 |
+} |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ |
63 |
+ rm bin/*.{bat,exe} LICENSE.txt NOTICE.txt || die |
64 |
+ rmdir logs || die |
65 |
+ |
66 |
+ if use x-pack; then |
67 |
+ rm bin/x-pack/*.bat || die |
68 |
+ rm -r modules/x-pack/x-pack-ml/platform/{darwin,windows}-x86_64 || die |
69 |
+ fi |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ keepdir /etc/${PN} |
74 |
+ keepdir /etc/${PN}/scripts |
75 |
+ |
76 |
+ insinto /etc/${PN} |
77 |
+ doins -r config/. |
78 |
+ rm -r config || die |
79 |
+ |
80 |
+ fowners root:${PN} /etc/${PN} |
81 |
+ fperms 2750 /etc/${PN} |
82 |
+ |
83 |
+ insinto /usr/share/${PN} |
84 |
+ doins -r . |
85 |
+ |
86 |
+ exeinto /usr/share/${PN}/bin |
87 |
+ doexe "${FILESDIR}/elasticsearch-systemd-pre-exec" |
88 |
+ |
89 |
+ chmod +x "${ED}"/usr/share/${PN}/bin/* || die |
90 |
+ |
91 |
+ if use x-pack; then |
92 |
+ chmod +x "${ED}"/usr/share/${PN}/modules/x-pack/x-pack-ml/platform/linux-x86_64/bin/* || die |
93 |
+ fi |
94 |
+ |
95 |
+ keepdir /var/{lib,log}/${PN} |
96 |
+ fowners ${PN}:${PN} /var/{lib,log}/${PN} |
97 |
+ fperms 0750 /var/{lib,log}/${PN} |
98 |
+ dodir /usr/share/${PN}/plugins |
99 |
+ |
100 |
+ insinto /etc/sysctl.d |
101 |
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf |
102 |
+ |
103 |
+ newconfd "${FILESDIR}/${PN}.conf.3" ${PN} |
104 |
+ newinitd "${FILESDIR}/${PN}.init.5" ${PN} |
105 |
+ |
106 |
+ systemd_install_serviced "${FILESDIR}/${PN}.service.conf" |
107 |
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf |
108 |
+ systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service |
109 |
+} |
110 |
+ |
111 |
+pkg_postinst() { |
112 |
+ elog |
113 |
+ elog "You may create multiple instances of ${PN} by" |
114 |
+ elog "symlinking the init script:" |
115 |
+ elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance" |
116 |
+ elog |
117 |
+ elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts" |
118 |
+ elog "from /etc/${PN} into the configuration directory of the instance:" |
119 |
+ elog "/etc/${PN}/instance" |
120 |
+ elog |
121 |
+ ewarn "Please make sure you have proper permissions on /etc/${PN}" |
122 |
+ ewarn "prior to keystore generation or you may experience startup fails." |
123 |
+ ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}" |
124 |
+ ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore" |
125 |
+} |