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 83EEC1396D0 for ; Sat, 26 Aug 2017 07:09:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A45831FC04A; Sat, 26 Aug 2017 07:09:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 6FC8A1FC046 for ; Sat, 26 Aug 2017 07:09:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 3716A33BF1C for ; Sat, 26 Aug 2017 07:09:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A67768304 for ; Sat, 26 Aug 2017 07:09:22 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1503731288.55389e33035589d3888339a9174d3d2ec8819f5e.monsieurp@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.5.2.ebuild X-VCS-Directories: app-misc/elasticsearch/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 55389e33035589d3888339a9174d3d2ec8819f5e X-VCS-Branch: master Date: Sat, 26 Aug 2017 07:09:22 +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: 18041862-962d-472c-9f36-3c3e9fe7cedf X-Archives-Hash: 446dc1279f66457dcb1abb81ef83d029 commit: 55389e33035589d3888339a9174d3d2ec8819f5e Author: Tomas Mozes gmail com> AuthorDate: Mon Aug 21 16:20:06 2017 +0000 Commit: Patrice Clement gentoo org> CommitDate: Sat Aug 26 07:08:08 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55389e33 app-misc/elasticsearch: version bump to 5.5.2. Package-Manager: Portage-2.3.8, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/5497 app-misc/elasticsearch/Manifest | 1 + app-misc/elasticsearch/elasticsearch-5.5.2.ebuild | 68 +++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest index 61a037f5ecb..15f43a6b38c 100644 --- a/app-misc/elasticsearch/Manifest +++ b/app-misc/elasticsearch/Manifest @@ -2,3 +2,4 @@ DIST elasticsearch-5.2.2.tar.gz 33799732 SHA256 cf88930695794a8949342d386f028548 DIST elasticsearch-5.3.3.tar.gz 33701608 SHA256 c7e23fddd74d66207b01dea777597c9d04c242973e1ac61aec0f13b716ebed1d SHA512 36fc00081af5555ceb0c0c6e8300c184d40e7176e084d899f2bfaafc3a36c6ba0f457c4bccde95a282d441fa26d84aba4ee1b8ef634831ffdef2f14feb725daa WHIRLPOOL ce641c9cb2071661a221f95fe38018ae2108ffdd855c70aafba4286da369cde461ff39afc674d650ca33925c350592d82e170b2e937e73e949279ca49850a325 DIST elasticsearch-5.4.3.tar.gz 33326964 SHA256 0ceaf6a2243e9a6f3519dce62991ccab09a44326d6899688cd09422b8c31c68f SHA512 8cc8c96ed6d1db947f20624b5231a9718897fbe5acdab9828ef3ec580b8e5bef2bbdf961ace437d192c2bae3d70f6962e1ab6985c25e314979daf6479470acc0 WHIRLPOOL 2d124ceb2aabde87d043bd4178704e1b451a174ff0b9082894aaaf74d924113f656f95d8d25ee58f7987c6821000907dcb67e217989835d6344ae30fd8f08c42 DIST elasticsearch-5.5.1.tar.gz 33476827 SHA256 e0924ae2af5f4435cef009ad3a567169e9653263e7a3b8693dba932698ea7e34 SHA512 9bedd48396cdd6c39c107a7951eba8446b8574493bd44c17a79ba3443670a48b72c053006821cf69dc17bf49ff1c05904db14a07d8a6403b2d2061fc605937bd WHIRLPOOL 770b2eab9d67212fde7bafb5eaa885c13195f3ecb41897c261bac405987397e299d064badda454d12901ed86a8f9a4e87ab0242ccf5f6971005397ad9061f8c6 +DIST elasticsearch-5.5.2.tar.gz 33485703 SHA256 0870e2c0c72e6eda976effa07aa1cdd06a9500302320b5c22ed292ce21665bf1 SHA512 62048f15b43e38a61e3a19a1599c25cd0d9009cc1172db5b450b04dec349ecd313b1f20e3d1c7ed1c101ae3e6f6c6d2cdf004a9713ad803576277f93e3adbdb9 WHIRLPOOL 3a71cef2858b76b11e1693907e745912a83f23e26c35a3456c6324fc19c317c53d4404e20134b034e41e162c1ea8d58c38bbd4afe0394d886ab32f6b698172ec diff --git a/app-misc/elasticsearch/elasticsearch-5.5.2.ebuild b/app-misc/elasticsearch/elasticsearch-5.5.2.ebuild new file mode 100644 index 00000000000..3b2c5bc251f --- /dev/null +++ b/app-misc/elasticsearch/elasticsearch-5.5.2.ebuild @@ -0,0 +1,68 @@ +# 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 -rf bin/*.{bat,exe} || die + rm LICENSE.txt || die + + default +} + +src_install() { + keepdir /etc/${PN} + keepdir /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/* || 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 +}