commit:     4e8797f962f06bf7769c10873325efc89fb6d785
Author:     Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Fri Oct 13 06:40:00 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Fri Oct 20 07:45:20 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e8797f9

app-misc/elasticsearch: bump to 5.6.3.

Package-Manager: Portage-2.3.11, Repoman-2.3.3
Closes: https://github.com/gentoo/gentoo/pull/5934

 app-misc/elasticsearch/Manifest                   |  1 +
 app-misc/elasticsearch/elasticsearch-5.6.3.ebuild | 67 +++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index 7f225424f1e..1c357f44e20 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,2 +1,3 @@
 DIST elasticsearch-5.5.2.tar.gz 33485703 SHA256 
0870e2c0c72e6eda976effa07aa1cdd06a9500302320b5c22ed292ce21665bf1 SHA512 
62048f15b43e38a61e3a19a1599c25cd0d9009cc1172db5b450b04dec349ecd313b1f20e3d1c7ed1c101ae3e6f6c6d2cdf004a9713ad803576277f93e3adbdb9
 WHIRLPOOL 
3a71cef2858b76b11e1693907e745912a83f23e26c35a3456c6324fc19c317c53d4404e20134b034e41e162c1ea8d58c38bbd4afe0394d886ab32f6b698172ec
 DIST elasticsearch-5.6.2.tar.gz 33766495 SHA256 
ef505373fdd85c762dedef0b067ce7b089e177568a57b31e5b4126d8acd47653 SHA512 
a20cd6607cc9fd94b37c8592b2aaaede4136349d66175581ccba999bc5a64038387680f471fca600afc2b538e4aecbb9d3ee1f82aa327853d072feff2f950319
 WHIRLPOOL 
322999b483f7cd84716efb329542ea59228e93cc0a1ef86d5612230a0637ecff44063e488f48e673ffadda0cbcba026374bb2251de6cc8f6a8ce2699399864a2
+DIST elasticsearch-5.6.3.tar.gz 33774486 SHA256 
492b7e59d5204b3dc7eb13b611c33b3db36b392bdd6a4c004ba99c6543fc28f9 SHA512 
ee57d010e196eb25e5296fe95ab2de5e503d4d66f7eec8c8f6ac2ff9ddbc1a8dc1514202d705e291ee49d3e04650b597a9afc5f92f179b8faa5e2fe3c662f33e
 WHIRLPOOL 
bda081e6b91d1076a39e0af75b44d7f877f28178281de1f22c5177abf804c9395dacabb3c93ec93aff65223df42353bc955bbf60e74fb07f99320096dd97173a

diff --git a/app-misc/elasticsearch/elasticsearch-5.6.3.ebuild 
b/app-misc/elasticsearch/elasticsearch-5.6.3.ebuild
new file mode 100644
index 00000000000..b2ac22fbd6c
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-5.6.3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit systemd user
+
+DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
+HOMEPAGE="https://www.elastic.co/products/elasticsearch";
+SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz";
+LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="virtual/jre:1.8"
+
+pkg_setup() {
+       enewgroup ${PN}
+       enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN}
+}
+
+src_prepare() {
+       rm -v bin/*.{bat,exe} LICENSE.txt || die
+
+       default
+}
+
+src_install() {
+       keepdir /etc/${PN}
+       keepdir /etc/${PN}/scripts
+
+       insinto /etc/${PN}
+       doins config/*
+       rm -rv config || die
+
+       insinto /usr/share/${PN}
+       doins -r ./*
+
+       exeinto /usr/share/${PN}/bin
+       doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
+
+       chmod +x "${ED}"/usr/share/${PN}/bin/* || die
+
+       keepdir /var/{lib,log}/${PN}
+       dodir /usr/share/${PN}/plugins
+
+       systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" "${PN}.conf"
+
+       insinto /etc/sysctl.d
+       newins "${FILESDIR}/${PN}.sysctl.d" "${PN}.conf"
+
+       newinitd "${FILESDIR}/${PN}.init" "${PN}"
+       newconfd "${FILESDIR}/${PN}.conf" "${PN}"
+       systemd_newunit "${FILESDIR}"/${PN}.service "${PN}.service"
+}
+
+pkg_postinst() {
+       elog
+       elog "You may create multiple instances of ${PN} by"
+       elog "symlinking the init script:"
+       elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
+       elog
+       elog "Please make sure you put elasticsearch.yml, log4j2.properties and 
scripts"
+       elog "from /etc/elasticsearch into the configuration directory of the 
instance:"
+       elog "/etc/${PN}/instance"
+       elog
+}

Reply via email to