From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 088DA1384B4 for ; Thu, 5 Nov 2015 05:01:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4E4BE0845; Thu, 5 Nov 2015 05:01:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 016FCE0845 for ; Thu, 5 Nov 2015 05:01:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7F0D63407E2 for ; Thu, 5 Nov 2015 05:01:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D94D32063 for ; Thu, 5 Nov 2015 05:01:32 +0000 (UTC) From: "Ian Delaney" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ian Delaney" Message-ID: <1446699680.1c3c8c9fa103e7cfa7bfb2e15ed15adc4521bd3d.idella4@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-1.7.3.ebuild X-VCS-Directories: app-misc/elasticsearch/ X-VCS-Committer: idella4 X-VCS-Committer-Name: Ian Delaney X-VCS-Revision: 1c3c8c9fa103e7cfa7bfb2e15ed15adc4521bd3d X-VCS-Branch: master Date: Thu, 5 Nov 2015 05:01:32 +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: d3e53908-9ea0-4607-8209-47835a3e8e8a X-Archives-Hash: 4b3e29ab9667a726d3c9b2d0cd7d4476 commit: 1c3c8c9fa103e7cfa7bfb2e15ed15adc4521bd3d Author: Ian Delaney gentoo org> AuthorDate: Thu Nov 5 05:00:40 2015 +0000 Commit: Ian Delaney gentoo org> CommitDate: Thu Nov 5 05:01:20 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c3c8c9f app-misc/elasticsearch: bump to 1.7.3, fixes gentoo bug Gentoo bug: #562658 Package-Manager: portage-2.2.23 app-misc/elasticsearch/Manifest | 1 + app-misc/elasticsearch/elasticsearch-1.7.3.ebuild | 71 +++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest index a8514cb..b425a77 100644 --- a/app-misc/elasticsearch/Manifest +++ b/app-misc/elasticsearch/Manifest @@ -1,2 +1,3 @@ DIST elasticsearch-1.6.2.tar.gz 28491082 SHA256 b7ef3aae0a263c2312bd1a25b191c3c108c92d5413c3527d776587e582c518d0 SHA512 fb97a373a36fbef1b55fc263f6234b41daa33068150f5badea04ee9ba65166696416db941a41e46f66b588c15f6b86b090aa8004d949ed25fb9409b67e062820 WHIRLPOOL 39aafc41bd950bb71758ece90cf0e901599b55291ac1cecb7fea893c00b12643af40b4ebf647c4e67b1467b84c2438a82e574bcbb796dd736e2d1a8621082023 DIST elasticsearch-1.7.1.tar.gz 28500556 SHA256 86a0c20eea6ef55b14345bff5adf896e6332437b19180c4582a346394abde019 SHA512 88786d277cb3228a5e477068fc5ff723e0b5aa47411cea5c55d15ae769f2fb123d274e29c592a9e0f655deedb9db62f296af5aff4e8b56539928025a3375daaa WHIRLPOOL 2218ec3603314a60b38e903b3f00681512306efe1892350ced71c060a24924391d66cb9273d6db5ebb781d60808a2f3ab4c77c57baa03714db143c3718602bf5 +DIST elasticsearch-1.7.3.tar.gz 28510917 SHA256 af517611493374cfb2daa8897ae17e63e2efea4d0377d316baa351c1776a2bca SHA512 0cb6b2ebd77c3d1467f6a22f845bfbf9f4a7c9c9ddedae17aeb6bd2d2bc576171fc80e3a4963e7b890af574e9fd0b0faa152e7f2671a74254826e14fe2554c9f WHIRLPOOL c86de3076389a9b95cf4d424673edb3c3b1dae0b4470b18b15a5f2e9bde6669a61b8ffd5cc3f7fc3b52f99441915a84b0396a5673ebbc12fec0d83eb41a03c74 diff --git a/app-misc/elasticsearch/elasticsearch-1.7.3.ebuild b/app-misc/elasticsearch/elasticsearch-1.7.3.ebuild new file mode 100644 index 0000000..1ad3bf3 --- /dev/null +++ b/app-misc/elasticsearch/elasticsearch-1.7.3.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 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.elastic.co/${MY_PN}/${MY_PN}/${MY_PN}-${PV}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="strip" +QA_PREBUILT="usr/share/elasticsearch/lib/sigar/libsigar-*.so" + +RDEPEND="|| ( virtual/jre:1.7 virtual/jre:1.8 )" + +pkg_setup() { + enewgroup ${MY_PN} + enewuser ${MY_PN} -1 /bin/bash /var/lib/${MY_PN} ${MY_PN} +} + +src_prepare() { + rm -rf lib/sigar/*{solaris,winnt,freebsd,macosx}* + rm -rf bin/*.{bat,exe} + rm lib/sigar/libsigar-ia64-linux.so + rm LICENSE.txt + + use amd64 && { + rm lib/sigar/libsigar-x86-linux.so + } + + use x86 && { + rm lib/sigar/libsigar-amd64-linux.so + } +} + +src_install() { + dodir /etc/${MY_PN} + + insinto /usr/share/doc/${P}/examples + doins config/* + rm -rf config + + insinto /usr/share/${MY_PN} + doins -r ./* + chmod +x "${D}"/usr/share/${MY_PN}/bin/* + + keepdir /var/{lib,log}/${MY_PN} + + newinitd "${FILESDIR}/elasticsearch.init4" "${MY_PN}" + newconfd "${FILESDIR}/${MY_PN}.conf" "${MY_PN}" + systemd_newunit "${FILESDIR}"/${PN}.service4 "${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 "Each of the example files in /usr/share/doc/${P}/examples" + elog "should be extracted to the proper configuration directory:" + elog "/etc/${MY_PN} (for standard init)" + elog "/etc/${MY_PN}/instance (for symlinked init)" + elog +}