diff options
author | Patrick Lauer <patrick@gentoo.org> | 2016-07-11 11:15:45 +0200 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2016-07-11 11:23:54 +0200 |
commit | 054cc2f38872472a8925bb1493e8bc2909e44a0b (patch) | |
tree | 8702139145831384b7542ee83e595942470f7878 /app-misc | |
parent | net-analyzer/openbsd-netcat: better fix for Darwin (diff) | |
download | gentoo-054cc2f38872472a8925bb1493e8bc2909e44a0b.tar.gz gentoo-054cc2f38872472a8925bb1493e8bc2909e44a0b.tar.bz2 gentoo-054cc2f38872472a8925bb1493e8bc2909e44a0b.zip |
app-misc/elasticsearch: Bump
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/elasticsearch/Manifest | 1 | ||||
-rw-r--r-- | app-misc/elasticsearch/elasticsearch-2.3.4.ebuild | 76 |
2 files changed, 77 insertions, 0 deletions
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest index d2b825340c59..fd794e54d302 100644 --- a/app-misc/elasticsearch/Manifest +++ b/app-misc/elasticsearch/Manifest @@ -8,3 +8,4 @@ DIST elasticsearch-2.3.0.tar.gz 27556947 SHA256 d68482c7633f2986263bc5f11f93b8a5 DIST elasticsearch-2.3.1.tar.gz 27540442 SHA256 f0092e73038e0472fcdd923e5f2792e13692ea0f09ca034a54dd49b217110ebb SHA512 447d8824c4bfbec9b8431d213e3a8ae6720d1486e1389c271cc67cce5546861a817ef8c7db1c3c3669a50a61b5305739ac26f46b04d5674bbca203c3b5dbcf2f WHIRLPOOL e55501ca7fa702c33cd826d51c2d90dcfcc2843fb5b24b2d20df917cc291fe53f203360bfac6249b57c4c2914d92da92ca56b6505b6be885ece196983c176b9c DIST elasticsearch-2.3.2.tar.gz 27543334 SHA256 04c4d3913d496d217e038da88df939108369ae2e78eea29cb1adf1c4ab3a000a SHA512 73c4ca82eb0f4dc22907a94b9025e79183f6fcd38dbb82795800d10fc810dbee412784e62f9247390f0fb9aa19545976584bd2b62f1afe79d2cd64bb55f76dc8 WHIRLPOOL 5cc44a827de5281a9fb823a8a2e43755e0853dc5aa27f5ef7f8d1c5605d80a2dbf4c8756f01811a54307938cb3030634be6c8af2ffa465e2f35cd2a4aabeeb20 DIST elasticsearch-2.3.3.tar.gz 27542289 SHA256 5fe0a6887432bb8a8d3de2e79c9b81c83cfa241e6440f0f0379a686657789165 SHA512 d3899d2f45128d218693ed2a0f9210ec6ce5fe4101d543b46edaaadceeb6768fe3cf04bf161ad09b38629bada74368133727dd735ef11132fffe81aabe0ef88b WHIRLPOOL 5f51b0c1a913a60073c212c9ee06b024b0ca50bbf7857f2ce1883ab51bbb8295c51c1c2d4e7fd98b5dc9db65cd753fd282a0eccf7568fad6608b3529f5e9ea36 +DIST elasticsearch-2.3.4.tar.gz 27547169 SHA256 371e0c5f4ded0a8548f1cce55faff3efebcfd5f895c2c816f220146521f6f06e SHA512 d6b61069b499d2fab1f4102240a5dfd9c0a0806d0cd7047935ef49da669e61066ca37284bd367df96aec79c47417b499988094737bf2e5a6e4c69f682e311bc0 WHIRLPOOL 46311e0a24d64d3b464ba1640b80294ab5ce2ab34a215a48f72a98492c2f07fd878ec99edd36a206b3445c4eebffac7be30e5af140e475ced312a6de2a8d3c06 diff --git a/app-misc/elasticsearch/elasticsearch-2.3.4.ebuild b/app-misc/elasticsearch/elasticsearch-2.3.4.ebuild new file mode 100644 index 000000000000..a0baa8b09d90 --- /dev/null +++ b/app-misc/elasticsearch/elasticsearch-2.3.4.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils systemd user + +MY_PN="${PN%-bin}" +DESCRIPTION="Open Source, Distributed, RESTful, Search Engine" +HOMEPAGE="https://www.elastic.co/products/elasticsearch" +SRC_URI="https://download.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="strip" + +RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )" + +pkg_preinst() { + if has_version '<app-misc/elasticsearch-2.3.2'; then + export UPDATE_NOTES=1 + fi +} + +pkg_setup() { + enewgroup ${MY_PN} + enewuser ${MY_PN} -1 /bin/bash /usr/share/${MY_PN} ${MY_PN} + esethome ${MY_PN} /usr/share/${MY_PN} +} + +src_prepare() { + rm -rf bin/*.{bat,exe} + rm LICENSE.txt +} + +src_install() { + dodir /etc/${MY_PN} + dodir /etc/${MY_PN}/scripts + + insinto /etc/${MY_PN} + doins config/* + rm -rf config + + insinto /usr/share/${MY_PN} + doins -r ./* + + insinto /usr/share/${MY_PN}/bin + doins "${FILESDIR}/elasticsearch-systemd-pre-exec" + + chmod +x "${D}"/usr/share/${MY_PN}/bin/* + + keepdir /var/{lib,log}/${MY_PN} + keepdir /usr/share/${MY_PN}/plugins + + newinitd "${FILESDIR}/elasticsearch.init6" "${MY_PN}" + newconfd "${FILESDIR}/${MY_PN}.conf2" "${MY_PN}" + systemd_newunit "${FILESDIR}"/${PN}.service5 "${PN}.service" +} + +pkg_postinst() { + elog + elog "You may create multiple instances of ${MY_PN} by" + elog "symlinking the init script:" + elog "ln -sf /etc/init.d/${MY_PN} /etc/init.d/${MY_PN}.instance" + elog + elog "Please make sure you put elasticsearch.yml and logging.yml" + elog "into the configuration directory of the instance:" + elog "/etc/${MY_PN}/instance" + elog + if ! [ -z ${UPDATE_NOTES} ]; then + elog "This update changes some configuration variables. Please review" + elog "/etc/conf.d/elasticsearch before restarting your services." + fi +} |