From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B7E611396D0 for ; Thu, 21 Sep 2017 15:05:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7FA3E07F6; Thu, 21 Sep 2017 15:05:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B3E22E07F6 for ; Thu, 21 Sep 2017 15:05:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8769D341683 for ; Thu, 21 Sep 2017 15:05:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6909D8F83 for ; Thu, 21 Sep 2017 15:05:39 +0000 (UTC) From: "Amy Liffey" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Amy Liffey" Message-ID: <1506006311.345f5c25b61a107b4c6f2115ad722905564e9f58.amynka@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/elasticsearch/Manifest app-misc/elasticsearch/elasticsearch-5.6.1.ebuild X-VCS-Directories: app-misc/elasticsearch/ X-VCS-Committer: amynka X-VCS-Committer-Name: Amy Liffey X-VCS-Revision: 345f5c25b61a107b4c6f2115ad722905564e9f58 X-VCS-Branch: master Date: Thu, 21 Sep 2017 15:05:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c1726b84-9cee-4302-9317-efd5d6e087ad X-Archives-Hash: 152498ff4fcdeefe2c66f05f3a942e08 commit: 345f5c25b61a107b4c6f2115ad722905564e9f58 Author: Tomas Mozes gmail com> AuthorDate: Thu Sep 21 08:05:51 2017 +0000 Commit: Amy Liffey gentoo org> CommitDate: Thu Sep 21 15:05:11 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=345f5c25 app-misc/elasticsearch: bump to 5.6.1 Closes:#5745 Package-Manager: Portage-2.3.10, Repoman-2.3.2 app-misc/elasticsearch/Manifest | 1 + app-misc/elasticsearch/elasticsearch-5.6.1.ebuild | 67 +++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest index f9a39b4bc0e..d9689531786 100644 --- a/app-misc/elasticsearch/Manifest +++ b/app-misc/elasticsearch/Manifest @@ -1 +1,2 @@ DIST elasticsearch-5.5.2.tar.gz 33485703 SHA256 0870e2c0c72e6eda976effa07aa1cdd06a9500302320b5c22ed292ce21665bf1 SHA512 62048f15b43e38a61e3a19a1599c25cd0d9009cc1172db5b450b04dec349ecd313b1f20e3d1c7ed1c101ae3e6f6c6d2cdf004a9713ad803576277f93e3adbdb9 WHIRLPOOL 3a71cef2858b76b11e1693907e745912a83f23e26c35a3456c6324fc19c317c53d4404e20134b034e41e162c1ea8d58c38bbd4afe0394d886ab32f6b698172ec +DIST elasticsearch-5.6.1.tar.gz 33747853 SHA256 006f9cb3886877df845e3c3dea8a688777fb739a862d3afe1a113c16a732715f SHA512 be4ec7b16628bcf217ccf2035399a0729f4a46a2243fdb070535b1e36169fe31f36f1f78d7aa54e44c411b2f33bf76eb5833b2531339c2f040407774990986aa WHIRLPOOL ef12806fd3f00738f8544893ff895174a8af5891c730c1dd308e5537bee23ead429f14448ba0cbfe13766393b88593eb07cd1a7144485b105877cf8d7e84ccd5 diff --git a/app-misc/elasticsearch/elasticsearch-5.6.1.ebuild b/app-misc/elasticsearch/elasticsearch-5.6.1.ebuild new file mode 100644 index 00000000000..b2ac22fbd6c --- /dev/null +++ b/app-misc/elasticsearch/elasticsearch-5.6.1.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 +}