diff options
author | Patrick Lauer <patrick@gentoo.org> | 2016-09-01 15:58:54 +0200 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2016-09-01 16:12:48 +0200 |
commit | 5591440a07fc19f8ac0b2bf17753273d89f71a83 (patch) | |
tree | 11b64313ec0c8c8f2ad22f8eb262d432419f0128 /app-misc/elasticsearch | |
parent | app-text/krop: Version bump to 0.4.11, add python3 support (diff) | |
download | gentoo-5591440a07fc19f8ac0b2bf17753273d89f71a83.tar.gz gentoo-5591440a07fc19f8ac0b2bf17753273d89f71a83.tar.bz2 gentoo-5591440a07fc19f8ac0b2bf17753273d89f71a83.zip |
app-misc/elasticsearch: Bump
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-misc/elasticsearch')
-rw-r--r-- | app-misc/elasticsearch/Manifest | 1 | ||||
-rw-r--r-- | app-misc/elasticsearch/elasticsearch-2.4.0.ebuild | 82 |
2 files changed, 83 insertions, 0 deletions
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest index 2d440847e644..78bfafc3ca1d 100644 --- a/app-misc/elasticsearch/Manifest +++ b/app-misc/elasticsearch/Manifest @@ -10,3 +10,4 @@ DIST elasticsearch-2.3.2.tar.gz 27543334 SHA256 04c4d3913d496d217e038da88df93910 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 DIST elasticsearch-2.3.5.tar.gz 27547995 SHA256 1119a8c18620b98c4b85261318663a1f26dea92a26f34dfeb7f813fb7cbb468a SHA512 9c0cc8a9ae0fa2b52db583a5c006b05a84c1f84e1b8dbbafa88bec111190d056a23bd384d4241ce00dc8b56a6840857b296e4c0d2bf911f352ef67f128a87ca7 WHIRLPOOL de2aee3773d14c9b4abc0f20c3c8df1fe374a91ea54493f2c1df59fb8c02c97d684fd94b6bfaf140eebcfea4913197b10469b5aef34f62db89d825ae508a5095 +DIST elasticsearch-2.4.0.tar.gz 27364449 SHA256 3ae01140ae7bcbb91436feef381fbed774e36ef6d1e8e6a3153640db82acf4c9 SHA512 931f4d42cba43131718ec7480439b5fda0b9222a51cf9639d99ab4c00bdbedbe7e8da7a6016d88b848772cd416bc49fe7af09202160cecf839e39d803b45e869 WHIRLPOOL e03a2f7a6ea5913ce112b82e8578183c401f2d5901070a77c509ddbe7333fe62622fb2bb3e0f786a914bb15c56793e8b13220ae4588271baa3bbbcdf86223f47 diff --git a/app-misc/elasticsearch/elasticsearch-2.4.0.ebuild b/app-misc/elasticsearch/elasticsearch-2.4.0.ebuild new file mode 100644 index 000000000000..198f14a60170 --- /dev/null +++ b/app-misc/elasticsearch/elasticsearch-2.4.0.ebuild @@ -0,0 +1,82 @@ +# 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 + + insinto /usr/lib/tmpfiles.d + newins "${FILESDIR}/${MY_PN}.tmpfiles.d" "${MY_PN}.conf" + + insinto /etc/sysctl.d + newins "${FILESDIR}/${MY_PN}.sysctl.d" "${MY_PN}.conf" + + 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 +} |