summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2015-11-05 13:00:40 +0800
committerIan Delaney <idella4@gentoo.org>2015-11-05 13:01:20 +0800
commit1c3c8c9fa103e7cfa7bfb2e15ed15adc4521bd3d (patch)
tree6f447ab182044663ea257a5e09cbbdfc327824a8 /app-misc
parentapp-text/blogc: version bump (diff)
downloadgentoo-1c3c8c9fa103e7cfa7bfb2e15ed15adc4521bd3d.tar.gz
gentoo-1c3c8c9fa103e7cfa7bfb2e15ed15adc4521bd3d.tar.bz2
gentoo-1c3c8c9fa103e7cfa7bfb2e15ed15adc4521bd3d.zip
app-misc/elasticsearch: bump to 1.7.3, fixes gentoo bug
Gentoo bug: #562658 Package-Manager: portage-2.2.23
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/elasticsearch/Manifest1
-rw-r--r--app-misc/elasticsearch/elasticsearch-1.7.3.ebuild71
2 files changed, 72 insertions, 0 deletions
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index a8514cbb65c1..b425a777f9cf 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 000000000000..1ad3bf36d3d7
--- /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
+}