diff options
author | Tomáš Mózes <hydrapolic@gmail.com> | 2017-01-07 07:00:36 +0000 |
---|---|---|
committer | Göktürk Yüksek <gokturk@gentoo.org> | 2017-01-15 12:37:13 -0500 |
commit | 91f36d4c36a3a57c17d7e23e43a0b727e45490b3 (patch) | |
tree | eab78280a6a2a9d856164c6a47b41f80913ab441 /app-misc/elasticsearch | |
parent | media-video/gxine: add missing RDEPEND variable (diff) | |
download | gentoo-91f36d4c36a3a57c17d7e23e43a0b727e45490b3.tar.gz gentoo-91f36d4c36a3a57c17d7e23e43a0b727e45490b3.tar.bz2 gentoo-91f36d4c36a3a57c17d7e23e43a0b727e45490b3.zip |
app-misc/elasticsearch: bump to 2.4.3
Diffstat (limited to 'app-misc/elasticsearch')
-rw-r--r-- | app-misc/elasticsearch/Manifest | 1 | ||||
-rw-r--r-- | app-misc/elasticsearch/elasticsearch-2.4.3.ebuild | 81 | ||||
-rw-r--r-- | app-misc/elasticsearch/files/elasticsearch.init6 | 2 |
3 files changed, 83 insertions, 1 deletions
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest index 8a0068b8586b..3b15d7d9686b 100644 --- a/app-misc/elasticsearch/Manifest +++ b/app-misc/elasticsearch/Manifest @@ -12,6 +12,7 @@ DIST elasticsearch-2.3.4.tar.gz 27547169 SHA256 371e0c5f4ded0a8548f1cce55faff3ef 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 DIST elasticsearch-2.4.1.tar.gz 27364109 SHA256 23a369ef42955c19aaaf9e34891eea3a055ed217d7fbe76da0998a7a54bbe167 SHA512 69b22d5c2fc93e9bc83c5da415e110105d4d977aa98633041f51f8c55ba9e6045803584965367f6e1f962122ad81a8e07fefcc5a01c5381057ec921d65bc1751 WHIRLPOOL 893056d0cd23ae41e2cb9e3db4591108777b4360ad6be5c52782cc98379ab0f0c36b42758f9815fbaf8557c9e06723c03765fd9eb4cbfcf9fe0d3203d8e6039d +DIST elasticsearch-2.4.3.tar.gz 27342693 SHA256 01eb684943be01d4af3131c6795073187b1a5868b6525d9686cc0d7a315db12e SHA512 357a145050ba155d60239f0127e8b772705efcddc9246492d80792c65c613f82a87dd4e4ea4a36c9555a0b5a536a34e2168d57c5b851c36f042f9a52ab3e24a8 WHIRLPOOL 07cd05120ac3bb15cd65b29caca6cc847f0e21cae7ff9a1d1002bcb66a54334c85cfc739e05d8452ba128fb3bdecb6c6cc4726e498f4c9e4e7cb8995c7ea7c2b DIST elasticsearch-5.0.0.tar.gz 32968292 SHA256 a866534f0fa7428e980c985d712024feef1dee04709add6e360fc7b73bb1e7ae SHA512 a4fa650d643c242a1f90059cfe6eb27e3d240b3deafc426abeae72c13aeae84b01ffb8b872b748619dfc58225ca29bde054fe10e1529522f9a06a1051991e4cd WHIRLPOOL a05a6dc785c00bb461ea286490cacc0222f9f95f0dea7ba61c6308cee0284edc53ee0a2047f723e990fa99f7ed09feda46313997b8f6dd487b042a6b26ecf8d6 DIST elasticsearch-5.0.1.tar.gz 32944777 SHA256 542e197485fbcb1aac46097439337d2e9ac6a54b7b1e29ad17761f4d65898833 SHA512 3c4c5a692cc77b01b978d3a02f049fcce36b573b6a2097a9d6714618ec0e6de0583f750516ba461eb1d13386ffad636d8663134452edaaeb2b8889c701316598 WHIRLPOOL d5ceb8e87e36be880f3bf746bfa52f7431d62ff9cd666c9dc64093760474d973ffcad792fd0a5927bef61a8e36c2fced76e03eae42e77eb1d158dcd05579b858 DIST elasticsearch-5.1.1.tar.gz 33291322 SHA256 cd45bafb1f74a7df9bad12c77b7bf3080069266bcbe0b256b0959ef2536e31e8 SHA512 2b5faf97c5ff41a9f12e21749d60f3632b39987d4886713ee9646110acdd17323d263168980d7dd4035732556b604acd68dc37ae7b805d84493075776b9d7bcd WHIRLPOOL ebb46d4a5643f09c0c903055c407a54d46264347924ca37cc73adfee3dd8a9bf2157b1be92b9b1d85636ea92b2d1f89d558c5413c804412996ea9bce42f1c3c6 diff --git a/app-misc/elasticsearch/elasticsearch-2.4.3.ebuild b/app-misc/elasticsearch/elasticsearch-2.4.3.ebuild new file mode 100644 index 000000000000..1f83e9768d30 --- /dev/null +++ b/app-misc/elasticsearch/elasticsearch-2.4.3.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils systemd user + +DESCRIPTION="Open Source, Distributed, RESTful, Search Engine" +HOMEPAGE="https://www.elastic.co/products/elasticsearch" +SRC_URI="https://download.elasticsearch.org/${PN}/release/org/${PN}/distribution/tar/${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 ${PN} + enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN} +} + +src_prepare() { + rm -rf bin/*.{bat,exe} || die + rm LICENSE.txt || die + + default +} + +src_install() { + keepdir /etc/${PN} + dodir /etc/${PN}/scripts + + insinto /etc/${PN} + doins config/* + rm -rf config || die + + insinto /usr/share/${PN} + doins -r ./* + + exeinto /usr/share/${PN}/bin + doexe "${FILESDIR}/elasticsearch-systemd-pre-exec" + + chmod +x "${D}"/usr/share/${PN}/bin/* + + keepdir /var/{lib,log}/${PN} + keepdir /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}.init6" "${PN}" + newconfd "${FILESDIR}/${PN}.conf2" "${PN}" + systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 and logging.yml" + elog "into the configuration directory of the instance:" + elog "/etc/${PN}/instance" + elog + if ! [ -z ${UPDATE_NOTES} ]; then + elog "This update changes some configuration variables. Please review" + elog "${EROOT%/}/etc/conf.d/elasticsearch before restarting your services." + fi +} diff --git a/app-misc/elasticsearch/files/elasticsearch.init6 b/app-misc/elasticsearch/files/elasticsearch.init6 index dd3314880daa..9b11ed61db9d 100644 --- a/app-misc/elasticsearch/files/elasticsearch.init6 +++ b/app-misc/elasticsearch/files/elasticsearch.init6 @@ -21,7 +21,7 @@ fi ES_HOME=${ES_HOME:="/usr/share/elasticsearch"} ES_USER=${ES_USER:="elasticsearch"} ES_GROUP=${ES_GROUP:="elasticsearch"} -ES_GC_LOG_FILE=${ES_GC_LOG_FILE:="${LOG_DIR}/gc.log"} +ES_GC_LOG_FILE=${ES_GC_LOG_FILE:="/dev/null"} MAX_OPEN_FILES=${MAX_OPEN_FILES:=65535} MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144} |