From 7ff18b81bb4e21ceb1132fc722c04c1732db8211 Mon Sep 17 00:00:00 2001 From: Tomáš Mózes Date: Sun, 18 Dec 2016 11:45:00 +0000 Subject: app-misc/elasticsearch: fix initscript --- .../elasticsearch/elasticsearch-5.0.1-r1.ebuild | 84 +++++++++++++++++++ app-misc/elasticsearch/files/elasticsearch.conf3 | 60 ++++++++++++++ app-misc/elasticsearch/files/elasticsearch.init7 | 95 ++++++++++++++++++++++ 3 files changed, 239 insertions(+) create mode 100644 app-misc/elasticsearch/elasticsearch-5.0.1-r1.ebuild create mode 100644 app-misc/elasticsearch/files/elasticsearch.conf3 create mode 100644 app-misc/elasticsearch/files/elasticsearch.init7 (limited to 'app-misc') diff --git a/app-misc/elasticsearch/elasticsearch-5.0.1-r1.ebuild b/app-misc/elasticsearch/elasticsearch-5.0.1-r1.ebuild new file mode 100644 index 000000000000..ca759e06dc4f --- /dev/null +++ b/app-misc/elasticsearch/elasticsearch-5.0.1-r1.ebuild @@ -0,0 +1,84 @@ +# 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://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-${PV}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="strip" + +RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )" + +S="${WORKDIR}/${MY_PN}-${PV}" + +pkg_preinst() { + if has_version '