* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2019-04-25 12:00 Manuel Rüger
0 siblings, 0 replies; 16+ messages in thread
From: Manuel Rüger @ 2019-04-25 12:00 UTC (permalink / raw
To: gentoo-commits
commit: 8b07ac17061c70d9a1c6df61d97fb0856ece72ce
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Fri Apr 19 20:42:38 2019 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Thu Apr 25 12:00:15 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b07ac17
app-misc/elasticsearch: bump to 7.0.0
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
app-misc/elasticsearch/Manifest | 2 +
app-misc/elasticsearch/elasticsearch-7.0.0.ebuild | 91 +++++++++++++++++++++++
app-misc/elasticsearch/files/elasticsearch.init.6 | 69 +++++++++++++++++
3 files changed, 162 insertions(+)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index aa6f687ec43..46e8bcb6b0f 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,5 +1,7 @@
DIST elasticsearch-5.6.16.tar.gz 33894983 BLAKE2B f96e78f1f28d8106948c91a0d31ea3d41b538fb0fd8534e2f52be651cf22986c76eae67c58c8ef10fef218d1646b1b4b5aa0a3625520e62e482063420775e92e SHA512 cc831e50ce311366484c47cf9fead9bd6562035132e6fd29508e78776dd71846c713d8d1e7a0a99338df46cad124149fb5d767e0ae0bbbed0b50153e234f2631
DIST elasticsearch-6.6.1.tar.gz 114126547 BLAKE2B b335b224af0c241cbdf83f81feec103274d9cdd9ee7f9c3c5a788cbfc4d7a24b3a345aa14853e378796f733c151f7f21b5b081b2071b56f40f0f068ef6b07939 SHA512 3f8619ae6a10a34c57d8bc0c2ba3851b79a494ea05a3d02119a6e12d2c6cb6a651e73b43adfd674b7fb16664b709b643d4be9ba0785dbcc6d7a7cc41da7b669f
DIST elasticsearch-6.7.1.tar.gz 148542786 BLAKE2B 4a9acd16788e6d84acfac09ee2434135fdef85d0bec5baa873f7bfd7cb6d340932d6b67b13a8f5095dc04d1981a029ab7f87d90c2b4a796eb198e9b8c531db9d SHA512 dcd3a6beae8b4a2322144058871074f193974565341da5703ec991947c2749ee67e87202e937148f653594f5fd33fdbb8adc891a200d4e03d8363575992eb9ec
+DIST elasticsearch-7.0.0-no-jdk-linux-x86_64.tar.gz 149074223 BLAKE2B 3c210b81de8882f99be45adc811c3867acb276978d3c788db5cb00ec0eacd0f096933849dfa066160ca2ec05e3fa2962329b200614db9927e4424602da53508f SHA512 b499aeab6a3f883547974b36221fd808a9da70ae0622856582287dcf729c3a2acfb1faef2727b17be97f64d8bb56ac5cdbae6d63f2a146027153f170ae6d91fc
DIST elasticsearch-oss-6.6.1.tar.gz 34492424 BLAKE2B 9a63aeb86ec3bebbe685804b262316726cb93b42693f9ba8937cac65c7ec186f0bb470893568234a0b7cc8b58f0c91d2af94eb16c3d016e7533231eba32fdbb0 SHA512 0e536ff760673dd740f790f1b0c01d984bf989a4a9ad3c4fe998de4f824330ce0d5ea18f04421a8648af719aabd25a4393f90182079186e48cef539b5621914c
DIST elasticsearch-oss-6.7.1.tar.gz 68421385 BLAKE2B cf14f3babfc5dbe9de4c9e47c15b797ab7c73236936257043c435751a0d86348e34ee73d2a6785a9e1391edc1e00f9a56f922c368ef72a5d349175ee4735d43b SHA512 4865ebd3403593048b3f922769d6d09eb1d53a42cf206cdcba7c30e330b39d9bd57f9f0979a23fcf0ca7636d84ce85de210fdf655447fab7ecebb35bffdd3323
+DIST elasticsearch-oss-7.0.0-no-jdk-linux-x86_64.tar.gz 68788144 BLAKE2B 29206b277dc9997b155b54217f485c314a7efa35777bcb81908ce900e134e62d7ef14629cfeebcd3ebb724b76fe5380085ae6b50df46bdfddf5f657a0d2da3eb SHA512 ec9381d9310145b80fb2b8cdd7b7953ea7b2b45a66bf8435d8a982aed0eeb59f734f3936b4b40ec4530e106878d25c2f63d4ea7a734b12f1c8d86b39f7894963
diff --git a/app-misc/elasticsearch/elasticsearch-7.0.0.ebuild b/app-misc/elasticsearch/elasticsearch-7.0.0.ebuild
new file mode 100644
index 00000000000..1d757551fca
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-7.0.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd user
+
+DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
+HOMEPAGE="https://www.elastic.co/products/elasticsearch"
+SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz )
+ !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}-no-jdk-linux-x86_64.tar.gz )"
+LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="x-pack"
+
+RDEPEND="virtual/jre"
+
+QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN}
+}
+
+src_prepare() {
+ default
+
+ rm LICENSE.txt NOTICE.txt || die
+ rmdir logs || die
+
+ if use x-pack; then
+ rm bin/x-pack/*.bat || die
+ rm -r modules/x-pack-ml/platform/{darwin,windows}-x86_64 || die
+ fi
+}
+
+src_install() {
+ keepdir /etc/${PN}
+ keepdir /etc/${PN}/scripts
+
+ insinto /etc/${PN}
+ doins -r config/.
+ rm -r config || die
+
+ fowners root:${PN} /etc/${PN}
+ fperms 2750 /etc/${PN}
+
+ 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
+
+ if use x-pack; then
+ chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die
+ fi
+
+ keepdir /var/{lib,log}/${PN}
+ fowners ${PN}:${PN} /var/{lib,log}/${PN}
+ fperms 0750 /var/{lib,log}/${PN}
+ dodir /usr/share/${PN}/plugins
+
+ insinto /etc/sysctl.d
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
+
+ newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
+ newinitd "${FILESDIR}/${PN}.init.6" ${PN}
+
+ systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
+ systemd_newunit "${FILESDIR}"/${PN}.service.3 ${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/${PN} into the configuration directory of the instance:"
+ elog "/etc/${PN}/instance"
+ elog
+ ewarn "Please make sure you have proper permissions on /etc/${PN}"
+ ewarn "prior to keystore generation or you may experience startup fails."
+ ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
+ ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch.init.6 b/app-misc/elasticsearch/files/elasticsearch.init.6
new file mode 100644
index 00000000000..046941d407e
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.init.6
@@ -0,0 +1,69 @@
+#!/sbin/openrc-run
+
+name="Elasticsearch"
+description="Elasticsearch Server"
+
+ES_INSTANCE=${RC_SVCNAME#*.}
+
+if [ -n "${ES_INSTANCE}" ] && [ ${RC_SVCNAME} != "elasticsearch" ]; then
+ ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
+ CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
+ DEFAULT_LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
+else
+ ES_BASE_PATH="/var/lib/elasticsearch/_default"
+ CONF_DIR="/etc/elasticsearch"
+ DEFAULT_LOG_DIR="/var/log/elasticsearch/_default"
+fi
+
+ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
+ES_USER=${ES_USER:="elasticsearch"}
+ES_GROUP=${ES_GROUP:="elasticsearch"}
+ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
+JAVA_HOME=${JAVA_HOME:=$(java-config -g JAVA_HOME)}
+MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
+MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
+
+DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
+LOG_DIR=${LOG_DIR:="${DEFAULT_LOG_DIR}"}
+
+if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
+ ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
+fi
+
+export ES_INCLUDE
+export JAVA_HOME
+export JAVA_OPTS
+export ES_JVM_OPTIONS
+export ES_JAVA_OPTS
+export ES_STARTUP_SLEEP_TIME
+export ES_PATH_CONF="${CONF_DIR}"
+
+pidfile="/run/elasticsearch/${RC_SVCNAME}.pid"
+
+command="/usr/share/elasticsearch/bin/elasticsearch"
+command_args="-Epath.logs=${LOG_DIR} -Epath.data=${DATA_DIR}"
+command_args_background="--daemonize --pidfile=${pidfile}"
+command_user="${ES_USER}:${ES_GROUP}"
+required_files="${CONF_DIR}/elasticsearch.yml"
+retry="TERM/30/KILL/30"
+
+depend() {
+ use net
+}
+
+start_pre() {
+ if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
+ sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
+ fi
+
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/run/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
+
+ # fails to start without keystore
+ if [ ! -f "${CONF_DIR}/elasticsearch.keystore" ]; then
+ "${ES_HOME}/bin/elasticsearch-keystore" create
+ fi
+}
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2022-11-18 8:51 Joonas Niilola
0 siblings, 0 replies; 16+ messages in thread
From: Joonas Niilola @ 2022-11-18 8:51 UTC (permalink / raw
To: gentoo-commits
commit: 6646a6032b8807cfd3e3a7d2ddf4d6287dd49de9
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Tue Nov 1 07:19:14 2022 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Nov 18 08:51:34 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6646a603
app-misc/elasticsearch: bump to 7.17.7
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/28065
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
app-misc/elasticsearch/Manifest | 1 +
app-misc/elasticsearch/elasticsearch-7.17.7.ebuild | 82 ++++++++++++++++++++++
app-misc/elasticsearch/files/elasticsearch.init.9 | 71 +++++++++++++++++++
3 files changed, 154 insertions(+)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index 289eb701436d..7c8c8818192c 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,2 +1,3 @@
DIST elasticsearch-7.17.5-no-jdk-linux-x86_64.tar.gz 167410729 BLAKE2B c6e68176705a1ae2c72a945b2a2b7542f2cb6ebc2420fb52cf26cafdc3045c6f82a5f707062d48142875bf1fbc4be65e473ed9515d65ec25d5a460cc2af991e9 SHA512 d8bc819c9ac5a9035d08e45abf8464275cc2cad7c2f091a3e112100ffbd2605759543e111d9e44c3352f92a08230287c2cba6a91f07ab3d92513682e56b97184
+DIST elasticsearch-7.17.7-no-jdk-linux-x86_64.tar.gz 167491953 BLAKE2B dec416ed84d47f95e72d415f6200b0573ef4adfe833753b87f8a2e927561344ea949a1fe2f51d0c8bbd97463d68734542388051904bc631b5f690ce37540a83f SHA512 9a9c8ad4b31a3d9b8c560bbb97f03dc4809fb4c993dbcf99835847896e35caa46309a50e17e86bb56ed00312fba2f79ed064ab422b968488bd619e294f845c5b
DIST elasticsearch-8.4.1-linux-x86_64.tar.gz 566284763 BLAKE2B 5978c56dbeaaa2421afc8f73576362d9902de16100fb9a40eff8721be21e6c3b4d225c627848e3800ff9f31405671f93da51fa2914d3af36bed96b2bad417574 SHA512 030df228fb1fa6b5c80087674c84c2d8ebca3a321bc6f5b92e3c915468381c13a692d95865e2410bb2b02f9e02c1fd37b59182ca474b0d5064d36d16e7749f95
diff --git a/app-misc/elasticsearch/elasticsearch-7.17.7.ebuild b/app-misc/elasticsearch/elasticsearch-7.17.7.ebuild
new file mode 100644
index 000000000000..c9393946bb82
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-7.17.7.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd tmpfiles
+
+DESCRIPTION="Free and Open, Distributed, RESTful Search Engine"
+HOMEPAGE="https://www.elastic.co/elasticsearch/"
+SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz"
+LICENSE="Apache-2.0 BSD-2 Elastic-2.0 LGPL-3 MIT public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="acct-group/elasticsearch
+ acct-user/elasticsearch
+ sys-libs/zlib
+ virtual/jre"
+
+QA_PREBUILT="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
+QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
+
+src_prepare() {
+ default
+
+ rm LICENSE.txt NOTICE.txt || die
+ rmdir logs || die
+}
+
+src_install() {
+ keepdir /etc/${PN}
+ keepdir /etc/${PN}/scripts
+
+ insinto /etc/${PN}
+ doins -r config/.
+ rm -r config || die
+
+ fowners root:${PN} /etc/${PN}
+ fperms 2750 /etc/${PN}
+
+ insinto /usr/share/${PN}
+ doins -r .
+
+ exeinto /usr/share/${PN}/bin
+ doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
+
+ fperms -R +x /usr/share/${PN}/bin
+ fperms -R +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin
+
+ keepdir /var/{lib,log}/${PN}
+ fowners ${PN}:${PN} /var/{lib,log}/${PN}
+ fperms 0750 /var/{lib,log}/${PN}
+
+ insinto /etc/sysctl.d
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
+
+ newconfd "${FILESDIR}/${PN}.conf.4" ${PN}
+ newinitd "${FILESDIR}/${PN}.init.9" ${PN}
+
+ systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
+ systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service
+
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.d ${PN}.conf
+}
+
+pkg_postinst() {
+ tmpfiles_process /usr/lib/tmpfiles.d/${PN}.conf
+
+ 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/${PN} into the configuration directory of the instance:"
+ elog "/etc/${PN}/instance"
+ elog
+ ewarn "Please make sure you have proper permissions on /etc/${PN}"
+ ewarn "prior to keystore generation or you may experience startup fails."
+ ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
+ ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch.init.9 b/app-misc/elasticsearch/files/elasticsearch.init.9
new file mode 100644
index 000000000000..5e4f2a70f41d
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.init.9
@@ -0,0 +1,71 @@
+#!/sbin/openrc-run
+
+name="Elasticsearch"
+description="Elasticsearch Server"
+
+ES_INSTANCE=${RC_SVCNAME#*.}
+
+if [ -n "${ES_INSTANCE}" ] && [ ${RC_SVCNAME} != "elasticsearch" ]; then
+ ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
+ CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
+ DEFAULT_LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
+else
+ ES_BASE_PATH="/var/lib/elasticsearch/_default"
+ CONF_DIR="/etc/elasticsearch"
+ DEFAULT_LOG_DIR="/var/log/elasticsearch/_default"
+fi
+
+ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
+ES_USER=${ES_USER:="elasticsearch"}
+ES_GROUP=${ES_GROUP:="elasticsearch"}
+ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
+ES_JAVA_HOME=${ES_JAVA_HOME:=$(java-config -g JAVA_HOME)}
+MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
+MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
+
+DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
+LOG_DIR=${LOG_DIR:="${DEFAULT_LOG_DIR}"}
+
+if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
+ ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
+fi
+
+export ES_INCLUDE
+export ES_JAVA_HOME
+export ES_JAVA_OPTS
+export ES_JVM_OPTIONS
+export ES_STARTUP_SLEEP_TIME
+export ES_PATH_CONF="${CONF_DIR}"
+
+pidfile="/run/elasticsearch/${RC_SVCNAME}.pid"
+
+command="/usr/share/elasticsearch/bin/elasticsearch"
+command_args="-Epath.logs=${LOG_DIR} -Epath.data=${DATA_DIR}"
+command_args_background="--daemonize --pidfile=${pidfile}"
+command_user="${ES_USER}:${ES_GROUP}"
+required_files="${CONF_DIR}/elasticsearch.yml"
+retry="TERM/30/KILL/30"
+
+depend() {
+ use net
+}
+
+start_pre() {
+ if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
+ sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
+ fi
+
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/run/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_HOME}/plugins"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
+
+ # fails to start without keystore
+ if [ ! -f "${CONF_DIR}/elasticsearch.keystore" ]; then
+ "${ES_HOME}/bin/elasticsearch-keystore" create
+ else
+ "${ES_HOME}/bin/elasticsearch-keystore" upgrade
+ fi
+}
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2022-05-26 12:58 Joonas Niilola
0 siblings, 0 replies; 16+ messages in thread
From: Joonas Niilola @ 2022-05-26 12:58 UTC (permalink / raw
To: gentoo-commits
commit: dba0110302a1012a7e34b08ca145c1818ec533e3
Author: Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja>
AuthorDate: Mon Apr 25 12:19:47 2022 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu May 26 12:58:03 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dba01103
app-misc/elasticsearch: add 8.2.0
Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja>
Closes: https://github.com/gentoo/gentoo/pull/25192
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
app-misc/elasticsearch/Manifest | 1 +
app-misc/elasticsearch/elasticsearch-8.2.0.ebuild | 94 ++++++++++++++++++++++
.../elasticsearch/files/elasticsearch-env.patch | 24 ++++++
.../elasticsearch/files/elasticsearch.service.4 | 67 +++++++++++++++
4 files changed, 186 insertions(+)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index 3d6ab7a0e4eb..07a9024d0448 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,3 +1,4 @@
DIST elasticsearch-6.8.23.tar.gz 149672445 BLAKE2B dd7b080f1496f3a20755c183befae74194eab05b04c6f77679e9dad6067eef5222a4c7ce43d6267f1233a7bf864c6f8b23d5caf52278e1fe5f48f465e6603113 SHA512 73258b400cd194768058105a74ca0e811962ccf81bed8c4d3a824d4e5b97a8178a31150e60602fa1e04c6764b139980eb45ae6f246864702120653b45120b597
DIST elasticsearch-7.17.3-no-jdk-linux-x86_64.tar.gz 167378547 BLAKE2B 4bacb075e94587351bb4638da15644ed372ec1ad2b72e1c9b84c511e84666f6b79ccc8519ce5fede119e6c134ac500a1209578f18a26fd8566646e870a17f9ba SHA512 f2d5953710adfe31f1e30a0fdf4c091c0493f613a83927ddec4bbc74d2eccb839e1ffa6d44636ad0ad9c07613915847cc7a68fc87e465a8a851c96e023917bf1
+DIST elasticsearch-8.2.0-linux-x86_64.tar.gz 529729465 BLAKE2B e176a047e49b343673c6f20e45d6ff96650e4ebb6b0d9d09450e4fb435ac56e22527be32c4327b5667ce6b4dbd6824477fc445c1db3e78a42e9c6bd01a1f5934 SHA512 f5e48538a835d61b7321133158c988b536945451f783964a10f50a0208aa46c013c2e55b86a5f4ec06c7ac61700c0f41d47124c91e4bf93b24ad3f150933a77d
DIST elasticsearch-oss-6.8.23.tar.gz 68573265 BLAKE2B 80366fdc4eaaf45161a36da112397938a82d08d842d82dd5a9311abf63ca20afb93ecc06387c6852bbb1a861306382d6e7c2314e67635b6f2e75cdc183057ad8 SHA512 14dbb2809b06499373c3ec5035d829d62255c2c93103618fbfe3d7d03cecf8847f654e83c78f765f23224126ff18ed713b959857e8ecf435c475b11bcd143d3f
diff --git a/app-misc/elasticsearch/elasticsearch-8.2.0.ebuild b/app-misc/elasticsearch/elasticsearch-8.2.0.ebuild
new file mode 100644
index 000000000000..e9c1024cd240
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-8.2.0.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd tmpfiles
+
+DESCRIPTION="Free and Open, Distributed, RESTful Search Engine"
+HOMEPAGE="https://www.elastic.co/elasticsearch/"
+SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}-linux-x86_64.tar.gz"
+LICENSE="Apache-2.0 BSD-2 Elastic-2.0 LGPL-3 MIT public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-env.patch"
+)
+
+BDEPEND="acct-group/elasticsearch
+ acct-user/elasticsearch"
+
+RDEPEND="acct-group/elasticsearch
+ acct-user/elasticsearch
+ sys-libs/zlib
+ virtual/jre:17"
+
+QA_PREBUILT="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
+QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
+
+src_prepare() {
+ default
+ rm -rf jdk || die
+ sed -i -e "s:logs/:/var/log/${PN}/:g" config/jvm.options || die
+ rm LICENSE.txt NOTICE.txt || die
+ rmdir logs || die
+}
+
+src_install() {
+ keepdir /etc/${PN}
+ keepdir /etc/${PN}/scripts
+
+ insinto /etc/${PN}
+ doins -r config/.
+ rm -r config || die
+
+ fowners -R root:${PN} /etc/${PN}
+ fperms -R 2750 /etc/${PN}
+
+ insinto /usr/share/${PN}
+ doins -r .
+
+ keepdir /usr/share/${PN}/plugins
+
+ exeinto /usr/share/${PN}/bin
+ doexe ${FILESDIR}/elasticsearch-systemd-pre-exec
+
+ fperms -R +x /usr/share/${PN}/bin
+ fperms -R +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin
+
+ keepdir /var/{lib,log}/${PN}
+ fowners ${PN}:${PN} /var/{lib,log}/${PN}
+ fperms 0750 /var/{lib,log}/${PN}
+
+ insinto /etc/sysctl.d
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
+
+ newconfd "${FILESDIR}/${PN}.conf.4" ${PN}
+ newinitd "${FILESDIR}/${PN}.init.8" ${PN}
+
+ systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
+ systemd_newunit "${FILESDIR}"/${PN}.service.4 ${PN}.service
+
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.d ${PN}.conf
+}
+
+pkg_postinst() {
+ # Elasticsearch will choke on our keep file and dodir will not preserve the empty dir
+ rm /usr/share/${PN}/plugins/.keep* || die
+ tmpfiles_process /usr/lib/tmpfiles.d/${PN}.conf
+ if [ ! systemd_is_booted ]; then
+ 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/${PN} into the configuration directory of the instance:"
+ elog "/etc/${PN}/instance"
+ elog
+ fi
+ ewarn "Please make sure you have proper permissions on /etc/${PN}"
+ ewarn "prior to keystore generation or you may experience startup failures."
+ ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
+ ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch-env.patch b/app-misc/elasticsearch/files/elasticsearch-env.patch
new file mode 100644
index 000000000000..fb150bb51db3
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch-env.patch
@@ -0,0 +1,24 @@
+Since ES 8.0.0 upstream stopped distributing a 'no-JDK' package.
+This requires us to set `ES_JAVA_HOME` else it fails to find the
+JDK that we unbundled and will not start.
+--- a/bin/elasticsearch-env
++++ b/bin/elasticsearch-env
+@@ -36,6 +36,18 @@ ES_HOME=`dirname "$ES_HOME"`
+ ES_CLASSPATH="$ES_HOME/lib/*"
+ LAUNCHERS_CLASSPATH="$ES_CLASSPATH:$ES_HOME/lib/launchers/*"
+
++# Set our JVM in a Gentoo-specific manner
++if [ -z "$ES_JAVA_HOME" ]; then
++ GENTOO_VM=$(depend-java-query --get-vm virtual/jre:17)
++ if [ ! -z "$GENTOO_VM" ]; then
++ ES_JAVA_HOME=$(java-config-2 --select-vm=${GENTOO_VM} --jre-home)
++ else
++ echo "Unable to automatically detect a supported Java 17 VM. Elasticsearch is unlikely to launch."
++ echo "Please ensure that you have installed an appropriate Java VM using portage"
++ echo "OR pass the ES_JAVA_HOME environment variable."
++ fi
++fi
++
+ # now set the path to java
+ if [ ! -z "$ES_JAVA_HOME" ]; then
+ JAVA="$ES_JAVA_HOME/bin/java"
diff --git a/app-misc/elasticsearch/files/elasticsearch.service.4 b/app-misc/elasticsearch/files/elasticsearch.service.4
new file mode 100644
index 000000000000..6c5b256706c9
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.service.4
@@ -0,0 +1,67 @@
+[Unit]
+Description=Elasticsearch
+Documentation=https://www.elastic.co
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Type=simple
+RuntimeDirectory=elasticsearch
+PrivateTmp=true
+Environment=ES_HOME=/usr/share/elasticsearch
+Environment=ES_PATH_CONF=/etc/elasticsearch
+
+WorkingDirectory=/usr/share/elasticsearch
+
+ExecStartPre=+"/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec"
+
+User=elasticsearch
+Group=elasticsearch
+
+ExecStart=/usr/share/elasticsearch/bin/elasticsearch \
+ -p ${PID_DIR}/elasticsearch.pid \
+ -Epath.logs=${LOG_DIR} \
+ -Epath.data=${DATA_DIR} \
+ --quiet
+
+# StandardOutput is configured to redirect to journalctl since
+# some error messages may be logged in standard output before
+# elasticsearch logging system is initialized. Elasticsearch
+# stores its logs in /var/log/elasticsearch and does not use
+# journalctl by default. If you also want to enable journalctl
+# logging, you can simply remove the "quiet" option from ExecStart.
+StandardOutput=journal
+StandardError=inherit
+
+# Specifies the maximum file descriptor number that can be opened by this process
+LimitNOFILE=65535
+
+# Specifies the maximum number of processes
+LimitNPROC=4096
+
+# Specifies the maximum size of virtual memory
+LimitAS=infinity
+
+# Specifies the maximum file size
+LimitFSIZE=infinity
+
+# Disable timeout logic and wait until process is stopped
+TimeoutStopSec=0
+
+# SIGTERM signal is used to stop the Java process
+KillSignal=SIGTERM
+
+# Send the signal only to the JVM rather than its control group
+KillMode=process
+
+# Java process is never killed
+SendSIGKILL=no
+
+# When a JVM receives a SIGTERM signal it exits with code 143
+SuccessExitStatus=143
+
+# Allow a slow startup before the systemd notifier module kicks in to extend the timeout
+TimeoutStartSec=75
+
+[Install]
+WantedBy=multi-user.target
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2020-06-12 14:33 Thomas Deutschmann
0 siblings, 0 replies; 16+ messages in thread
From: Thomas Deutschmann @ 2020-06-12 14:33 UTC (permalink / raw
To: gentoo-commits
commit: 6a9fd15d54a437a8c052c8788c14c10a8838cbac
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Fri May 22 13:43:38 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Jun 12 14:32:23 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a9fd15d
app-misc/elasticsearch: drop old
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
app-misc/elasticsearch/Manifest | 1 -
app-misc/elasticsearch/elasticsearch-5.6.16.ebuild | 69 ----------------------
app-misc/elasticsearch/files/elasticsearch.conf.2 | 59 ------------------
app-misc/elasticsearch/files/elasticsearch.init.2 | 60 -------------------
app-misc/elasticsearch/files/elasticsearch.service | 53 -----------------
5 files changed, 242 deletions(-)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index cfe38f90da5..2646a3af8cd 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,4 +1,3 @@
-DIST elasticsearch-5.6.16.tar.gz 33894983 BLAKE2B f96e78f1f28d8106948c91a0d31ea3d41b538fb0fd8534e2f52be651cf22986c76eae67c58c8ef10fef218d1646b1b4b5aa0a3625520e62e482063420775e92e SHA512 cc831e50ce311366484c47cf9fead9bd6562035132e6fd29508e78776dd71846c713d8d1e7a0a99338df46cad124149fb5d767e0ae0bbbed0b50153e234f2631
DIST elasticsearch-6.8.8.tar.gz 149927766 BLAKE2B 329bb778100125d9624acc84252fe8281cd4ee3823fbafeabf8aeeca529c3cd8902b197d5e5a852d55f7a56ec410312e3932b34736607890dedad9e12c3afe2e SHA512 c703d6230a42b77fb0f169158afbc18517118375e341ef889c231acc0f096a44716ba4fc1a2558fd000b0ceff4d9c3aff2f2c792f2c2ae92f0e7f82c6a70eaec
DIST elasticsearch-7.6.2-no-jdk-linux-x86_64.tar.gz 148140124 BLAKE2B 9a850011533052d7a4041484936dfa2c8fe7f7976314147bc2b1d5f239bbdfe68a3593d3e0d2bb4d709a71e81aa7c200f9530921dab9d50c0ab3e349f4769ffb SHA512 aa5f499b26e92e19a673093fe2ff73c1c03a8da029b59cb83db43f9e2dfd7c650ee6a122bcf647b7e83f658ad9b9cc64092e6e7c1b4f8476f2973a6006b8df3c
DIST elasticsearch-7.7.0-no-jdk-linux-x86_64.tar.gz 157716656 BLAKE2B 812c4db511f844fb23cb79bdfe3778281f1b6dad6a45553380829e330231304ce0e18eb975867e8474f652a63bdab2f4fb8c14158753aa8b29db5debfd3f00ae SHA512 a8d6cb7186301f50ba72ee5cde6c26390bdb6a8c13d902a75c63038b3dbb3cd7e544bbf6934d88324d722a213b7bf2efc0b27f9cae64428e6842d640bda5ee54
diff --git a/app-misc/elasticsearch/elasticsearch-5.6.16.ebuild b/app-misc/elasticsearch/elasticsearch-5.6.16.ebuild
deleted file mode 100644
index 0fa64b4d269..00000000000
--- a/app-misc/elasticsearch/elasticsearch-5.6.16.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-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() {
- default
-
- rm -v bin/*.{bat,exe} LICENSE.txt || die
-}
-
-src_install() {
- keepdir /etc/${PN}
- keepdir /etc/${PN}/scripts
-
- insinto /etc/${PN}
- doins -r 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}
- fowners ${PN}:${PN} /var/{lib,log}/${PN}
- fperms 0750 /var/{lib,log}/${PN}
- dodir /usr/share/${PN}/plugins
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
-
- newconfd "${FILESDIR}/${PN}.conf.2" ${PN}
- newinitd "${FILESDIR}/${PN}.init.2" ${PN}
-
- systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
- 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
-}
diff --git a/app-misc/elasticsearch/files/elasticsearch.conf.2 b/app-misc/elasticsearch/files/elasticsearch.conf.2
deleted file mode 100644
index e802448a86a..00000000000
--- a/app-misc/elasticsearch/files/elasticsearch.conf.2
+++ /dev/null
@@ -1,59 +0,0 @@
-################################
-# Elasticsearch
-################################
-
-# Elasticsearch home directory
-#ES_HOME=/usr/share/elasticsearch
-
-# Elasticsearch Java path
-#JAVA_HOME=
-
-# Elasticsearch configuration directory
-#CONF_DIR=/etc/elasticsearch
-
-# Elasticsearch data directory
-#DATA_DIR=/var/lib/elasticsearch
-
-# Elasticsearch logs directory
-#LOG_DIR=/var/log/elasticsearch
-
-# Additional Java OPTS
-#ES_JAVA_OPTS=
-
-################################
-# Elasticsearch service
-################################
-
-# When executing the init script, this user will be used to run the elasticsearch service.
-# The default value is 'elasticsearch' and is declared in the init.d file.
-# Note that this setting is only used by the init script. If changed, make sure that
-# the configured user can read and write into the data, work, plugins and log directories.
-# For systemd service, the user is usually configured in file /usr/lib/systemd/system/elasticsearch.service
-#ES_USER=elasticsearch
-#ES_GROUP=elasticsearch
-
-# The number of seconds to wait before checking if Elasticsearch started successfully as a daemon process
-#ES_STARTUP_SLEEP_TIME=5
-
-################################
-# System properties
-################################
-
-# Specifies the maximum file descriptor number that can be opened by this process
-# When using Systemd, this setting is ignored and the LimitNOFILE defined in
-# /usr/lib/systemd/system/elasticsearch.service takes precedence
-MAX_OPEN_FILES=65536
-
-# The maximum number of bytes of memory that may be locked into RAM
-# Set to "unlimited" if you use the 'bootstrap.memory_lock: true' option
-# in elasticsearch.yml.
-# When using Systemd, the LimitMEMLOCK property must be set
-# in /usr/lib/systemd/system/elasticsearch.service
-MAX_LOCKED_MEMORY=unlimited
-
-# Maximum number of VMA (Virtual Memory Areas) a process can own
-# When using Systemd, this setting is ignored and the 'vm.max_map_count'
-# property is set at boot time in /usr/lib/sysctl.d/elasticsearch.conf
-#MAX_MAP_COUNT=262144
-
-rc_ulimit="-l $MAX_LOCKED_MEMORY -n $MAX_OPEN_FILES"
diff --git a/app-misc/elasticsearch/files/elasticsearch.init.2 b/app-misc/elasticsearch/files/elasticsearch.init.2
deleted file mode 100644
index 6e572c58da2..00000000000
--- a/app-misc/elasticsearch/files/elasticsearch.init.2
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/sbin/openrc-run
-
-name="Elasticsearch"
-description="Elasticsearch Server"
-
-ES_INSTANCE=${SVCNAME#*.}
-
-if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
- ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
- CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
- LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
-else
- ES_BASE_PATH="/var/lib/elasticsearch/_default"
- CONF_DIR="/etc/elasticsearch"
- LOG_DIR="/var/log/elasticsearch/_default"
-fi
-
-ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
-ES_USER=${ES_USER:="elasticsearch"}
-ES_GROUP=${ES_GROUP:="elasticsearch"}
-ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
-MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
-MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
-
-DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
-
-if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
- ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
-fi
-
-export ES_INCLUDE
-export JAVA_HOME
-export JAVA_OPTS
-export ES_JVM_OPTIONS
-export ES_JAVA_OPTS
-export ES_STARTUP_SLEEP_TIME
-
-pidfile="/run/elasticsearch/${RC_SVCNAME}.pid"
-
-command="/usr/share/elasticsearch/bin/elasticsearch"
-command_args="--daemonize --pidfile=${pidfile} -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR}"
-command_user="${ES_USER}:${ES_GROUP}"
-required_files="${CONF_DIR}/elasticsearch.yml"
-retry="TERM/30/KILL/30"
-
-depend() {
- use net
-}
-
-start_pre() {
- if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
- sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
- fi
-
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/run/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
-}
diff --git a/app-misc/elasticsearch/files/elasticsearch.service b/app-misc/elasticsearch/files/elasticsearch.service
deleted file mode 100644
index 927acef5ee8..00000000000
--- a/app-misc/elasticsearch/files/elasticsearch.service
+++ /dev/null
@@ -1,53 +0,0 @@
-[Unit]
-Description=Elasticsearch
-Documentation=http://www.elastic.co
-Wants=network.target
-After=network.target
-
-[Service]
-Environment=ES_HOME=/usr/share/elasticsearch
-Environment=CONF_DIR=/etc/elasticsearch
-Environment=DATA_DIR=/var/lib/elasticsearch
-Environment=LOG_DIR=/var/log/elasticsearch
-Environment=PID_DIR=/run/elasticsearch
-EnvironmentFile=-/etc/conf.d/elasticsearch
-
-WorkingDirectory=/usr/share/elasticsearch
-
-User=elasticsearch
-Group=elasticsearch
-
-ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
-
-ExecStart=/usr/share/elasticsearch/bin/elasticsearch \
- -p ${PID_DIR}/elasticsearch.pid \
- -Edefault.path.home=${ES_HOME} \
- -Edefault.path.logs=${LOG_DIR} \
- -Edefault.path.data=${DATA_DIR} \
- -Edefault.path.conf=${CONF_DIR}
-
-StandardOutput=journal
-StandardError=inherit
-
-# Specifies the maximum file descriptor number that can be opened by this process
-LimitNOFILE=65536
-
-# Specifies the maximum number of bytes of memory that may be locked into RAM
-# Set to "infinity" if you use the 'bootstrap.memory_lock: true' option
-# in elasticsearch.yml and 'MAX_LOCKED_MEMORY=unlimited' in /etc/conf.d/elasticsearch
-#LimitMEMLOCK=infinity
-
-# Disable timeout logic and wait until process is stopped
-TimeoutStopSec=0
-
-# SIGTERM signal is used to stop the Java process
-KillSignal=SIGTERM
-
-# Java process is never killed
-SendSIGKILL=no
-
-# When a JVM receives a SIGTERM signal it exits with code 143
-SuccessExitStatus=143
-
-[Install]
-WantedBy=multi-user.target
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2020-04-13 8:31 Joonas Niilola
0 siblings, 0 replies; 16+ messages in thread
From: Joonas Niilola @ 2020-04-13 8:31 UTC (permalink / raw
To: gentoo-commits
commit: 58080c6edd1436ab951954c977c702b4c597f452
Author: Ferenc Erki <erkiferenc <AT> gmail <DOT> com>
AuthorDate: Sun Apr 12 05:34:35 2020 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Apr 13 08:31:20 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58080c6e
app-misc/elasticsearch: drop vulnerable
Bug: https://bugs.gentoo.org/715820
Package-Manager: Portage-2.3.98, Repoman-2.3.22
Signed-off-by: Ferenc Erki <erkiferenc <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/15318
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
app-misc/elasticsearch/Manifest | 14 ----
app-misc/elasticsearch/elasticsearch-6.7.1.ebuild | 91 -----------------------
app-misc/elasticsearch/elasticsearch-6.8.7.ebuild | 88 ----------------------
app-misc/elasticsearch/elasticsearch-7.2.1.ebuild | 86 ---------------------
app-misc/elasticsearch/elasticsearch-7.3.2.ebuild | 83 ---------------------
app-misc/elasticsearch/elasticsearch-7.4.1.ebuild | 83 ---------------------
app-misc/elasticsearch/elasticsearch-7.5.2.ebuild | 83 ---------------------
app-misc/elasticsearch/elasticsearch-7.6.1.ebuild | 83 ---------------------
app-misc/elasticsearch/files/elasticsearch.init.5 | 68 -----------------
9 files changed, 679 deletions(-)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index fb1981fb4c5..99c33de25e3 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,19 +1,5 @@
DIST elasticsearch-5.6.16.tar.gz 33894983 BLAKE2B f96e78f1f28d8106948c91a0d31ea3d41b538fb0fd8534e2f52be651cf22986c76eae67c58c8ef10fef218d1646b1b4b5aa0a3625520e62e482063420775e92e SHA512 cc831e50ce311366484c47cf9fead9bd6562035132e6fd29508e78776dd71846c713d8d1e7a0a99338df46cad124149fb5d767e0ae0bbbed0b50153e234f2631
-DIST elasticsearch-6.7.1.tar.gz 148542786 BLAKE2B 4a9acd16788e6d84acfac09ee2434135fdef85d0bec5baa873f7bfd7cb6d340932d6b67b13a8f5095dc04d1981a029ab7f87d90c2b4a796eb198e9b8c531db9d SHA512 dcd3a6beae8b4a2322144058871074f193974565341da5703ec991947c2749ee67e87202e937148f653594f5fd33fdbb8adc891a200d4e03d8363575992eb9ec
-DIST elasticsearch-6.8.7.tar.gz 149923635 BLAKE2B f6945db5f32f8c674bff311a88957e4742d123fa31019704f9139b275506618a8d68c08306bc11590ce604c3884327ea7d5b4d98c4e1362ebcf9330675dd198a SHA512 d3232a7e58076a581ef904aa5a14fdd146e0558c166a0e71262a20cfd2eb1891df8cb0e526e4268c241444bcb1521f2115e532a0f87a9529524f3228aeb2f702
DIST elasticsearch-6.8.8.tar.gz 149927766 BLAKE2B 329bb778100125d9624acc84252fe8281cd4ee3823fbafeabf8aeeca529c3cd8902b197d5e5a852d55f7a56ec410312e3932b34736607890dedad9e12c3afe2e SHA512 c703d6230a42b77fb0f169158afbc18517118375e341ef889c231acc0f096a44716ba4fc1a2558fd000b0ceff4d9c3aff2f2c792f2c2ae92f0e7f82c6a70eaec
-DIST elasticsearch-7.2.1-no-jdk-linux-x86_64.tar.gz 138949755 BLAKE2B 3c77cec89a93c6b5d213afc326ef84df7d77c052914b387dc4ba35276d8f9814689d5305a131e1c647ece31277533e882b1170ad03eb3869f8443471223db066 SHA512 d2827be0b06361ab08f558dc88f76c614fb6a243a6d845749b3d23dff4078ffa58cc1b3407b84197d0f027ea9af5475fad8e3a503fc573ba31756bdd16a589d9
-DIST elasticsearch-7.3.2-no-jdk-linux-x86_64.tar.gz 140098396 BLAKE2B bb2eb1e69b459533ed785f244ebbdf06032f8115f298e4151164fa27c913c6cff674dc8e75d96734185ffe47c2dd16dff11f3f7447a21bd0020fd45e58abf5d4 SHA512 9d73f6fce0b5321099393c69b1ba8544f9fc919f5a850bac3eb5a77af50f392e8eeb20ff34ba85283649a19d9bee33351a4ffd363cda848d4d53cde91632e335
-DIST elasticsearch-7.4.1-no-jdk-linux-x86_64.tar.gz 140407217 BLAKE2B 5bf378d66a199de45375e9e07e650e9cdd8fbdd8868c8a81928571be4aaf2d2b1bacf6cde8e216a98b448d1d6ef0db89b2b410d5b2d0bd5e0b40309b7e68f7e6 SHA512 7714a0bd8a69bf921075b2020863469e9d44896e73b383ca073cb243eadd29dc9a76936530c33304fb2e8505dfdc88b7591ddca9543ee1cf11e74df3bebd5b25
-DIST elasticsearch-7.5.2-no-jdk-linux-x86_64.tar.gz 141758515 BLAKE2B 67b6a844c671ce5d33e16282c34ba9cb82d19511612f775e6e238854c1074fef33d03e0a001a111ffd514a3397413ab335c53a1d947cfa43c3a1221da3de065c SHA512 64d6b3f1d30869f53f26a7fc60b8ff7f6e06457bcd437404cb157801a9faeb6a61b890c52eadd614fac1fa18692a07383d01e539d52371cf84f23b5b1dbc73bd
-DIST elasticsearch-7.6.1-no-jdk-linux-x86_64.tar.gz 148131656 BLAKE2B c613168ff660038a0c34c50463aecf1ce3fa17b5dfd6032745ba49486c2b4283d7b5c4ae429be67c8523014555dec2627b431abf3bce53f817d3d22b31d2fab9 SHA512 7f5f73a0bf66052df7db95c0bd5219ee1a9662118d90a65b012afaf4eea16a6c4146f375e981260e4517743ccc48df779ccb9d9d59918124a8dcb517abd3f37b
DIST elasticsearch-7.6.2-no-jdk-linux-x86_64.tar.gz 148140124 BLAKE2B 9a850011533052d7a4041484936dfa2c8fe7f7976314147bc2b1d5f239bbdfe68a3593d3e0d2bb4d709a71e81aa7c200f9530921dab9d50c0ab3e349f4769ffb SHA512 aa5f499b26e92e19a673093fe2ff73c1c03a8da029b59cb83db43f9e2dfd7c650ee6a122bcf647b7e83f658ad9b9cc64092e6e7c1b4f8476f2973a6006b8df3c
-DIST elasticsearch-oss-6.7.1.tar.gz 68421385 BLAKE2B cf14f3babfc5dbe9de4c9e47c15b797ab7c73236936257043c435751a0d86348e34ee73d2a6785a9e1391edc1e00f9a56f922c368ef72a5d349175ee4735d43b SHA512 4865ebd3403593048b3f922769d6d09eb1d53a42cf206cdcba7c30e330b39d9bd57f9f0979a23fcf0ca7636d84ce85de210fdf655447fab7ecebb35bffdd3323
-DIST elasticsearch-oss-6.8.7.tar.gz 68646087 BLAKE2B c97dacb7f98dd6ce8980a4a0bd327bbaa8705cd045ed1ddc95ce1d0d3d8a535e2f871784b60247468b3cefa2e7401cc881ab6a4197aa0688c10abdf41774722d SHA512 ace12a099112ba16f8298d789dc0d4866349f54bdd66a9a6ba9bca08efb4387558d9962b2b2c28f3ed8ed1f02b1982dc13f7644f8805819137219c9a02fbaba1
DIST elasticsearch-oss-6.8.8.tar.gz 68655829 BLAKE2B 808b9dd49f7d9c9968e6e1c5dcd8d1150d3638b8380ad0608f1e85f00d98c6da6d0c9c324f244b510d35ecec0f37b40e29fd0761b83118e137cf394c231cc0e8 SHA512 7c5972d365a8a2a80c351039ff54a274bb1f95379d6f4feab4fa01360541bffa58409ffac6030acade24be54d1cc57e7ea24a7cf29531aba35a565718e30288d
-DIST elasticsearch-oss-7.2.1-no-jdk-linux-x86_64.tar.gz 68973563 BLAKE2B 5248a5e8443794134c55ef14d1b175ff931d599a45b4cbd0f187e864dd3d4b322f10df31672c0900417e84da0e83fd934234bba31dc116c5c3b6b9f14e9c62a6 SHA512 694aca59cc3e23bfcf41142d7bf3d3c75f6fcdb6d0a1b35157157cb2f4ac8152db1e424951e62ba1a2bd4a2d32a77bb9499085558b7e1580680c0de90fbc0902
-DIST elasticsearch-oss-7.3.2-no-jdk-linux-x86_64.tar.gz 69289138 BLAKE2B 2ab3658a2acf1899f44fb29252932862759dd134ffe4872daac15092f9a08b536492197b9cd44287ec48a7aaee1c3f78edf2957f807aaebac866bc835972a592 SHA512 abb183a05db25a877d4e5a8f8b75fba517444008f34e35e82806a6239c3ccec1c32dc787313b899be55caefdab8343a62db31f9491bffbabefaecccaba1210d0
-DIST elasticsearch-oss-7.4.1-no-jdk-linux-x86_64.tar.gz 68527811 BLAKE2B d8965b429d4ee9b7becdb0ff407ac1ae03322a5c17ab7e793569fdd4ebffa302d95772e7ba0f4ae505fd07b62c2e6983d57db9feec7fd4da42676166287b460b SHA512 a652905b130ace0097b5f51df1d2ef5977d0eda8b551acaf7b3d7015397b054f83a868874fdc96b95e2c780c65552001ee2a90cb7b9f88f43b5ea813d0b078dd
-DIST elasticsearch-oss-7.5.2-no-jdk-linux-x86_64.tar.gz 68711865 BLAKE2B 01a456d3965c83fe2a94e87b0f19dfbc89666f01fade36cff1b7733b24c91580bc95b9e0acf0d9134078715be890bfacdc6c0091cf56dfb9dc43e71bf387806c SHA512 ea494dfb743e5ea12dbbc269d8103fa08644c580291eb88b25000743d272aa87c8709ac9fb2939ad387d5d335f0795c943114b8471074bba7d583494bbc6d100
-DIST elasticsearch-oss-7.6.1-no-jdk-linux-x86_64.tar.gz 72567711 BLAKE2B 8fe3901cb3ce6577918f6b711f63e0ed8f10013a01ae8c197cda8e5592b2e7c99f0bb7179decc19e26ed160c21d7cfd66eedc3d6fc265e89244ce1c9a5ef27c5 SHA512 da396be8bceec32b5f4c4f9091edee51710f39f5aa1135c7c392719d9fdd0c99e92b681cf628135013a37fd881dd15540d6c660a50bb18b47991f0d723aadb64
DIST elasticsearch-oss-7.6.2-no-jdk-linux-x86_64.tar.gz 72570377 BLAKE2B 5a5ec3e79cba236dd4a6ffd279b0fca4ad882c877b418261b0314d8101885a2d2496c837b44e5dbefe5ed994aeeca488a8f08a2ba26c4b44b156c180dae6004c SHA512 6197a0b62f577cd0692c1fb97a473a9971f8fef383dc6ef618035785dbc662947d2adbc425ce130ef531cbfaf9add9ed5da5a698387e770c49af820644d67e72
diff --git a/app-misc/elasticsearch/elasticsearch-6.7.1.ebuild b/app-misc/elasticsearch/elasticsearch-6.7.1.ebuild
deleted file mode 100644
index 80521b9e40f..00000000000
--- a/app-misc/elasticsearch/elasticsearch-6.7.1.ebuild
+++ /dev/null
@@ -1,91 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd user
-
-DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
-HOMEPAGE="https://www.elastic.co/products/elasticsearch"
-SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz )
- !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}.tar.gz )"
-LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="x-pack"
-
-RDEPEND="virtual/jre:1.8"
-
-QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
-
-pkg_setup() {
- enewgroup ${PN}
- enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN}
-}
-
-src_prepare() {
- default
-
- rm bin/*.{bat,exe} LICENSE.txt NOTICE.txt || die
- rmdir logs || die
-
- if use x-pack; then
- rm bin/x-pack/*.bat || die
- rm -r modules/x-pack-ml/platform/{darwin,windows}-x86_64 || die
- fi
-}
-
-src_install() {
- keepdir /etc/${PN}
- keepdir /etc/${PN}/scripts
-
- insinto /etc/${PN}
- doins -r config/.
- rm -r config || die
-
- fowners root:${PN} /etc/${PN}
- fperms 2750 /etc/${PN}
-
- 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
-
- if use x-pack; then
- chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die
- fi
-
- keepdir /var/{lib,log}/${PN}
- fowners ${PN}:${PN} /var/{lib,log}/${PN}
- fperms 0750 /var/{lib,log}/${PN}
- dodir /usr/share/${PN}/plugins
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
-
- newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
- newinitd "${FILESDIR}/${PN}.init.5" ${PN}
-
- systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
- systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
- systemd_newunit "${FILESDIR}"/${PN}.service.3 ${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/${PN} into the configuration directory of the instance:"
- elog "/etc/${PN}/instance"
- elog
- ewarn "Please make sure you have proper permissions on /etc/${PN}"
- ewarn "prior to keystore generation or you may experience startup fails."
- ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
- ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
-}
diff --git a/app-misc/elasticsearch/elasticsearch-6.8.7.ebuild b/app-misc/elasticsearch/elasticsearch-6.8.7.ebuild
deleted file mode 100644
index 6191d3d9e2e..00000000000
--- a/app-misc/elasticsearch/elasticsearch-6.8.7.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd
-
-DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
-HOMEPAGE="https://www.elastic.co/products/elasticsearch"
-SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz )
- !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}.tar.gz )"
-LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="x-pack"
-
-RDEPEND="acct-group/elasticsearch
- acct-user/elasticsearch
- virtual/jre:1.8"
-
-QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
-
-src_prepare() {
- default
-
- rm bin/*.{bat,exe} LICENSE.txt NOTICE.txt || die
- rmdir logs || die
-
- if use x-pack; then
- rm bin/x-pack/*.bat || die
- rm -r modules/x-pack-ml/platform/{darwin,windows}-x86_64 || die
- fi
-}
-
-src_install() {
- keepdir /etc/${PN}
- keepdir /etc/${PN}/scripts
-
- insinto /etc/${PN}
- doins -r config/.
- rm -r config || die
-
- fowners root:${PN} /etc/${PN}
- fperms 2750 /etc/${PN}
-
- 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
-
- if use x-pack; then
- chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die
- fi
-
- keepdir /var/{lib,log}/${PN}
- fowners ${PN}:${PN} /var/{lib,log}/${PN}
- fperms 0750 /var/{lib,log}/${PN}
- dodir /usr/share/${PN}/plugins
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
-
- newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
- newinitd "${FILESDIR}/${PN}.init.6" ${PN}
-
- systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
- systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
- systemd_newunit "${FILESDIR}"/${PN}.service.3 ${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/${PN} into the configuration directory of the instance:"
- elog "/etc/${PN}/instance"
- elog
- ewarn "Please make sure you have proper permissions on /etc/${PN}"
- ewarn "prior to keystore generation or you may experience startup fails."
- ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
- ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
-}
diff --git a/app-misc/elasticsearch/elasticsearch-7.2.1.ebuild b/app-misc/elasticsearch/elasticsearch-7.2.1.ebuild
deleted file mode 100644
index 37f142d8774..00000000000
--- a/app-misc/elasticsearch/elasticsearch-7.2.1.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd user
-
-DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
-HOMEPAGE="https://www.elastic.co/products/elasticsearch"
-SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz )
- !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}-no-jdk-linux-x86_64.tar.gz )"
-LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="x-pack"
-
-RDEPEND="virtual/jre"
-
-QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
-
-pkg_setup() {
- enewgroup ${PN}
- enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN}
-}
-
-src_prepare() {
- default
-
- rm LICENSE.txt NOTICE.txt || die
- rmdir logs || die
-}
-
-src_install() {
- keepdir /etc/${PN}
- keepdir /etc/${PN}/scripts
-
- insinto /etc/${PN}
- doins -r config/.
- rm -r config || die
-
- fowners root:${PN} /etc/${PN}
- fperms 2750 /etc/${PN}
-
- 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
-
- if use x-pack; then
- chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die
- fi
-
- keepdir /var/{lib,log}/${PN}
- fowners ${PN}:${PN} /var/{lib,log}/${PN}
- fperms 0750 /var/{lib,log}/${PN}
- dodir /usr/share/${PN}/plugins
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
-
- newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
- newinitd "${FILESDIR}/${PN}.init.7" ${PN}
-
- systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
- systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
- systemd_newunit "${FILESDIR}"/${PN}.service.3 ${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/${PN} into the configuration directory of the instance:"
- elog "/etc/${PN}/instance"
- elog
- ewarn "Please make sure you have proper permissions on /etc/${PN}"
- ewarn "prior to keystore generation or you may experience startup fails."
- ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
- ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
-}
diff --git a/app-misc/elasticsearch/elasticsearch-7.3.2.ebuild b/app-misc/elasticsearch/elasticsearch-7.3.2.ebuild
deleted file mode 100644
index 4c17fb08c83..00000000000
--- a/app-misc/elasticsearch/elasticsearch-7.3.2.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd
-
-DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
-HOMEPAGE="https://www.elastic.co/products/elasticsearch"
-SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz )
- !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}-no-jdk-linux-x86_64.tar.gz )"
-LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="x-pack"
-
-RDEPEND="acct-group/elasticsearch
- acct-user/elasticsearch
- virtual/jre"
-
-QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
-
-src_prepare() {
- default
-
- rm LICENSE.txt NOTICE.txt || die
- rmdir logs || die
-}
-
-src_install() {
- keepdir /etc/${PN}
- keepdir /etc/${PN}/scripts
-
- insinto /etc/${PN}
- doins -r config/.
- rm -r config || die
-
- fowners root:${PN} /etc/${PN}
- fperms 2750 /etc/${PN}
-
- 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
-
- if use x-pack; then
- chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die
- fi
-
- keepdir /var/{lib,log}/${PN}
- fowners ${PN}:${PN} /var/{lib,log}/${PN}
- fperms 0750 /var/{lib,log}/${PN}
- dodir /usr/share/${PN}/plugins
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
-
- newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
- newinitd "${FILESDIR}/${PN}.init.7" ${PN}
-
- systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
- systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
- systemd_newunit "${FILESDIR}"/${PN}.service.3 ${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/${PN} into the configuration directory of the instance:"
- elog "/etc/${PN}/instance"
- elog
- ewarn "Please make sure you have proper permissions on /etc/${PN}"
- ewarn "prior to keystore generation or you may experience startup fails."
- ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
- ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
-}
diff --git a/app-misc/elasticsearch/elasticsearch-7.4.1.ebuild b/app-misc/elasticsearch/elasticsearch-7.4.1.ebuild
deleted file mode 100644
index 4c17fb08c83..00000000000
--- a/app-misc/elasticsearch/elasticsearch-7.4.1.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd
-
-DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
-HOMEPAGE="https://www.elastic.co/products/elasticsearch"
-SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz )
- !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}-no-jdk-linux-x86_64.tar.gz )"
-LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="x-pack"
-
-RDEPEND="acct-group/elasticsearch
- acct-user/elasticsearch
- virtual/jre"
-
-QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
-
-src_prepare() {
- default
-
- rm LICENSE.txt NOTICE.txt || die
- rmdir logs || die
-}
-
-src_install() {
- keepdir /etc/${PN}
- keepdir /etc/${PN}/scripts
-
- insinto /etc/${PN}
- doins -r config/.
- rm -r config || die
-
- fowners root:${PN} /etc/${PN}
- fperms 2750 /etc/${PN}
-
- 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
-
- if use x-pack; then
- chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die
- fi
-
- keepdir /var/{lib,log}/${PN}
- fowners ${PN}:${PN} /var/{lib,log}/${PN}
- fperms 0750 /var/{lib,log}/${PN}
- dodir /usr/share/${PN}/plugins
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
-
- newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
- newinitd "${FILESDIR}/${PN}.init.7" ${PN}
-
- systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
- systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
- systemd_newunit "${FILESDIR}"/${PN}.service.3 ${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/${PN} into the configuration directory of the instance:"
- elog "/etc/${PN}/instance"
- elog
- ewarn "Please make sure you have proper permissions on /etc/${PN}"
- ewarn "prior to keystore generation or you may experience startup fails."
- ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
- ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
-}
diff --git a/app-misc/elasticsearch/elasticsearch-7.5.2.ebuild b/app-misc/elasticsearch/elasticsearch-7.5.2.ebuild
deleted file mode 100644
index 2155270debe..00000000000
--- a/app-misc/elasticsearch/elasticsearch-7.5.2.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd
-
-DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
-HOMEPAGE="https://www.elastic.co/products/elasticsearch"
-SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz )
- !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}-no-jdk-linux-x86_64.tar.gz )"
-LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="x-pack"
-
-RDEPEND="acct-group/elasticsearch
- acct-user/elasticsearch
- virtual/jre"
-
-QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
-
-src_prepare() {
- default
-
- rm LICENSE.txt NOTICE.txt || die
- rmdir logs || die
-}
-
-src_install() {
- keepdir /etc/${PN}
- keepdir /etc/${PN}/scripts
-
- insinto /etc/${PN}
- doins -r config/.
- rm -r config || die
-
- fowners root:${PN} /etc/${PN}
- fperms 2750 /etc/${PN}
-
- 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
-
- if use x-pack; then
- chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die
- fi
-
- keepdir /var/{lib,log}/${PN}
- fowners ${PN}:${PN} /var/{lib,log}/${PN}
- fperms 0750 /var/{lib,log}/${PN}
- dodir /usr/share/${PN}/plugins
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
-
- newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
- newinitd "${FILESDIR}/${PN}.init.7" ${PN}
-
- systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
- systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
- systemd_newunit "${FILESDIR}"/${PN}.service.3 ${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/${PN} into the configuration directory of the instance:"
- elog "/etc/${PN}/instance"
- elog
- ewarn "Please make sure you have proper permissions on /etc/${PN}"
- ewarn "prior to keystore generation or you may experience startup fails."
- ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
- ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
-}
diff --git a/app-misc/elasticsearch/elasticsearch-7.6.1.ebuild b/app-misc/elasticsearch/elasticsearch-7.6.1.ebuild
deleted file mode 100644
index 2155270debe..00000000000
--- a/app-misc/elasticsearch/elasticsearch-7.6.1.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd
-
-DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
-HOMEPAGE="https://www.elastic.co/products/elasticsearch"
-SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz )
- !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}-no-jdk-linux-x86_64.tar.gz )"
-LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="x-pack"
-
-RDEPEND="acct-group/elasticsearch
- acct-user/elasticsearch
- virtual/jre"
-
-QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
-
-src_prepare() {
- default
-
- rm LICENSE.txt NOTICE.txt || die
- rmdir logs || die
-}
-
-src_install() {
- keepdir /etc/${PN}
- keepdir /etc/${PN}/scripts
-
- insinto /etc/${PN}
- doins -r config/.
- rm -r config || die
-
- fowners root:${PN} /etc/${PN}
- fperms 2750 /etc/${PN}
-
- 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
-
- if use x-pack; then
- chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die
- fi
-
- keepdir /var/{lib,log}/${PN}
- fowners ${PN}:${PN} /var/{lib,log}/${PN}
- fperms 0750 /var/{lib,log}/${PN}
- dodir /usr/share/${PN}/plugins
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
-
- newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
- newinitd "${FILESDIR}/${PN}.init.7" ${PN}
-
- systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
- systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
- systemd_newunit "${FILESDIR}"/${PN}.service.3 ${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/${PN} into the configuration directory of the instance:"
- elog "/etc/${PN}/instance"
- elog
- ewarn "Please make sure you have proper permissions on /etc/${PN}"
- ewarn "prior to keystore generation or you may experience startup fails."
- ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
- ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
-}
diff --git a/app-misc/elasticsearch/files/elasticsearch.init.5 b/app-misc/elasticsearch/files/elasticsearch.init.5
deleted file mode 100644
index b9dba6ca5d5..00000000000
--- a/app-misc/elasticsearch/files/elasticsearch.init.5
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/sbin/openrc-run
-
-name="Elasticsearch"
-description="Elasticsearch Server"
-
-ES_INSTANCE=${RC_SVCNAME#*.}
-
-if [ -n "${ES_INSTANCE}" ] && [ ${RC_SVCNAME} != "elasticsearch" ]; then
- ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
- CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
- DEFAULT_LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
-else
- ES_BASE_PATH="/var/lib/elasticsearch/_default"
- CONF_DIR="/etc/elasticsearch"
- DEFAULT_LOG_DIR="/var/log/elasticsearch/_default"
-fi
-
-ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
-ES_USER=${ES_USER:="elasticsearch"}
-ES_GROUP=${ES_GROUP:="elasticsearch"}
-ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
-MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
-MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
-
-DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
-LOG_DIR=${LOG_DIR:="${DEFAULT_LOG_DIR}"}
-
-if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
- ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
-fi
-
-export ES_INCLUDE
-export JAVA_HOME
-export JAVA_OPTS
-export ES_JVM_OPTIONS
-export ES_JAVA_OPTS
-export ES_STARTUP_SLEEP_TIME
-export ES_PATH_CONF="${CONF_DIR}"
-
-pidfile="/run/elasticsearch/${RC_SVCNAME}.pid"
-
-command="/usr/share/elasticsearch/bin/elasticsearch"
-command_args="-Epath.logs=${LOG_DIR} -Epath.data=${DATA_DIR}"
-command_args_background="--daemonize --pidfile=${pidfile}"
-command_user="${ES_USER}:${ES_GROUP}"
-required_files="${CONF_DIR}/elasticsearch.yml"
-retry="TERM/30/KILL/30"
-
-depend() {
- use net
-}
-
-start_pre() {
- if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
- sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
- fi
-
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/run/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
-
- # fails to start without keystore
- if [ ! -f "${CONF_DIR}/elasticsearch.keystore" ]; then
- "${ES_HOME}/bin/elasticsearch-keystore" create
- fi
-}
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2018-07-23 22:47 William Hubbs
0 siblings, 0 replies; 16+ messages in thread
From: William Hubbs @ 2018-07-23 22:47 UTC (permalink / raw
To: gentoo-commits
commit: 4b0ea052ce7061abdb6bc7efee5222bca9a26dc6
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 23 22:42:15 2018 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Jul 23 22:46:59 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b0ea052
app-misc/elasticsearch: 6.3.1-r2 bump for new service script
The update to the service script separates command_args and
command_args_background so that the script can be set up to use
supervise-daemon.
Closes: https://bugs.gentoo.org/show_bug.cgi?id=661916
Package-Manager: Portage-2.3.40, Repoman-2.3.9
.../elasticsearch/elasticsearch-6.3.1-r2.ebuild | 77 ++++++++++++++++++++++
app-misc/elasticsearch/files/elasticsearch.init.5 | 68 +++++++++++++++++++
2 files changed, 145 insertions(+)
diff --git a/app-misc/elasticsearch/elasticsearch-6.3.1-r2.ebuild b/app-misc/elasticsearch/elasticsearch-6.3.1-r2.ebuild
new file mode 100644
index 00000000000..1b8deddcf8c
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-6.3.1-r2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2018 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}/${PN}-oss-${PV}.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() {
+ default
+
+ rm -v bin/*.{bat,exe} LICENSE.txt || die
+}
+
+src_install() {
+ keepdir /etc/${PN}
+ keepdir /etc/${PN}/scripts
+
+ insinto /etc/${PN}
+ doins -r config/.
+ rm -rv config || die
+
+ fowners root:${PN} /etc/${PN}
+ fperms 2750 /etc/${PN}
+
+ 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}
+ fowners ${PN}:${PN} /var/{lib,log}/${PN}
+ fperms 0750 /var/{lib,log}/${PN}
+ dodir /usr/share/${PN}/plugins
+
+ insinto /etc/sysctl.d
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
+
+ newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
+ newinitd "${FILESDIR}/${PN}.init.5" ${PN}
+
+ systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
+ systemd_newunit "${FILESDIR}"/${PN}.service.3 ${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/${PN} into the configuration directory of the instance:"
+ elog "/etc/${PN}/instance"
+ elog
+ ewarn "Please make sure you have proper permissions on /etc/${PN}"
+ ewarn "prior to keystore generation or you may experience startup fails."
+ ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
+ ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch.init.5 b/app-misc/elasticsearch/files/elasticsearch.init.5
new file mode 100644
index 00000000000..b9dba6ca5d5
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.init.5
@@ -0,0 +1,68 @@
+#!/sbin/openrc-run
+
+name="Elasticsearch"
+description="Elasticsearch Server"
+
+ES_INSTANCE=${RC_SVCNAME#*.}
+
+if [ -n "${ES_INSTANCE}" ] && [ ${RC_SVCNAME} != "elasticsearch" ]; then
+ ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
+ CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
+ DEFAULT_LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
+else
+ ES_BASE_PATH="/var/lib/elasticsearch/_default"
+ CONF_DIR="/etc/elasticsearch"
+ DEFAULT_LOG_DIR="/var/log/elasticsearch/_default"
+fi
+
+ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
+ES_USER=${ES_USER:="elasticsearch"}
+ES_GROUP=${ES_GROUP:="elasticsearch"}
+ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
+MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
+MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
+
+DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
+LOG_DIR=${LOG_DIR:="${DEFAULT_LOG_DIR}"}
+
+if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
+ ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
+fi
+
+export ES_INCLUDE
+export JAVA_HOME
+export JAVA_OPTS
+export ES_JVM_OPTIONS
+export ES_JAVA_OPTS
+export ES_STARTUP_SLEEP_TIME
+export ES_PATH_CONF="${CONF_DIR}"
+
+pidfile="/run/elasticsearch/${RC_SVCNAME}.pid"
+
+command="/usr/share/elasticsearch/bin/elasticsearch"
+command_args="-Epath.logs=${LOG_DIR} -Epath.data=${DATA_DIR}"
+command_args_background="--daemonize --pidfile=${pidfile}"
+command_user="${ES_USER}:${ES_GROUP}"
+required_files="${CONF_DIR}/elasticsearch.yml"
+retry="TERM/30/KILL/30"
+
+depend() {
+ use net
+}
+
+start_pre() {
+ if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
+ sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
+ fi
+
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/run/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
+
+ # fails to start without keystore
+ if [ ! -f "${CONF_DIR}/elasticsearch.keystore" ]; then
+ "${ES_HOME}/bin/elasticsearch-keystore" create
+ fi
+}
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2018-07-16 13:44 Tony Vroon
0 siblings, 0 replies; 16+ messages in thread
From: Tony Vroon @ 2018-07-16 13:44 UTC (permalink / raw
To: gentoo-commits
commit: 4f3426c43a9f455b0dcd039da1c313a1d2af7779
Author: Tomas Mozes <tmozes <AT> sygic <DOT> com>
AuthorDate: Fri Jul 13 15:43:58 2018 +0000
Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
CommitDate: Mon Jul 16 13:44:46 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f3426c4
app-misc/elasticsearch: stop using /etc/conf.d for systemd
Closes: https://bugs.gentoo.org/646248
Package-Manager: Portage-2.3.42, Repoman-2.3.9
Closes: https://github.com/gentoo/gentoo/pull/9216
Closes: https://bugs.gentoo.org/646248
.../elasticsearch/elasticsearch-6.3.1-r1.ebuild | 77 ++++++++++++++++++++++
.../files/elasticsearch-systemd-pre-exec | 5 ++
.../elasticsearch/files/elasticsearch.service.3 | 51 ++++++++++++++
.../elasticsearch/files/elasticsearch.service.conf | 6 ++
4 files changed, 139 insertions(+)
diff --git a/app-misc/elasticsearch/elasticsearch-6.3.1-r1.ebuild b/app-misc/elasticsearch/elasticsearch-6.3.1-r1.ebuild
new file mode 100644
index 00000000000..1a6bec30a73
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-6.3.1-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2018 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}/${PN}-oss-${PV}.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() {
+ default
+
+ rm -v bin/*.{bat,exe} LICENSE.txt || die
+}
+
+src_install() {
+ keepdir /etc/${PN}
+ keepdir /etc/${PN}/scripts
+
+ insinto /etc/${PN}
+ doins -r config/.
+ rm -rv config || die
+
+ fowners root:${PN} /etc/${PN}
+ fperms 2750 /etc/${PN}
+
+ 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}
+ fowners ${PN}:${PN} /var/{lib,log}/${PN}
+ fperms 0750 /var/{lib,log}/${PN}
+ dodir /usr/share/${PN}/plugins
+
+ insinto /etc/sysctl.d
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
+
+ newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
+ newinitd "${FILESDIR}/${PN}.init.4" ${PN}
+
+ systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
+ systemd_newunit "${FILESDIR}"/${PN}.service.3 ${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/${PN} into the configuration directory of the instance:"
+ elog "/etc/${PN}/instance"
+ elog
+ ewarn "Please make sure you have proper permissions on /etc/${PN}"
+ ewarn "prior to keystore generation or you may experience startup fails."
+ ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
+ ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch-systemd-pre-exec b/app-misc/elasticsearch/files/elasticsearch-systemd-pre-exec
index a51d639bf7d..30f773638d3 100755
--- a/app-misc/elasticsearch/files/elasticsearch-systemd-pre-exec
+++ b/app-misc/elasticsearch/files/elasticsearch-systemd-pre-exec
@@ -5,3 +5,8 @@ if [ ! -z "$CONF_FILE" ]; then
echo "CONF_FILE setting is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed."
exit 1
fi
+
+# fails to start without keystore
+if [ ! -f "${ES_PATH_CONF}/elasticsearch.keystore" ]; then
+ "${ES_HOME}/bin/elasticsearch-keystore" create
+fi
diff --git a/app-misc/elasticsearch/files/elasticsearch.service.3 b/app-misc/elasticsearch/files/elasticsearch.service.3
new file mode 100644
index 00000000000..69d3550e7d9
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.service.3
@@ -0,0 +1,51 @@
+[Unit]
+Description=Elasticsearch
+Documentation=https://www.elastic.co
+Wants=network.target
+After=network.target
+
+[Service]
+Environment=ES_HOME=/usr/share/elasticsearch
+Environment=ES_PATH_CONF=/etc/elasticsearch
+Environment=DATA_DIR=/var/lib/elasticsearch
+Environment=LOG_DIR=/var/log/elasticsearch
+Environment=PID_DIR=/run/elasticsearch
+
+WorkingDirectory=/usr/share/elasticsearch
+
+User=elasticsearch
+Group=elasticsearch
+
+PermissionsStartOnly=true
+ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
+
+ExecStart=/usr/share/elasticsearch/bin/elasticsearch \
+ -p ${PID_DIR}/elasticsearch.pid \
+ -Epath.logs=${LOG_DIR} \
+ -Epath.data=${DATA_DIR}
+
+StandardOutput=journal
+StandardError=inherit
+
+# Specifies the maximum file descriptor number that can be opened by this process
+LimitNOFILE=65536
+
+# Specifies the maximum number of bytes of memory that may be locked into RAM
+# Set to "infinity" if you use the 'bootstrap.memory_lock: true' option
+# in elasticsearch.yml and 'MAX_LOCKED_MEMORY=unlimited' in /etc/conf.d/elasticsearch
+#LimitMEMLOCK=infinity
+
+# Disable timeout logic and wait until process is stopped
+TimeoutStopSec=0
+
+# SIGTERM signal is used to stop the Java process
+KillSignal=SIGTERM
+
+# Java process is never killed
+SendSIGKILL=no
+
+# When a JVM receives a SIGTERM signal it exits with code 143
+SuccessExitStatus=143
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-misc/elasticsearch/files/elasticsearch.service.conf b/app-misc/elasticsearch/files/elasticsearch.service.conf
new file mode 100644
index 00000000000..489f8c42c04
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.service.conf
@@ -0,0 +1,6 @@
+[Service]
+Environment="ES_HOME=/usr/share/elasticsearch"
+Environment="ES_PATH_CONF=/etc/elasticsearch"
+Environment="DATA_DIR=/var/lib/elasticsearch"
+Environment="LOG_DIR=/var/log/elasticsearch"
+Environment="PID_DIR=/run/elasticsearch"
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2018-07-11 14:32 Manuel Rüger
0 siblings, 0 replies; 16+ messages in thread
From: Manuel Rüger @ 2018-07-11 14:32 UTC (permalink / raw
To: gentoo-commits
commit: cdfe3b8da43ea8398bb39613ad31b7e5ed62eb37
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Wed Jul 11 13:57:02 2018 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Wed Jul 11 14:31:50 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdfe3b8d
app-misc/elasticsearch: bump to 6.3.1
Closes: https://bugs.gentoo.org/659594
Package-Manager: Portage-2.3.41, Repoman-2.3.9
app-misc/elasticsearch/Manifest | 1 +
app-misc/elasticsearch/elasticsearch-6.3.1.ebuild | 72 +++++++++++++++++++++++
app-misc/elasticsearch/files/elasticsearch.init.4 | 67 +++++++++++++++++++++
3 files changed, 140 insertions(+)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index 64efcfebf9f..cfcfe586df5 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,3 +1,4 @@
DIST elasticsearch-5.6.10.tar.gz 33796721 BLAKE2B 4e9d1d910a70acf32ca63cec811b711f692f3cf32dcec084a07f92d281eed07c067740bb5c5447055a6d0b6126e55a635edcd08c105dc59985db72bcd031a8a5 SHA512 17bd5710cfc3efa455428a79c74e63aacc9b9481d59a0b0df07ad4e4c25ef32dd41b3dbbde464a2801363b6d428a23eb52cc935640ce86bbc4d8a01dca8a1585
DIST elasticsearch-5.6.9.tar.gz 33794793 BLAKE2B a056443b1f71b3af773b5195147927017456e1c9a6517c549cfe7e4ec70f0ff4ec9363c9ef6376b7b942e82f811cd5927d44eb9f9eb8022a56e54a85b4ba7c46 SHA512 4e61a4c5f79d0439a414f1e9361f855cdb2f79322cf592bad43132605922fb8ded6368b01e05ef6bcbee49911943c2a3b6be5fd6d0900abddfe03c736cca96d6
DIST elasticsearch-6.2.4.tar.gz 29056810 BLAKE2B 121be27ac1db4fa6bbe285161b3f2b2dd889859b50f46b57b68ed43514568c4aa9629b5ca32edcc2328a6e7245256d64901c8acc8b2dd91337f8ca97b87c46e1 SHA512 9e6c0de8ed0d9e27fdd18ef7bada376af5a8680bb7a4f4d805926da456b349cee731ba90328b5eda5f0e62fa3f00f34646bf1c2b6c662d055f4be338d0690941
+DIST elasticsearch-oss-6.3.1.tar.gz 29417012 BLAKE2B 356665cde2f12ae5813d95302398f5fced07c53d25e6e1dc7ad41c8dc8ad42cd3d5bd4ffa6cab24af8088c29800f6ec59a483710272b756af2f76b5967d4b932 SHA512 3df0f7f35e150198f7ff660cf4d90fbd1c2ca587287c6340d427f968711b6390123bfafd09a744c9bdf328d57423bcb75f6e4701ce14a7257388611abea62545
diff --git a/app-misc/elasticsearch/elasticsearch-6.3.1.ebuild b/app-misc/elasticsearch/elasticsearch-6.3.1.ebuild
new file mode 100644
index 00000000000..f3e63754b4a
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-6.3.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2018 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}/${PN}-oss-${PV}.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() {
+ default
+
+ rm -v bin/*.{bat,exe} LICENSE.txt || die
+}
+
+src_install() {
+ keepdir /etc/${PN}
+ keepdir /etc/${PN}/scripts
+
+ insinto /etc/${PN}
+ doins -r config/.
+ rm -rv config || die
+
+ fowners root:${PN} /etc/${PN}
+ fperms 2750 /etc/${PN}
+
+ 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}
+ fowners ${PN}:${PN} /var/{lib,log}/${PN}
+ fperms 0750 /var/{lib,log}/${PN}
+ dodir /usr/share/${PN}/plugins
+
+ insinto /etc/sysctl.d
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
+
+ newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
+ newinitd "${FILESDIR}/${PN}.init.4" ${PN}
+
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
+ systemd_newunit "${FILESDIR}"/${PN}.service.2 ${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
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch.init.4 b/app-misc/elasticsearch/files/elasticsearch.init.4
new file mode 100644
index 00000000000..ac302776610
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.init.4
@@ -0,0 +1,67 @@
+#!/sbin/openrc-run
+
+name="Elasticsearch"
+description="Elasticsearch Server"
+
+ES_INSTANCE=${SVCNAME#*.}
+
+if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
+ ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
+ CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
+ DEFAULT_LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
+else
+ ES_BASE_PATH="/var/lib/elasticsearch/_default"
+ CONF_DIR="/etc/elasticsearch"
+ DEFAULT_LOG_DIR="/var/log/elasticsearch/_default"
+fi
+
+ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
+ES_USER=${ES_USER:="elasticsearch"}
+ES_GROUP=${ES_GROUP:="elasticsearch"}
+ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
+MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
+MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
+
+DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
+LOG_DIR=${LOG_DIR:="${DEFAULT_LOG_DIR}"}
+
+if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
+ ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
+fi
+
+export ES_INCLUDE
+export JAVA_HOME
+export JAVA_OPTS
+export ES_JVM_OPTIONS
+export ES_JAVA_OPTS
+export ES_STARTUP_SLEEP_TIME
+export ES_PATH_CONF="${CONF_DIR}"
+
+pidfile="/run/elasticsearch/${RC_SVCNAME}.pid"
+
+command="/usr/share/elasticsearch/bin/elasticsearch"
+command_args="--daemonize --pidfile=${pidfile} -Epath.logs=${LOG_DIR} -Epath.data=${DATA_DIR}"
+command_user="${ES_USER}:${ES_GROUP}"
+required_files="${CONF_DIR}/elasticsearch.yml"
+retry="TERM/30/KILL/30"
+
+depend() {
+ use net
+}
+
+start_pre() {
+ if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
+ sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
+ fi
+
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/run/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
+
+ # fails to start without keystore
+ if [ ! -f "${CONF_DIR}/elasticsearch.keystore" ]; then
+ "${ES_HOME}/bin/elasticsearch-keystore" create
+ fi
+}
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2018-05-25 13:14 Aaron Bauman
0 siblings, 0 replies; 16+ messages in thread
From: Aaron Bauman @ 2018-05-25 13:14 UTC (permalink / raw
To: gentoo-commits
commit: 5aba6790b2be028415d93da4bf9f47a31ba0a96b
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Thu May 24 12:09:16 2018 +0000
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Fri May 25 13:14:01 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5aba6790
app-misc/elasticsearch: drop unsupported version 1.7
https://www.elastic.co/support/eol
Package-Manager: Portage-2.3.38, Repoman-2.3.9
app-misc/elasticsearch/Manifest | 1 -
app-misc/elasticsearch/elasticsearch-1.7.6.ebuild | 71 -----------------
app-misc/elasticsearch/files/elasticsearch.conf | 60 --------------
app-misc/elasticsearch/files/elasticsearch.init | 95 -----------------------
app-misc/elasticsearch/files/elasticsearch.init.1 | 64 ---------------
5 files changed, 291 deletions(-)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index 681b13ab5b8..28c891fc7a1 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,3 +1,2 @@
-DIST elasticsearch-1.7.6.tar.gz 28488767 BLAKE2B 0dc4fb10355e2139ee3a7e7e65366e8aa533b9714bf0f00d2bd8f4ef0669ba9f8f10dc5255c8c7a62abc0362e08ab5fda3c8b6b6f2bacfe5cce7255973293162 SHA512 2746f09b66919912e785c8d25c50ae74dbb38a41d99d9c926550786f9c2d7953d1ae1a54a32dae59a7269e5fbfa74dfbc91c3d412e415efd01c391ef7d329ba7
DIST elasticsearch-5.6.9.tar.gz 33794793 BLAKE2B a056443b1f71b3af773b5195147927017456e1c9a6517c549cfe7e4ec70f0ff4ec9363c9ef6376b7b942e82f811cd5927d44eb9f9eb8022a56e54a85b4ba7c46 SHA512 4e61a4c5f79d0439a414f1e9361f855cdb2f79322cf592bad43132605922fb8ded6368b01e05ef6bcbee49911943c2a3b6be5fd6d0900abddfe03c736cca96d6
DIST elasticsearch-6.2.4.tar.gz 29056810 BLAKE2B 121be27ac1db4fa6bbe285161b3f2b2dd889859b50f46b57b68ed43514568c4aa9629b5ca32edcc2328a6e7245256d64901c8acc8b2dd91337f8ca97b87c46e1 SHA512 9e6c0de8ed0d9e27fdd18ef7bada376af5a8680bb7a4f4d805926da456b349cee731ba90328b5eda5f0e62fa3f00f34646bf1c2b6c662d055f4be338d0690941
diff --git a/app-misc/elasticsearch/elasticsearch-1.7.6.ebuild b/app-misc/elasticsearch/elasticsearch-1.7.6.ebuild
deleted file mode 100644
index eca489c9bd2..00000000000
--- a/app-misc/elasticsearch/elasticsearch-1.7.6.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-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
- }
- default
-}
-
-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.init.1" "${MY_PN}"
- newconfd "${FILESDIR}/${MY_PN}.conf.3" "${MY_PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service.2 "${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
-}
diff --git a/app-misc/elasticsearch/files/elasticsearch.conf b/app-misc/elasticsearch/files/elasticsearch.conf
deleted file mode 100644
index 444ec53ae33..00000000000
--- a/app-misc/elasticsearch/files/elasticsearch.conf
+++ /dev/null
@@ -1,60 +0,0 @@
-################################
-# Elasticsearch
-################################
-
-# Elasticsearch home directory
-#ES_HOME=/usr/share/elasticsearch
-
-# Elasticsearch Java path
-#JAVA_HOME=
-
-# Elasticsearch configuration directory
-#CONF_DIR=/etc/elasticsearch
-
-# Elasticsearch data directory
-#DATA_DIR=/var/lib/elasticsearch
-
-# Elasticsearch logs directory
-#LOG_DIR=/var/log/elasticsearch
-
-# Elasticsearch PID directory
-#PID_DIR=/run/elasticsearch
-
-# Additional Java OPTS
-#ES_JAVA_OPTS=
-
-################################
-# Elasticsearch service
-################################
-
-# When executing the init script, this user will be used to run the elasticsearch service.
-# The default value is 'elasticsearch' and is declared in the init.d file.
-# Note that this setting is only used by the init script. If changed, make sure that
-# the configured user can read and write into the data, work, plugins and log directories.
-# For systemd service, the user is usually configured in file /usr/lib/systemd/system/elasticsearch.service
-#ES_USER=elasticsearch
-#ES_GROUP=elasticsearch
-
-# The number of seconds to wait before checking if Elasticsearch started successfully as a daemon process
-#ES_STARTUP_SLEEP_TIME=5
-
-################################
-# System properties
-################################
-
-# Specifies the maximum file descriptor number that can be opened by this process
-# When using Systemd, this setting is ignored and the LimitNOFILE defined in
-# /usr/lib/systemd/system/elasticsearch.service takes precedence
-#MAX_OPEN_FILES=65536
-
-# The maximum number of bytes of memory that may be locked into RAM
-# Set to "unlimited" if you use the 'bootstrap.memory_lock: true' option
-# in elasticsearch.yml.
-# When using Systemd, the LimitMEMLOCK property must be set
-# in /usr/lib/systemd/system/elasticsearch.service
-#MAX_LOCKED_MEMORY=unlimited
-
-# Maximum number of VMA (Virtual Memory Areas) a process can own
-# When using Systemd, this setting is ignored and the 'vm.max_map_count'
-# property is set at boot time in /usr/lib/sysctl.d/elasticsearch.conf
-#MAX_MAP_COUNT=262144
diff --git a/app-misc/elasticsearch/files/elasticsearch.init b/app-misc/elasticsearch/files/elasticsearch.init
deleted file mode 100644
index a9200d58ca0..00000000000
--- a/app-misc/elasticsearch/files/elasticsearch.init
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/sbin/openrc-run
-
-name="Elasticsearch"
-description="Elasticsearch Server"
-
-ES_INSTANCE=${SVCNAME#*.}
-PID_DIR=${PID_DIR:="/run/elasticsearch"}
-
-if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
- PIDFILE="${PID_DIR}/elasticsearch.${ES_INSTANCE}.pid"
- ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
- CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
- LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
-else
- PIDFILE="${PID_DIR}/elasticsearch.pid"
- ES_BASE_PATH="/var/lib/elasticsearch/_default"
- CONF_DIR="/etc/elasticsearch"
- LOG_DIR="/var/log/elasticsearch/_default"
-fi
-
-ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
-ES_USER=${ES_USER:="elasticsearch"}
-ES_GROUP=${ES_GROUP:="elasticsearch"}
-ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
-MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
-MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
-
-DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
-
-if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
- ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
-fi
-
-export ES_INCLUDE
-export JAVA_HOME
-export JAVA_OPTS
-export ES_JVM_OPTIONS
-export ES_JAVA_OPTS
-export ES_STARTUP_SLEEP_TIME
-
-server_command="/usr/share/elasticsearch/bin/elasticsearch"
-server_args="-d -p ${PIDFILE} -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR}"
-
-depend() {
- use net
-}
-
-start() {
- local conf
- local conf_file
- for conf in elasticsearch.yml; do
- conf_file="${CONF_DIR}/${conf}"
- if [ ! -f "${conf_file}" ]; then
- eerror "${conf_file} must be copied into place"
- return 1
- fi
- done
-
- if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
- sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
- fi
-
- ebegin "Starting ${SVCNAME}"
-
- if [ -n "${MAX_LOCKED_MEMORY}" ]; then
- ulimit -l "${MAX_LOCKED_MEMORY}"
- fi
-
- if [ -n "${MAX_OPEN_FILES}" ]; then
- ulimit -n "${MAX_OPEN_FILES}"
- fi
-
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${PID_DIR}"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
-
- start-stop-daemon --start \
- --background \
- --chdir "${ES_HOME}" \
- --user="${ES_USER}" \
- --pidfile="${PIDFILE}" \
- --exec ${server_command} -- ${server_args}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop \
- --pidfile=${PIDFILE} \
- --user="${ES_USER}" \
- --retry=TERM/20
- eend $?
-}
diff --git a/app-misc/elasticsearch/files/elasticsearch.init.1 b/app-misc/elasticsearch/files/elasticsearch.init.1
deleted file mode 100644
index c44671c95d1..00000000000
--- a/app-misc/elasticsearch/files/elasticsearch.init.1
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/sbin/openrc-run
-
-name="Elasticsearch"
-description="Elasticsearch Server"
-
-ES_INSTANCE=${SVCNAME#*.}
-
-if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
- ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
- CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
- LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
-else
- ES_BASE_PATH="/var/lib/elasticsearch/_default"
- CONF_DIR="/etc/elasticsearch"
- LOG_DIR="/var/log/elasticsearch/_default"
-fi
-
-ES_DATA_PATH="${ES_BASE_PATH}/data"
-ES_WORK_PATH="${ES_BASE_PATH}/work"
-
-ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
-ES_USER=${ES_USER:="elasticsearch"}
-ES_GROUP=${ES_GROUP:="elasticsearch"}
-ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
-MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
-MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
-
-DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
-
-if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
- ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
-fi
-
-export ES_INCLUDE
-export JAVA_HOME
-export JAVA_OPTS
-export ES_JVM_OPTIONS
-export ES_JAVA_OPTS
-export ES_STARTUP_SLEEP_TIME
-export ES_PATH_CONF="${CONF_DIR}"
-
-pidfile="/run/elasticsearch/${RC_SVCNAME}.pid"
-
-command="/usr/share/elasticsearch/bin/elasticsearch"
-command_args="-d --pidfile=${pidfile} -Des.default.path.conf=\"${CONF_DIR}\" -Des.default.path.data=\"${ES_DATA_PATH}\" -Des.default.path.work=\"${ES_WORK_PATH}\" -Des.default.path.logs=\"${LOG_DIR}\""
-command_user="${ES_USER}:${ES_GROUP}"
-required_files="${CONF_DIR}/elasticsearch.yml"
-retry="TERM/30/KILL/30"
-
-depend() {
- use net
-}
-
-start_pre() {
- if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
- sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
- fi
-
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/run/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
-}
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2018-03-10 12:29 Amy Liffey
0 siblings, 0 replies; 16+ messages in thread
From: Amy Liffey @ 2018-03-10 12:29 UTC (permalink / raw
To: gentoo-commits
commit: 3daa676f81e230b25714f417f07e32c158c8a463
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Fri Mar 9 13:13:59 2018 +0000
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
CommitDate: Sat Mar 10 12:29:13 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3daa676f
app-misc/elasticsearch: bump to 5.6.8/6.2.2
Closes: https://bugs.gentoo.org/646388
Closes: https://bugs.gentoo.org/647826
Closes: https://github.com/gentoo/gentoo/pull/7405
Package-Manager: Portage-2.3.24, Repoman-2.3.6
app-misc/elasticsearch/Manifest | 2 +
app-misc/elasticsearch/elasticsearch-5.6.8.ebuild | 69 ++++++++++++++++++++++
app-misc/elasticsearch/elasticsearch-6.2.2.ebuild | 69 ++++++++++++++++++++++
.../elasticsearch/files/elasticsearch.service.2 | 1 -
4 files changed, 140 insertions(+), 1 deletion(-)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index 0c427d8c79b..c902d0af452 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,4 +1,6 @@
DIST elasticsearch-1.7.6.tar.gz 28488767 BLAKE2B 0dc4fb10355e2139ee3a7e7e65366e8aa533b9714bf0f00d2bd8f4ef0669ba9f8f10dc5255c8c7a62abc0362e08ab5fda3c8b6b6f2bacfe5cce7255973293162 SHA512 2746f09b66919912e785c8d25c50ae74dbb38a41d99d9c926550786f9c2d7953d1ae1a54a32dae59a7269e5fbfa74dfbc91c3d412e415efd01c391ef7d329ba7
DIST elasticsearch-5.6.6.tar.gz 33780290 BLAKE2B ce4014b8eb74098990d97d7d87a0bd88df06f6719772f310c97cc33e740f44e84ebf74750c1f81b77c713c661a0e2e9ca826b6ab91b3625023fb9a061005d8ef SHA512 582fc3c2d1dcd5c208c229307ce387015ef8b25d9974fcac9ad4b8b3bc1c983a27daa171f0f242d367cc0776c545a82c5a4c07f6340104e739d83831e0d2210c
+DIST elasticsearch-5.6.8.tar.gz 33781024 BLAKE2B 8b946b76997ed68baaeaab110f78824c21df7bd7647474f239996191d14c6ca9a5ae4ed564f998d036aa55074f2299e4e3214043058a1984ebfbe9fad1f5d230 SHA512 b306b7e09ad14aaf7e20c3dbac1bc1496b9cb4cfb98b6111aaabf955af88f3fa0d77c72153f278bec11356e022f5c339248d185618b47cb140717bbd3fae09cb
DIST elasticsearch-6.0.1.tar.gz 28026460 BLAKE2B a70cd36affaccccf1ea552167e585a35cc748de1137cf4b23387798ae31b851104ccc19f8be83ecc645bcebfba344b5e55a397a9cbb0b380c4a118f1f0ffecf2 SHA512 b86a04acd194e7e96e3a32de6ab4983d6569ffb1714f2af9e2b49623004987e13e57c5db055153a188f5d2d7eea63d649fa87769f7625f3fc4923e0cd5b8f3ee
DIST elasticsearch-6.1.2.tar.gz 28455845 BLAKE2B 36215cf3131c8ac24e9b974d6c12892679e1896242119bf88182a229286a8391fc9575b068c6e692b9931022df299920fdc5dbf8f04651bd4bcfd544c1b65b2e SHA512 c72e69700b60faf3b1a542c2317b83189926738affb38033c4b8d7cc0a1b3c21c4f743f441fb10657d4684111746ebb18c9dba2f54845ea6e02e4fb8dc950e5a
+DIST elasticsearch-6.2.2.tar.gz 29049540 BLAKE2B d3f52486f072721ed1e8766de50cdf3daf6f43ca0b53dbc61f49a14de861a0e193e85ecdd5365d65394d8569c3bda13ef8de4f115afc9e97b52d0b20927e5438 SHA512 e8363a3022b7c8d67be37bcdf4d026cefb166403dcdb19950fdf2da508eb0ccfe2b2e3717a60edb932b7b6f5ec94cd06726d4fc5c7bcdd24711df16945fb8c5c
diff --git a/app-misc/elasticsearch/elasticsearch-5.6.8.ebuild b/app-misc/elasticsearch/elasticsearch-5.6.8.ebuild
new file mode 100644
index 00000000000..26cfa98675c
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-5.6.8.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2018 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() {
+ default
+
+ rm -v bin/*.{bat,exe} LICENSE.txt || die
+}
+
+src_install() {
+ keepdir /etc/${PN}
+ keepdir /etc/${PN}/scripts
+
+ insinto /etc/${PN}
+ doins -r 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}
+ fowners ${PN}:${PN} /var/{lib,log}/${PN}
+ fperms 0750 /var/{lib,log}/${PN}
+ dodir /usr/share/${PN}/plugins
+
+ insinto /etc/sysctl.d
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
+
+ newconfd "${FILESDIR}/${PN}.conf.2" ${PN}
+ newinitd "${FILESDIR}/${PN}.init.2" ${PN}
+
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
+ 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
+}
diff --git a/app-misc/elasticsearch/elasticsearch-6.2.2.ebuild b/app-misc/elasticsearch/elasticsearch-6.2.2.ebuild
new file mode 100644
index 00000000000..4a1d5418c70
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-6.2.2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2018 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() {
+ default
+
+ rm -v bin/*.{bat,exe} LICENSE.txt || die
+}
+
+src_install() {
+ keepdir /etc/${PN}
+ keepdir /etc/${PN}/scripts
+
+ insinto /etc/${PN}
+ doins -r 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}
+ fowners ${PN}:${PN} /var/{lib,log}/${PN}
+ fperms 0750 /var/{lib,log}/${PN}
+ dodir /usr/share/${PN}/plugins
+
+ insinto /etc/sysctl.d
+ newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
+
+ newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
+ newinitd "${FILESDIR}/${PN}.init.3" ${PN}
+
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
+ systemd_newunit "${FILESDIR}"/${PN}.service.2 ${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
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch.service.2 b/app-misc/elasticsearch/files/elasticsearch.service.2
index 8db69326f26..65324693e8c 100644
--- a/app-misc/elasticsearch/files/elasticsearch.service.2
+++ b/app-misc/elasticsearch/files/elasticsearch.service.2
@@ -21,7 +21,6 @@ ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
ExecStart=/usr/share/elasticsearch/bin/elasticsearch \
-p ${PID_DIR}/elasticsearch.pid \
- -Epath.home=${ES_HOME} \
-Epath.logs=${LOG_DIR} \
-Epath.data=${DATA_DIR}
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2017-06-27 13:27 Patrice Clement
0 siblings, 0 replies; 16+ messages in thread
From: Patrice Clement @ 2017-06-27 13:27 UTC (permalink / raw
To: gentoo-commits
commit: b2607c41a5019e39fc72e266de264088c1b96292
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Tue Jun 27 12:22:50 2017 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Jun 27 13:27:43 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2607c41
app-misc/elasticsearch: version bump to 5.4.2, drop old and cleanup.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4997
app-misc/elasticsearch/Manifest | 3 +-
app-misc/elasticsearch/elasticsearch-2.4.4.ebuild | 79 ----------------
app-misc/elasticsearch/elasticsearch-5.1.2.ebuild | 6 +-
app-misc/elasticsearch/elasticsearch-5.2.2.ebuild | 6 +-
app-misc/elasticsearch/elasticsearch-5.3.3.ebuild | 6 +-
...rch-5.4.1.ebuild => elasticsearch-5.4.2.ebuild} | 6 +-
.../{elasticsearch.conf3 => elasticsearch.conf} | 0
app-misc/elasticsearch/files/elasticsearch.conf2 | 67 --------------
.../{elasticsearch.init8 => elasticsearch.init} | 0
app-misc/elasticsearch/files/elasticsearch.init6 | 103 ---------------------
app-misc/elasticsearch/files/elasticsearch.init7 | 95 -------------------
...lasticsearch.service6 => elasticsearch.service} | 0
.../elasticsearch/files/elasticsearch.service5 | 53 -----------
13 files changed, 13 insertions(+), 411 deletions(-)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index 8ba7fddf6fb..c9dd0a1c5c8 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,5 +1,4 @@
-DIST elasticsearch-2.4.4.tar.gz 27343272 SHA256 981092e6ca65ba5560b8b97a74e5ed0eb2236e9128efdb85bb652cec340158e2 SHA512 899a4d2fc64548bcd488ece223f5f189dfb191eceb36390c4b9d8d0d90ef9d2cb67ada475223b9b2e0bd0fb521a4ab978bc7f60781195927e36d027925338c14 WHIRLPOOL 1a90bb8c923a9eab6cc4390b3daaa44cd85d5c1a3a1a5ef7d274050eb25b061a11a91b0f57ebe9f3cb27aafee3267af8f63ca87837f79d622ff362fbc5b6ae1a
DIST elasticsearch-5.1.2.tar.gz 33299777 SHA256 74d752f9a8b46898d306ad169b72f328e17215c0909149e156a576089ef11c42 SHA512 1867626e8a87f11ed109e1325fd1d16c9e0af06ebe6a30c78ea679ab533ab377f5da8ea55af6871be33af226f02187a2aadd77e5e23c097dd24055be21e9d691 WHIRLPOOL 2e9df71c915343e2cc8ad82c59b877f41f5e093cbeba21f471c32cb51a195eccc6223bc48da48bb4af2e6bea9f2539f2e93b866963148f4ca2940ba4466e614e
DIST elasticsearch-5.2.2.tar.gz 33799732 SHA256 cf88930695794a8949342d386f028548bd10b26ecc8c4b422a94ea674faf8ac9 SHA512 670f8aa81a34191a13cc8c608a9dc7bec60c63bbed8fdb9bc0619585d644867576a7677eb0f14b4e4d064e59def186d4b431930bf79b54bcbf59a29b0b327e85 WHIRLPOOL 4ec1f3b5ed15b9f22d27512ea784ffe9e32e00808fec89418860955d2f4759d045775e18c0a61693da47f39de9f235de954eada231fbd6de5fbfd17f552e8452
DIST elasticsearch-5.3.3.tar.gz 33701608 SHA256 c7e23fddd74d66207b01dea777597c9d04c242973e1ac61aec0f13b716ebed1d SHA512 36fc00081af5555ceb0c0c6e8300c184d40e7176e084d899f2bfaafc3a36c6ba0f457c4bccde95a282d441fa26d84aba4ee1b8ef634831ffdef2f14feb725daa WHIRLPOOL ce641c9cb2071661a221f95fe38018ae2108ffdd855c70aafba4286da369cde461ff39afc674d650ca33925c350592d82e170b2e937e73e949279ca49850a325
-DIST elasticsearch-5.4.1.tar.gz 33321278 SHA256 09d6422bd33b82f065760cd49a31f2fec504f2a5255e497c81050fd3dceec485 SHA512 6b88c1f93516aea57af462ced95fd32f3b2639c919fbb00348f4ea12849ce88521e095d9a4c7d96a09b420ac4ed07c7ad6fc9c54c0f2fa1f9f8fa4ec36071cb3 WHIRLPOOL 4725922bb7bb3300f6ca13533beac07e4aeab3b3d44f7013bae53449c45da510bb123a8eebce8b6eed5e5ecdf5f0b4b93cdafd9d7f654fcf341fcd175936ef64
+DIST elasticsearch-5.4.2.tar.gz 33322090 SHA256 0206124d101a293b34b19cebee83fbf0e2a540f5214aabf133cde0719b896150 SHA512 cbeacdc9f6b391cea753a656f190f37db8130bcce3210356b63a0e27964aff6c079a3650f94242c6b98b0a87f58f6748fed02eb1f3a70495e9d6ccd09d138b7d WHIRLPOOL a7f1780934626230bcc48bcf8777bd29fc2dd548d234433414f6e4e33853c0362cc5be6273c8916b692d16636f1be39be0d8ccb8fad91d6e532905ad491af8ad
diff --git a/app-misc/elasticsearch/elasticsearch-2.4.4.ebuild b/app-misc/elasticsearch/elasticsearch-2.4.4.ebuild
deleted file mode 100644
index f3901ac933b..00000000000
--- a/app-misc/elasticsearch/elasticsearch-2.4.4.ebuild
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils systemd user
-
-DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
-HOMEPAGE="https://www.elastic.co/products/elasticsearch"
-SRC_URI="https://download.elasticsearch.org/${PN}/release/org/${PN}/distribution/tar/${PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_preinst() {
- if has_version '<app-misc/elasticsearch-2.3.2'; then
- export UPDATE_NOTES=1
- fi
-}
-
-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}
-
- 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}
- keepdir /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}.init6" "${PN}"
- newconfd "${FILESDIR}/${PN}.conf2" "${PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 and logging.yml"
- elog "into the configuration directory of the instance:"
- elog "/etc/${PN}/instance"
- elog
- if ! [ -z ${UPDATE_NOTES} ]; then
- elog "This update changes some configuration variables. Please review"
- elog "${EROOT%/}/etc/conf.d/elasticsearch before restarting your services."
- fi
-}
diff --git a/app-misc/elasticsearch/elasticsearch-5.1.2.ebuild b/app-misc/elasticsearch/elasticsearch-5.1.2.ebuild
index 279ff77b886..434ea6d44fa 100644
--- a/app-misc/elasticsearch/elasticsearch-5.1.2.ebuild
+++ b/app-misc/elasticsearch/elasticsearch-5.1.2.ebuild
@@ -58,9 +58,9 @@ src_install() {
insinto /etc/sysctl.d
newins "${FILESDIR}/${PN}.sysctl.d" "${PN}.conf"
- newinitd "${FILESDIR}/${PN}.init7" "${PN}"
- newconfd "${FILESDIR}/${PN}.conf3" "${PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service6 "${PN}.service"
+ newinitd "${FILESDIR}/${PN}.init" "${PN}"
+ newconfd "${FILESDIR}/${PN}.conf" "${PN}"
+ systemd_newunit "${FILESDIR}"/${PN}.service "${PN}.service"
}
pkg_postinst() {
diff --git a/app-misc/elasticsearch/elasticsearch-5.2.2.ebuild b/app-misc/elasticsearch/elasticsearch-5.2.2.ebuild
index 2ff60df7ea5..707ea90fc6f 100644
--- a/app-misc/elasticsearch/elasticsearch-5.2.2.ebuild
+++ b/app-misc/elasticsearch/elasticsearch-5.2.2.ebuild
@@ -52,9 +52,9 @@ src_install() {
insinto /etc/sysctl.d
newins "${FILESDIR}/${PN}.sysctl.d" "${PN}.conf"
- newinitd "${FILESDIR}/${PN}.init8" "${PN}"
- newconfd "${FILESDIR}/${PN}.conf3" "${PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service6 "${PN}.service"
+ newinitd "${FILESDIR}/${PN}.init" "${PN}"
+ newconfd "${FILESDIR}/${PN}.conf" "${PN}"
+ systemd_newunit "${FILESDIR}"/${PN}.service "${PN}.service"
}
pkg_postinst() {
diff --git a/app-misc/elasticsearch/elasticsearch-5.3.3.ebuild b/app-misc/elasticsearch/elasticsearch-5.3.3.ebuild
index d1e49f508e0..e19798d3a14 100644
--- a/app-misc/elasticsearch/elasticsearch-5.3.3.ebuild
+++ b/app-misc/elasticsearch/elasticsearch-5.3.3.ebuild
@@ -50,9 +50,9 @@ src_install() {
insinto /etc/sysctl.d
newins "${FILESDIR}/${PN}.sysctl.d" "${PN}.conf"
- newinitd "${FILESDIR}/${PN}.init8" "${PN}"
- newconfd "${FILESDIR}/${PN}.conf3" "${PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service6 "${PN}.service"
+ newinitd "${FILESDIR}/${PN}.init" "${PN}"
+ newconfd "${FILESDIR}/${PN}.conf" "${PN}"
+ systemd_newunit "${FILESDIR}"/${PN}.service "${PN}.service"
}
pkg_postinst() {
diff --git a/app-misc/elasticsearch/elasticsearch-5.4.1.ebuild b/app-misc/elasticsearch/elasticsearch-5.4.2.ebuild
similarity index 90%
rename from app-misc/elasticsearch/elasticsearch-5.4.1.ebuild
rename to app-misc/elasticsearch/elasticsearch-5.4.2.ebuild
index d1e49f508e0..e19798d3a14 100644
--- a/app-misc/elasticsearch/elasticsearch-5.4.1.ebuild
+++ b/app-misc/elasticsearch/elasticsearch-5.4.2.ebuild
@@ -50,9 +50,9 @@ src_install() {
insinto /etc/sysctl.d
newins "${FILESDIR}/${PN}.sysctl.d" "${PN}.conf"
- newinitd "${FILESDIR}/${PN}.init8" "${PN}"
- newconfd "${FILESDIR}/${PN}.conf3" "${PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service6 "${PN}.service"
+ newinitd "${FILESDIR}/${PN}.init" "${PN}"
+ newconfd "${FILESDIR}/${PN}.conf" "${PN}"
+ systemd_newunit "${FILESDIR}"/${PN}.service "${PN}.service"
}
pkg_postinst() {
diff --git a/app-misc/elasticsearch/files/elasticsearch.conf3 b/app-misc/elasticsearch/files/elasticsearch.conf
similarity index 100%
rename from app-misc/elasticsearch/files/elasticsearch.conf3
rename to app-misc/elasticsearch/files/elasticsearch.conf
diff --git a/app-misc/elasticsearch/files/elasticsearch.conf2 b/app-misc/elasticsearch/files/elasticsearch.conf2
deleted file mode 100644
index 053cd18d147..00000000000
--- a/app-misc/elasticsearch/files/elasticsearch.conf2
+++ /dev/null
@@ -1,67 +0,0 @@
-################################
-# Elasticsearch
-################################
-
-# Elasticsearch configuration directory
-#CONF_DIR=/etc/elasticsearch
-
-# Elasticsearch data directory
-#DATA_DIR=/var/lib/elasticsearch
-
-# Elasticsearch logs directory
-#LOG_DIR=/var/log/elasticsearch
-
-# Elasticsearch PID directory
-#PID_DIR=/run/elasticsearch
-
-# Heap size defaults to 256m min, 1g max
-# Set ES_HEAP_SIZE to 50% of available RAM, but no more than 31g
-#ES_HEAP_SIZE=2g
-
-# Heap new generation
-#ES_HEAP_NEWSIZE=
-
-# Maximum direct memory
-#ES_DIRECT_SIZE=
-
-# Additional Java OPTS
-#ES_JAVA_OPTS=
-
-# Path to the GC log file
-#ES_GC_LOG_FILE=/var/log/elasticsearch/gc.log
-
-################################
-# Elasticsearch service
-################################
-
-# When executing the init script, this user will be used to run the elasticsearch service.
-# The default value is 'elasticsearch' and is declared in the init.d file.
-# Note that this setting is only used by the init script. If changed, make sure that
-# the configured user can read and write into the data, work, plugins and log directories.
-# For systemd service, the user is usually configured in file /usr/lib/systemd/system/elasticsearch.service
-#ES_USER=elasticsearch
-#ES_GROUP=elasticsearch
-
-# The number of seconds to wait before checking if Elasticsearch started successfully as a daemon process
-#ES_STARTUP_SLEEP_TIME=5
-
-################################
-# System properties
-################################
-
-# Specifies the maximum file descriptor number that can be opened by this process
-# When using Systemd, this setting is ignored and the LimitNOFILE defined in
-# /usr/lib/systemd/system/elasticsearch.service takes precedence
-#MAX_OPEN_FILES=65535
-
-# The maximum number of bytes of memory that may be locked into RAM
-# Set to "unlimited" if you use the 'bootstrap.mlockall: true' option
-# in elasticsearch.yml (ES_HEAP_SIZE must also be set).
-# When using Systemd, the LimitMEMLOCK property must be set
-# in /usr/lib/systemd/system/elasticsearch.service
-#MAX_LOCKED_MEMORY=unlimited
-
-# Maximum number of VMA (Virtual Memory Areas) a process can own
-# When using Systemd, this setting is ignored and the 'vm.max_map_count'
-# property is set at boot time in /usr/lib/sysctl.d/elasticsearch.conf
-#MAX_MAP_COUNT=262144
diff --git a/app-misc/elasticsearch/files/elasticsearch.init8 b/app-misc/elasticsearch/files/elasticsearch.init
similarity index 100%
rename from app-misc/elasticsearch/files/elasticsearch.init8
rename to app-misc/elasticsearch/files/elasticsearch.init
diff --git a/app-misc/elasticsearch/files/elasticsearch.init6 b/app-misc/elasticsearch/files/elasticsearch.init6
deleted file mode 100644
index e3252c55c67..00000000000
--- a/app-misc/elasticsearch/files/elasticsearch.init6
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/sbin/openrc-run
-
-name="Elasticsearch"
-description="Elasticsearch Server"
-
-ES_INSTANCE=${SVCNAME#*.}
-PID_DIR=${PID_DIR:="/run/elasticsearch"}
-
-if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
- PIDFILE="${PID_DIR}/elasticsearch.${ES_INSTANCE}.pid"
- ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
- CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
- LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
-else
- PIDFILE="${PID_DIR}/elasticsearch.pid"
- ES_BASE_PATH="/var/lib/elasticsearch/_default"
- CONF_DIR="/etc/elasticsearch"
- LOG_DIR="/var/log/elasticsearch/_default"
-fi
-
-ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
-ES_USER=${ES_USER:="elasticsearch"}
-ES_GROUP=${ES_GROUP:="elasticsearch"}
-ES_GC_LOG_FILE=${ES_GC_LOG_FILE:="/dev/null"}
-MAX_OPEN_FILES=${MAX_OPEN_FILES:=65535}
-MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
-
-DATA_DIR="${ES_BASE_PATH}/data"
-
-if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
- ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
-fi
-
-export ES_INCLUDE
-export JAVA_OPTS
-export ES_JAVA_OPTS
-export ES_HEAP_SIZE
-export ES_HEAP_NEWSIZE
-export ES_DIRECT_SIZE
-export ES_GC_LOG_FILE
-export ES_STARTUP_SLEEP_TIME
-
-server_command="/usr/share/elasticsearch/bin/elasticsearch"
-server_args="-d -p ${PIDFILE} --default.path.home=${ES_HOME} --default.path.logs=${LOG_DIR} --default.path.data=${DATA_DIR} --default.path.conf=${CONF_DIR}"
-
-depend() {
- use net
-}
-
-start() {
- local conf
- local conf_file
- for conf in elasticsearch.yml logging.yml; do
- conf_file="${CONF_DIR}/${conf}"
- if [ ! -f "${conf_file}" ]; then
- eerror "${conf_file} must be copied into place"
- return 1
- fi
- done
-
- if [ -n "${MAX_LOCKED_MEMORY}" -a -z "${ES_HEAP_SIZE}" ]; then
- eerror "MAX_LOCKED_MEMORY is set - ES_HEAP_SIZE must also be set"
- return 1
- fi
-
- if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
- sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
- fi
-
- ebegin "Starting ${SVCNAME}"
-
- if [ -n "${MAX_LOCKED_MEMORY}" ]; then
- rc_ulimit="${rc_ulimit} -l ${MAX_LOCKED_MEMORY}"
- fi
-
- if [ -n "${MAX_OPEN_FILES}" ]; then
- rc_ulimit="${rc_ulimit} -n ${MAX_OPEN_FILES}"
- fi
-
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${PID_DIR}"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
- checkpath -d -o root:root -m755 "${CONF_DIR}/scripts"
-
- start-stop-daemon --start \
- --background \
- --chdir "${ES_HOME}" \
- --user="${ES_USER}" \
- --pidfile="${PIDFILE}" \
- --exec ${server_command} -- ${server_args}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop \
- --pidfile=${PIDFILE} \
- --user="${ES_USER}" \
- --retry=TERM/20
- eend $?
-}
diff --git a/app-misc/elasticsearch/files/elasticsearch.init7 b/app-misc/elasticsearch/files/elasticsearch.init7
deleted file mode 100644
index 65072d5f21d..00000000000
--- a/app-misc/elasticsearch/files/elasticsearch.init7
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/sbin/openrc-run
-
-name="Elasticsearch"
-description="Elasticsearch Server"
-
-ES_INSTANCE=${SVCNAME#*.}
-PID_DIR=${PID_DIR:="/run/elasticsearch"}
-
-if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
- PIDFILE="${PID_DIR}/elasticsearch.${ES_INSTANCE}.pid"
- ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
- CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
- LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
-else
- PIDFILE="${PID_DIR}/elasticsearch.pid"
- ES_BASE_PATH="/var/lib/elasticsearch/_default"
- CONF_DIR="/etc/elasticsearch"
- LOG_DIR="/var/log/elasticsearch/_default"
-fi
-
-ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
-ES_USER=${ES_USER:="elasticsearch"}
-ES_GROUP=${ES_GROUP:="elasticsearch"}
-ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
-MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
-MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
-
-DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
-
-if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
- ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
-fi
-
-export ES_INCLUDE
-export JAVA_HOME
-export JAVA_OPTS
-export ES_JVM_OPTIONS
-export ES_JAVA_OPTS
-export ES_STARTUP_SLEEP_TIME
-
-server_command="/usr/share/elasticsearch/bin/elasticsearch"
-server_args="-d -p ${PIDFILE} -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR}"
-
-depend() {
- use net
-}
-
-start() {
- local conf
- local conf_file
- for conf in elasticsearch.yml; do
- conf_file="${CONF_DIR}/${conf}"
- if [ ! -f "${conf_file}" ]; then
- eerror "${conf_file} must be copied into place"
- return 1
- fi
- done
-
- if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
- sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
- fi
-
- ebegin "Starting ${SVCNAME}"
-
- if [ -n "${MAX_LOCKED_MEMORY}" ]; then
- rc_ulimit="${rc_ulimit} -l ${MAX_LOCKED_MEMORY}"
- fi
-
- if [ -n "${MAX_OPEN_FILES}" ]; then
- rc_ulimit="${rc_ulimit} -n ${MAX_OPEN_FILES}"
- fi
-
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${PID_DIR}"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
- checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
-
- start-stop-daemon --start \
- --background \
- --chdir "${ES_HOME}" \
- --user="${ES_USER}" \
- --pidfile="${PIDFILE}" \
- --exec ${server_command} -- ${server_args}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop \
- --pidfile=${PIDFILE} \
- --user="${ES_USER}" \
- --retry=TERM/20
- eend $?
-}
diff --git a/app-misc/elasticsearch/files/elasticsearch.service6 b/app-misc/elasticsearch/files/elasticsearch.service
similarity index 100%
rename from app-misc/elasticsearch/files/elasticsearch.service6
rename to app-misc/elasticsearch/files/elasticsearch.service
diff --git a/app-misc/elasticsearch/files/elasticsearch.service5 b/app-misc/elasticsearch/files/elasticsearch.service5
deleted file mode 100644
index 80ece6480f1..00000000000
--- a/app-misc/elasticsearch/files/elasticsearch.service5
+++ /dev/null
@@ -1,53 +0,0 @@
-[Unit]
-Description=Elasticsearch
-Documentation=http://www.elastic.co
-Wants=network.target
-After=network.target
-
-[Service]
-Environment=ES_HOME=/usr/share/elasticsearch
-Environment=CONF_DIR=/etc/elasticsearch
-Environment=DATA_DIR=/var/lib/elasticsearch
-Environment=LOG_DIR=/var/log/elasticsearch
-Environment=PID_DIR=/run/elasticsearch
-EnvironmentFile=-/etc/conf.d/elasticsearch
-
-WorkingDirectory=/usr/share/elasticsearch
-
-User=elasticsearch
-Group=elasticsearch
-
-ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
-
-ExecStart=/usr/share/elasticsearch/bin/elasticsearch \
- -Des.pidfile=${PID_DIR}/elasticsearch.pid \
- -Des.default.path.home=${ES_HOME} \
- -Des.default.path.logs=${LOG_DIR} \
- -Des.default.path.data=${DATA_DIR} \
- -Des.default.path.conf=${CONF_DIR}
-
-StandardOutput=journal
-StandardError=inherit
-
-# Specifies the maximum file descriptor number that can be opened by this process
-LimitNOFILE=65535
-
-# Specifies the maximum number of bytes of memory that may be locked into RAM
-# Set to "infinity" if you use the 'bootstrap.mlockall: true' option
-# in elasticsearch.yml and 'MAX_LOCKED_MEMORY=unlimited' in /etc/conf.d/elasticsearch
-#LimitMEMLOCK=infinity
-
-# Disable timeout logic and wait until process is stopped
-TimeoutStopSec=0
-
-# SIGTERM signal is used to stop the Java process
-KillSignal=SIGTERM
-
-# Java process is never killed
-SendSIGKILL=no
-
-# When a JVM receives a SIGTERM signal it exits with code 143
-SuccessExitStatus=143
-
-[Install]
-WantedBy=multi-user.target
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2017-03-16 14:34 Amy Liffey
0 siblings, 0 replies; 16+ messages in thread
From: Amy Liffey @ 2017-03-16 14:34 UTC (permalink / raw
To: gentoo-commits
commit: 3a752b9a08b0a3db157c85100a1a23e4c4d895d1
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Fri Mar 10 14:10:56 2017 +0000
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
CommitDate: Thu Mar 16 14:33:45 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a752b9a
app-misc/elasticsearch: bump to 5.2.2
Closes: #4195
Package-Manager: Portage-2.3.3, Repoman-2.3.1
app-misc/elasticsearch/Manifest | 1 +
app-misc/elasticsearch/elasticsearch-5.2.2.ebuild | 70 +++++++++++++++++
app-misc/elasticsearch/files/elasticsearch.init8 | 95 +++++++++++++++++++++++
3 files changed, 166 insertions(+)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index f12537168d8..82a178c779e 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,2 +1,3 @@
DIST elasticsearch-2.4.4.tar.gz 27343272 SHA256 981092e6ca65ba5560b8b97a74e5ed0eb2236e9128efdb85bb652cec340158e2 SHA512 899a4d2fc64548bcd488ece223f5f189dfb191eceb36390c4b9d8d0d90ef9d2cb67ada475223b9b2e0bd0fb521a4ab978bc7f60781195927e36d027925338c14 WHIRLPOOL 1a90bb8c923a9eab6cc4390b3daaa44cd85d5c1a3a1a5ef7d274050eb25b061a11a91b0f57ebe9f3cb27aafee3267af8f63ca87837f79d622ff362fbc5b6ae1a
DIST elasticsearch-5.1.2.tar.gz 33299777 SHA256 74d752f9a8b46898d306ad169b72f328e17215c0909149e156a576089ef11c42 SHA512 1867626e8a87f11ed109e1325fd1d16c9e0af06ebe6a30c78ea679ab533ab377f5da8ea55af6871be33af226f02187a2aadd77e5e23c097dd24055be21e9d691 WHIRLPOOL 2e9df71c915343e2cc8ad82c59b877f41f5e093cbeba21f471c32cb51a195eccc6223bc48da48bb4af2e6bea9f2539f2e93b866963148f4ca2940ba4466e614e
+DIST elasticsearch-5.2.2.tar.gz 33799732 SHA256 cf88930695794a8949342d386f028548bd10b26ecc8c4b422a94ea674faf8ac9 SHA512 670f8aa81a34191a13cc8c608a9dc7bec60c63bbed8fdb9bc0619585d644867576a7677eb0f14b4e4d064e59def186d4b431930bf79b54bcbf59a29b0b327e85 WHIRLPOOL 4ec1f3b5ed15b9f22d27512ea784ffe9e32e00808fec89418860955d2f4759d045775e18c0a61693da47f39de9f235de954eada231fbd6de5fbfd17f552e8452
diff --git a/app-misc/elasticsearch/elasticsearch-5.2.2.ebuild b/app-misc/elasticsearch/elasticsearch-5.2.2.ebuild
new file mode 100644
index 00000000000..ba141a646d4
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-5.2.2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils 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"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RESTRICT="strip"
+
+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}
+ keepdir /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}.init8" "${PN}"
+ newconfd "${FILESDIR}/${PN}.conf3" "${PN}"
+ systemd_newunit "${FILESDIR}"/${PN}.service6 "${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
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch.init8 b/app-misc/elasticsearch/files/elasticsearch.init8
new file mode 100644
index 00000000000..a9200d58ca0
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.init8
@@ -0,0 +1,95 @@
+#!/sbin/openrc-run
+
+name="Elasticsearch"
+description="Elasticsearch Server"
+
+ES_INSTANCE=${SVCNAME#*.}
+PID_DIR=${PID_DIR:="/run/elasticsearch"}
+
+if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
+ PIDFILE="${PID_DIR}/elasticsearch.${ES_INSTANCE}.pid"
+ ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
+ CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
+ LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
+else
+ PIDFILE="${PID_DIR}/elasticsearch.pid"
+ ES_BASE_PATH="/var/lib/elasticsearch/_default"
+ CONF_DIR="/etc/elasticsearch"
+ LOG_DIR="/var/log/elasticsearch/_default"
+fi
+
+ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
+ES_USER=${ES_USER:="elasticsearch"}
+ES_GROUP=${ES_GROUP:="elasticsearch"}
+ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
+MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
+MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
+
+DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
+
+if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
+ ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
+fi
+
+export ES_INCLUDE
+export JAVA_HOME
+export JAVA_OPTS
+export ES_JVM_OPTIONS
+export ES_JAVA_OPTS
+export ES_STARTUP_SLEEP_TIME
+
+server_command="/usr/share/elasticsearch/bin/elasticsearch"
+server_args="-d -p ${PIDFILE} -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR}"
+
+depend() {
+ use net
+}
+
+start() {
+ local conf
+ local conf_file
+ for conf in elasticsearch.yml; do
+ conf_file="${CONF_DIR}/${conf}"
+ if [ ! -f "${conf_file}" ]; then
+ eerror "${conf_file} must be copied into place"
+ return 1
+ fi
+ done
+
+ if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
+ sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
+ fi
+
+ ebegin "Starting ${SVCNAME}"
+
+ if [ -n "${MAX_LOCKED_MEMORY}" ]; then
+ ulimit -l "${MAX_LOCKED_MEMORY}"
+ fi
+
+ if [ -n "${MAX_OPEN_FILES}" ]; then
+ ulimit -n "${MAX_OPEN_FILES}"
+ fi
+
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${PID_DIR}"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
+
+ start-stop-daemon --start \
+ --background \
+ --chdir "${ES_HOME}" \
+ --user="${ES_USER}" \
+ --pidfile="${PIDFILE}" \
+ --exec ${server_command} -- ${server_args}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop \
+ --pidfile=${PIDFILE} \
+ --user="${ES_USER}" \
+ --retry=TERM/20
+ eend $?
+}
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2017-03-02 5:31 Göktürk Yüksek
0 siblings, 0 replies; 16+ messages in thread
From: Göktürk Yüksek @ 2017-03-02 5:31 UTC (permalink / raw
To: gentoo-commits
commit: ce0c1b6e6b09eaefa401b7f2a19a6f3640f281a4
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Tue Feb 21 09:28:40 2017 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Thu Mar 2 05:28:50 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce0c1b6e
app-misc/elasticsearch: bump to 2.4.4/5.1.2
Package-Manager: portage-2.3.3
app-misc/elasticsearch/Manifest | 4 +-
...rch-2.4.3.ebuild => elasticsearch-2.4.4.ebuild} | 1 -
...rch-5.1.1.ebuild => elasticsearch-5.1.2.ebuild} | 2 +-
app-misc/elasticsearch/files/elasticsearch.init6 | 1 +
.../elasticsearch/files/elasticsearch.service6 | 53 ++++++++++++++++++++++
5 files changed, 57 insertions(+), 4 deletions(-)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index 2f1dc70955a..f12537168d8 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,2 +1,2 @@
-DIST elasticsearch-2.4.3.tar.gz 27342693 SHA256 01eb684943be01d4af3131c6795073187b1a5868b6525d9686cc0d7a315db12e SHA512 357a145050ba155d60239f0127e8b772705efcddc9246492d80792c65c613f82a87dd4e4ea4a36c9555a0b5a536a34e2168d57c5b851c36f042f9a52ab3e24a8 WHIRLPOOL 07cd05120ac3bb15cd65b29caca6cc847f0e21cae7ff9a1d1002bcb66a54334c85cfc739e05d8452ba128fb3bdecb6c6cc4726e498f4c9e4e7cb8995c7ea7c2b
-DIST elasticsearch-5.1.1.tar.gz 33291322 SHA256 cd45bafb1f74a7df9bad12c77b7bf3080069266bcbe0b256b0959ef2536e31e8 SHA512 2b5faf97c5ff41a9f12e21749d60f3632b39987d4886713ee9646110acdd17323d263168980d7dd4035732556b604acd68dc37ae7b805d84493075776b9d7bcd WHIRLPOOL ebb46d4a5643f09c0c903055c407a54d46264347924ca37cc73adfee3dd8a9bf2157b1be92b9b1d85636ea92b2d1f89d558c5413c804412996ea9bce42f1c3c6
+DIST elasticsearch-2.4.4.tar.gz 27343272 SHA256 981092e6ca65ba5560b8b97a74e5ed0eb2236e9128efdb85bb652cec340158e2 SHA512 899a4d2fc64548bcd488ece223f5f189dfb191eceb36390c4b9d8d0d90ef9d2cb67ada475223b9b2e0bd0fb521a4ab978bc7f60781195927e36d027925338c14 WHIRLPOOL 1a90bb8c923a9eab6cc4390b3daaa44cd85d5c1a3a1a5ef7d274050eb25b061a11a91b0f57ebe9f3cb27aafee3267af8f63ca87837f79d622ff362fbc5b6ae1a
+DIST elasticsearch-5.1.2.tar.gz 33299777 SHA256 74d752f9a8b46898d306ad169b72f328e17215c0909149e156a576089ef11c42 SHA512 1867626e8a87f11ed109e1325fd1d16c9e0af06ebe6a30c78ea679ab533ab377f5da8ea55af6871be33af226f02187a2aadd77e5e23c097dd24055be21e9d691 WHIRLPOOL 2e9df71c915343e2cc8ad82c59b877f41f5e093cbeba21f471c32cb51a195eccc6223bc48da48bb4af2e6bea9f2539f2e93b866963148f4ca2940ba4466e614e
diff --git a/app-misc/elasticsearch/elasticsearch-2.4.3.ebuild b/app-misc/elasticsearch/elasticsearch-2.4.4.ebuild
similarity index 98%
rename from app-misc/elasticsearch/elasticsearch-2.4.3.ebuild
rename to app-misc/elasticsearch/elasticsearch-2.4.4.ebuild
index 57a8b23eb59..f3901ac933b 100644
--- a/app-misc/elasticsearch/elasticsearch-2.4.3.ebuild
+++ b/app-misc/elasticsearch/elasticsearch-2.4.4.ebuild
@@ -36,7 +36,6 @@ src_prepare() {
src_install() {
keepdir /etc/${PN}
- dodir /etc/${PN}/scripts
insinto /etc/${PN}
doins config/*
diff --git a/app-misc/elasticsearch/elasticsearch-5.1.1.ebuild b/app-misc/elasticsearch/elasticsearch-5.1.2.ebuild
similarity index 96%
rename from app-misc/elasticsearch/elasticsearch-5.1.1.ebuild
rename to app-misc/elasticsearch/elasticsearch-5.1.2.ebuild
index 45059715f60..1d57516b9fa 100644
--- a/app-misc/elasticsearch/elasticsearch-5.1.1.ebuild
+++ b/app-misc/elasticsearch/elasticsearch-5.1.2.ebuild
@@ -60,7 +60,7 @@ src_install() {
newinitd "${FILESDIR}/${PN}.init7" "${PN}"
newconfd "${FILESDIR}/${PN}.conf3" "${PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service5 "${PN}.service"
+ systemd_newunit "${FILESDIR}"/${PN}.service6 "${PN}.service"
}
pkg_postinst() {
diff --git a/app-misc/elasticsearch/files/elasticsearch.init6 b/app-misc/elasticsearch/files/elasticsearch.init6
index 9b11ed61db9..e3252c55c67 100644
--- a/app-misc/elasticsearch/files/elasticsearch.init6
+++ b/app-misc/elasticsearch/files/elasticsearch.init6
@@ -82,6 +82,7 @@ start() {
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${PID_DIR}"
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
+ checkpath -d -o root:root -m755 "${CONF_DIR}/scripts"
start-stop-daemon --start \
--background \
diff --git a/app-misc/elasticsearch/files/elasticsearch.service6 b/app-misc/elasticsearch/files/elasticsearch.service6
new file mode 100644
index 00000000000..927acef5ee8
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.service6
@@ -0,0 +1,53 @@
+[Unit]
+Description=Elasticsearch
+Documentation=http://www.elastic.co
+Wants=network.target
+After=network.target
+
+[Service]
+Environment=ES_HOME=/usr/share/elasticsearch
+Environment=CONF_DIR=/etc/elasticsearch
+Environment=DATA_DIR=/var/lib/elasticsearch
+Environment=LOG_DIR=/var/log/elasticsearch
+Environment=PID_DIR=/run/elasticsearch
+EnvironmentFile=-/etc/conf.d/elasticsearch
+
+WorkingDirectory=/usr/share/elasticsearch
+
+User=elasticsearch
+Group=elasticsearch
+
+ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
+
+ExecStart=/usr/share/elasticsearch/bin/elasticsearch \
+ -p ${PID_DIR}/elasticsearch.pid \
+ -Edefault.path.home=${ES_HOME} \
+ -Edefault.path.logs=${LOG_DIR} \
+ -Edefault.path.data=${DATA_DIR} \
+ -Edefault.path.conf=${CONF_DIR}
+
+StandardOutput=journal
+StandardError=inherit
+
+# Specifies the maximum file descriptor number that can be opened by this process
+LimitNOFILE=65536
+
+# Specifies the maximum number of bytes of memory that may be locked into RAM
+# Set to "infinity" if you use the 'bootstrap.memory_lock: true' option
+# in elasticsearch.yml and 'MAX_LOCKED_MEMORY=unlimited' in /etc/conf.d/elasticsearch
+#LimitMEMLOCK=infinity
+
+# Disable timeout logic and wait until process is stopped
+TimeoutStopSec=0
+
+# SIGTERM signal is used to stop the Java process
+KillSignal=SIGTERM
+
+# Java process is never killed
+SendSIGKILL=no
+
+# When a JVM receives a SIGTERM signal it exits with code 143
+SuccessExitStatus=143
+
+[Install]
+WantedBy=multi-user.target
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2017-01-15 17:37 Göktürk Yüksek
0 siblings, 0 replies; 16+ messages in thread
From: Göktürk Yüksek @ 2017-01-15 17:37 UTC (permalink / raw
To: gentoo-commits
commit: 91f36d4c36a3a57c17d7e23e43a0b727e45490b3
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Sat Jan 7 07:00:36 2017 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Sun Jan 15 17:37:13 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91f36d4c
app-misc/elasticsearch: bump to 2.4.3
app-misc/elasticsearch/Manifest | 1 +
app-misc/elasticsearch/elasticsearch-2.4.3.ebuild | 81 +++++++++++++++++++++++
app-misc/elasticsearch/files/elasticsearch.init6 | 2 +-
3 files changed, 83 insertions(+), 1 deletion(-)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index 8a0068b..3b15d7d 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -12,6 +12,7 @@ DIST elasticsearch-2.3.4.tar.gz 27547169 SHA256 371e0c5f4ded0a8548f1cce55faff3ef
DIST elasticsearch-2.3.5.tar.gz 27547995 SHA256 1119a8c18620b98c4b85261318663a1f26dea92a26f34dfeb7f813fb7cbb468a SHA512 9c0cc8a9ae0fa2b52db583a5c006b05a84c1f84e1b8dbbafa88bec111190d056a23bd384d4241ce00dc8b56a6840857b296e4c0d2bf911f352ef67f128a87ca7 WHIRLPOOL de2aee3773d14c9b4abc0f20c3c8df1fe374a91ea54493f2c1df59fb8c02c97d684fd94b6bfaf140eebcfea4913197b10469b5aef34f62db89d825ae508a5095
DIST elasticsearch-2.4.0.tar.gz 27364449 SHA256 3ae01140ae7bcbb91436feef381fbed774e36ef6d1e8e6a3153640db82acf4c9 SHA512 931f4d42cba43131718ec7480439b5fda0b9222a51cf9639d99ab4c00bdbedbe7e8da7a6016d88b848772cd416bc49fe7af09202160cecf839e39d803b45e869 WHIRLPOOL e03a2f7a6ea5913ce112b82e8578183c401f2d5901070a77c509ddbe7333fe62622fb2bb3e0f786a914bb15c56793e8b13220ae4588271baa3bbbcdf86223f47
DIST elasticsearch-2.4.1.tar.gz 27364109 SHA256 23a369ef42955c19aaaf9e34891eea3a055ed217d7fbe76da0998a7a54bbe167 SHA512 69b22d5c2fc93e9bc83c5da415e110105d4d977aa98633041f51f8c55ba9e6045803584965367f6e1f962122ad81a8e07fefcc5a01c5381057ec921d65bc1751 WHIRLPOOL 893056d0cd23ae41e2cb9e3db4591108777b4360ad6be5c52782cc98379ab0f0c36b42758f9815fbaf8557c9e06723c03765fd9eb4cbfcf9fe0d3203d8e6039d
+DIST elasticsearch-2.4.3.tar.gz 27342693 SHA256 01eb684943be01d4af3131c6795073187b1a5868b6525d9686cc0d7a315db12e SHA512 357a145050ba155d60239f0127e8b772705efcddc9246492d80792c65c613f82a87dd4e4ea4a36c9555a0b5a536a34e2168d57c5b851c36f042f9a52ab3e24a8 WHIRLPOOL 07cd05120ac3bb15cd65b29caca6cc847f0e21cae7ff9a1d1002bcb66a54334c85cfc739e05d8452ba128fb3bdecb6c6cc4726e498f4c9e4e7cb8995c7ea7c2b
DIST elasticsearch-5.0.0.tar.gz 32968292 SHA256 a866534f0fa7428e980c985d712024feef1dee04709add6e360fc7b73bb1e7ae SHA512 a4fa650d643c242a1f90059cfe6eb27e3d240b3deafc426abeae72c13aeae84b01ffb8b872b748619dfc58225ca29bde054fe10e1529522f9a06a1051991e4cd WHIRLPOOL a05a6dc785c00bb461ea286490cacc0222f9f95f0dea7ba61c6308cee0284edc53ee0a2047f723e990fa99f7ed09feda46313997b8f6dd487b042a6b26ecf8d6
DIST elasticsearch-5.0.1.tar.gz 32944777 SHA256 542e197485fbcb1aac46097439337d2e9ac6a54b7b1e29ad17761f4d65898833 SHA512 3c4c5a692cc77b01b978d3a02f049fcce36b573b6a2097a9d6714618ec0e6de0583f750516ba461eb1d13386ffad636d8663134452edaaeb2b8889c701316598 WHIRLPOOL d5ceb8e87e36be880f3bf746bfa52f7431d62ff9cd666c9dc64093760474d973ffcad792fd0a5927bef61a8e36c2fced76e03eae42e77eb1d158dcd05579b858
DIST elasticsearch-5.1.1.tar.gz 33291322 SHA256 cd45bafb1f74a7df9bad12c77b7bf3080069266bcbe0b256b0959ef2536e31e8 SHA512 2b5faf97c5ff41a9f12e21749d60f3632b39987d4886713ee9646110acdd17323d263168980d7dd4035732556b604acd68dc37ae7b805d84493075776b9d7bcd WHIRLPOOL ebb46d4a5643f09c0c903055c407a54d46264347924ca37cc73adfee3dd8a9bf2157b1be92b9b1d85636ea92b2d1f89d558c5413c804412996ea9bce42f1c3c6
diff --git a/app-misc/elasticsearch/elasticsearch-2.4.3.ebuild b/app-misc/elasticsearch/elasticsearch-2.4.3.ebuild
new file mode 100644
index 00000000..1f83e97
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-2.4.3.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils systemd user
+
+DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
+HOMEPAGE="https://www.elastic.co/products/elasticsearch"
+SRC_URI="https://download.elasticsearch.org/${PN}/release/org/${PN}/distribution/tar/${PN}/${PV}/${P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RESTRICT="strip"
+
+RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
+
+pkg_preinst() {
+ if has_version '<app-misc/elasticsearch-2.3.2'; then
+ export UPDATE_NOTES=1
+ fi
+}
+
+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}
+ dodir /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/*
+
+ keepdir /var/{lib,log}/${PN}
+ keepdir /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}.init6" "${PN}"
+ newconfd "${FILESDIR}/${PN}.conf2" "${PN}"
+ systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 and logging.yml"
+ elog "into the configuration directory of the instance:"
+ elog "/etc/${PN}/instance"
+ elog
+ if ! [ -z ${UPDATE_NOTES} ]; then
+ elog "This update changes some configuration variables. Please review"
+ elog "${EROOT%/}/etc/conf.d/elasticsearch before restarting your services."
+ fi
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch.init6 b/app-misc/elasticsearch/files/elasticsearch.init6
index dd33148..9b11ed6 100644
--- a/app-misc/elasticsearch/files/elasticsearch.init6
+++ b/app-misc/elasticsearch/files/elasticsearch.init6
@@ -21,7 +21,7 @@ fi
ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
ES_USER=${ES_USER:="elasticsearch"}
ES_GROUP=${ES_GROUP:="elasticsearch"}
-ES_GC_LOG_FILE=${ES_GC_LOG_FILE:="${LOG_DIR}/gc.log"}
+ES_GC_LOG_FILE=${ES_GC_LOG_FILE:="/dev/null"}
MAX_OPEN_FILES=${MAX_OPEN_FILES:=65535}
MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2017-01-15 17:37 Göktürk Yüksek
0 siblings, 0 replies; 16+ messages in thread
From: Göktürk Yüksek @ 2017-01-15 17:37 UTC (permalink / raw
To: gentoo-commits
commit: 6a2b4da3823a3278fb65cfe63cb684d6f078d5eb
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Sat Jan 7 07:03:29 2017 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Sun Jan 15 17:37:22 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a2b4da3
app-misc/elasticsearch: drop old
app-misc/elasticsearch/Manifest | 16 ----
app-misc/elasticsearch/elasticsearch-1.7.4.ebuild | 71 ------------------
app-misc/elasticsearch/elasticsearch-1.7.5.ebuild | 71 ------------------
app-misc/elasticsearch/elasticsearch-2.1.1.ebuild | 62 ---------------
app-misc/elasticsearch/elasticsearch-2.1.2.ebuild | 62 ---------------
app-misc/elasticsearch/elasticsearch-2.2.0.ebuild | 62 ---------------
app-misc/elasticsearch/elasticsearch-2.2.2.ebuild | 62 ---------------
app-misc/elasticsearch/elasticsearch-2.3.0.ebuild | 62 ---------------
app-misc/elasticsearch/elasticsearch-2.3.1.ebuild | 62 ---------------
app-misc/elasticsearch/elasticsearch-2.3.2.ebuild | 76 -------------------
app-misc/elasticsearch/elasticsearch-2.3.3.ebuild | 76 -------------------
app-misc/elasticsearch/elasticsearch-2.3.4.ebuild | 76 -------------------
app-misc/elasticsearch/elasticsearch-2.3.5.ebuild | 82 --------------------
app-misc/elasticsearch/elasticsearch-2.4.0.ebuild | 82 --------------------
app-misc/elasticsearch/elasticsearch-2.4.1.ebuild | 82 --------------------
app-misc/elasticsearch/elasticsearch-5.0.0.ebuild | 84 ---------------------
.../elasticsearch/elasticsearch-5.0.1-r1.ebuild | 84 ---------------------
app-misc/elasticsearch/elasticsearch-5.0.1.ebuild | 84 ---------------------
app-misc/elasticsearch/files/elasticsearch.conf | 20 -----
app-misc/elasticsearch/files/elasticsearch.init4 | 87 ----------------------
app-misc/elasticsearch/files/elasticsearch.init5 | 87 ----------------------
.../elasticsearch/files/elasticsearch.service4 | 11 ---
22 files changed, 1461 deletions(-)
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
index 3b15d7d..2f1dc70 100644
--- a/app-misc/elasticsearch/Manifest
+++ b/app-misc/elasticsearch/Manifest
@@ -1,18 +1,2 @@
-DIST elasticsearch-1.7.4.tar.gz 28510433 SHA256 395f3417c26a6b36125f6a062c1129b454a961efea09151c692adc63562e5a94 SHA512 7a31c274a833d0f27dbfd54ce6c8d8f6d01562289e1c4c9258a7c338f3e4ecc9d842d2a5c0c804f333f9cdf9dcfec437640fb4a4e5cfdda3fa958bdb7a402022 WHIRLPOOL 0acff3f5b8047c2647b716d57255e7f884f06ea57e468c784e1a84742b47973570d175a723a4341c54a027b9a442c89e9bed2f66bb29c292d6c59ca40ffb3855
-DIST elasticsearch-1.7.5.tar.gz 28487351 SHA256 0aa58947d66b487488e86059352deb7c6cab5da4accdff043cce9fed7c3d2fa7 SHA512 372e9edf5bd9f68c476e15276fc90cf2ecddbafde17fe803e6a50261c2d3a80616a9440d86494d8cfa411703f87cf053d31c62f4cdee260d64cdc0c07b5741ba WHIRLPOOL e4b02117d868dd1998639aa6fa513928d2af6f9226da1d61e84c674941130b7b960aea44bc51f09f0dc852946ad41ad38ca209c4b50351afc451f329ad51f715
-DIST elasticsearch-2.1.1.tar.gz 29007342 SHA256 ebd69c0483f20ba7e51caa9606d4e3ce5fe2667e1216c799f0cdbb815c317ce6 SHA512 eff12cd7342dc0036dc88f03ced9c7cc90d284222efeca86adfd9e4cf254cb8f96105c58673b239cfc9eb9764a2a669d2cd171ca73eb43b1ec1470a13c5e1776 WHIRLPOOL 2b0e069d162ee07eddc90d879d4ce5dd2cef9e4a804a9aaeb3d99e5d532f583589e2c6a36b5e856bf19a610f220eea6aaa75d28e7b6687b60eab7bf83b2def51
-DIST elasticsearch-2.1.2.tar.gz 29008904 SHA256 069cf3ab88a36d01f86e54b46169891b0adef6eda126ea35e540249d904022e1 SHA512 25757972839e644719f0c129d862bb342bb3d76df19328b9a7e59ca65c62c695e61d8bb21a2a5bd20841b8fd5ba981cd35e83dc2c78a958a344b798b9e71c714 WHIRLPOOL aab6c78edf24101d72ca619d01617661c8701c29c9b49222262c1573912a2ab7eceeca21a367fdc7d600a38c4b381abd9ec4bf5ea59ee9f59e5fe97a76750453
-DIST elasticsearch-2.2.0.tar.gz 29419005 SHA256 ed70cc81e1f55cd5f0032beea2907227b6ad8e7457dcb75ddc97a2cc6e054d30 SHA512 b1c9d10ba6c778fe1a440c058b4968bae1cfb81cff9e00508e406ce02ec5eb889b6d7caf8fb69ef132a2e681b127fbe3b71c6298ee0c9f047aeaeec29cdc1cc6 WHIRLPOOL 1e57b2cca97d90756d592ca96ceb4e1fc026e1c9deaeceb3df3a59937a9cd8710222d6c74ece2883dd425aeb1bfde034413d2f04ea0f4a4c276c0d7de3671cee
-DIST elasticsearch-2.2.2.tar.gz 29425370 SHA256 c706db594f1feb5051d90697c6c412eadd60e00a9ec3b4f345a122801183af69 SHA512 144ca47dd3b9730e5ff81dd93e5db09d57a6f0d61d4445e8609c0ece833f57ca05d81fdf702d56008bc5e370604deb83d2d527132783467d5ae1eddc6cefeb84 WHIRLPOOL 4d6ced926237490a6ee8531ccf09128cc6bff5d73cff6f36159552a4a7a0dfbe01df0dfafb583d1c7ddc47ad5fa054ab6dd8c188cc7e3fe196f6917519e1afac
-DIST elasticsearch-2.3.0.tar.gz 27556947 SHA256 d68482c7633f2986263bc5f11f93b8a58c54c6cf5e337b615446d0a7c6fdcd8b SHA512 26671d64e6cd3406ad1de4543d84c66f58be4906d00ad22584350c5b28359c2b878850fb7cd0e49c9913d968380e8e386d77376c4f32fc37d3a43913c21558db WHIRLPOOL d26a3128d12630fca4defb669b7e23749f9742e1bf7c9497860effdbe6f51c8e86b467d3a16c78c77b7dd93efaa25e21c9694308292567eaa8e07794c57d60db
-DIST elasticsearch-2.3.1.tar.gz 27540442 SHA256 f0092e73038e0472fcdd923e5f2792e13692ea0f09ca034a54dd49b217110ebb SHA512 447d8824c4bfbec9b8431d213e3a8ae6720d1486e1389c271cc67cce5546861a817ef8c7db1c3c3669a50a61b5305739ac26f46b04d5674bbca203c3b5dbcf2f WHIRLPOOL e55501ca7fa702c33cd826d51c2d90dcfcc2843fb5b24b2d20df917cc291fe53f203360bfac6249b57c4c2914d92da92ca56b6505b6be885ece196983c176b9c
-DIST elasticsearch-2.3.2.tar.gz 27543334 SHA256 04c4d3913d496d217e038da88df939108369ae2e78eea29cb1adf1c4ab3a000a SHA512 73c4ca82eb0f4dc22907a94b9025e79183f6fcd38dbb82795800d10fc810dbee412784e62f9247390f0fb9aa19545976584bd2b62f1afe79d2cd64bb55f76dc8 WHIRLPOOL 5cc44a827de5281a9fb823a8a2e43755e0853dc5aa27f5ef7f8d1c5605d80a2dbf4c8756f01811a54307938cb3030634be6c8af2ffa465e2f35cd2a4aabeeb20
-DIST elasticsearch-2.3.3.tar.gz 27542289 SHA256 5fe0a6887432bb8a8d3de2e79c9b81c83cfa241e6440f0f0379a686657789165 SHA512 d3899d2f45128d218693ed2a0f9210ec6ce5fe4101d543b46edaaadceeb6768fe3cf04bf161ad09b38629bada74368133727dd735ef11132fffe81aabe0ef88b WHIRLPOOL 5f51b0c1a913a60073c212c9ee06b024b0ca50bbf7857f2ce1883ab51bbb8295c51c1c2d4e7fd98b5dc9db65cd753fd282a0eccf7568fad6608b3529f5e9ea36
-DIST elasticsearch-2.3.4.tar.gz 27547169 SHA256 371e0c5f4ded0a8548f1cce55faff3efebcfd5f895c2c816f220146521f6f06e SHA512 d6b61069b499d2fab1f4102240a5dfd9c0a0806d0cd7047935ef49da669e61066ca37284bd367df96aec79c47417b499988094737bf2e5a6e4c69f682e311bc0 WHIRLPOOL 46311e0a24d64d3b464ba1640b80294ab5ce2ab34a215a48f72a98492c2f07fd878ec99edd36a206b3445c4eebffac7be30e5af140e475ced312a6de2a8d3c06
-DIST elasticsearch-2.3.5.tar.gz 27547995 SHA256 1119a8c18620b98c4b85261318663a1f26dea92a26f34dfeb7f813fb7cbb468a SHA512 9c0cc8a9ae0fa2b52db583a5c006b05a84c1f84e1b8dbbafa88bec111190d056a23bd384d4241ce00dc8b56a6840857b296e4c0d2bf911f352ef67f128a87ca7 WHIRLPOOL de2aee3773d14c9b4abc0f20c3c8df1fe374a91ea54493f2c1df59fb8c02c97d684fd94b6bfaf140eebcfea4913197b10469b5aef34f62db89d825ae508a5095
-DIST elasticsearch-2.4.0.tar.gz 27364449 SHA256 3ae01140ae7bcbb91436feef381fbed774e36ef6d1e8e6a3153640db82acf4c9 SHA512 931f4d42cba43131718ec7480439b5fda0b9222a51cf9639d99ab4c00bdbedbe7e8da7a6016d88b848772cd416bc49fe7af09202160cecf839e39d803b45e869 WHIRLPOOL e03a2f7a6ea5913ce112b82e8578183c401f2d5901070a77c509ddbe7333fe62622fb2bb3e0f786a914bb15c56793e8b13220ae4588271baa3bbbcdf86223f47
-DIST elasticsearch-2.4.1.tar.gz 27364109 SHA256 23a369ef42955c19aaaf9e34891eea3a055ed217d7fbe76da0998a7a54bbe167 SHA512 69b22d5c2fc93e9bc83c5da415e110105d4d977aa98633041f51f8c55ba9e6045803584965367f6e1f962122ad81a8e07fefcc5a01c5381057ec921d65bc1751 WHIRLPOOL 893056d0cd23ae41e2cb9e3db4591108777b4360ad6be5c52782cc98379ab0f0c36b42758f9815fbaf8557c9e06723c03765fd9eb4cbfcf9fe0d3203d8e6039d
DIST elasticsearch-2.4.3.tar.gz 27342693 SHA256 01eb684943be01d4af3131c6795073187b1a5868b6525d9686cc0d7a315db12e SHA512 357a145050ba155d60239f0127e8b772705efcddc9246492d80792c65c613f82a87dd4e4ea4a36c9555a0b5a536a34e2168d57c5b851c36f042f9a52ab3e24a8 WHIRLPOOL 07cd05120ac3bb15cd65b29caca6cc847f0e21cae7ff9a1d1002bcb66a54334c85cfc739e05d8452ba128fb3bdecb6c6cc4726e498f4c9e4e7cb8995c7ea7c2b
-DIST elasticsearch-5.0.0.tar.gz 32968292 SHA256 a866534f0fa7428e980c985d712024feef1dee04709add6e360fc7b73bb1e7ae SHA512 a4fa650d643c242a1f90059cfe6eb27e3d240b3deafc426abeae72c13aeae84b01ffb8b872b748619dfc58225ca29bde054fe10e1529522f9a06a1051991e4cd WHIRLPOOL a05a6dc785c00bb461ea286490cacc0222f9f95f0dea7ba61c6308cee0284edc53ee0a2047f723e990fa99f7ed09feda46313997b8f6dd487b042a6b26ecf8d6
-DIST elasticsearch-5.0.1.tar.gz 32944777 SHA256 542e197485fbcb1aac46097439337d2e9ac6a54b7b1e29ad17761f4d65898833 SHA512 3c4c5a692cc77b01b978d3a02f049fcce36b573b6a2097a9d6714618ec0e6de0583f750516ba461eb1d13386ffad636d8663134452edaaeb2b8889c701316598 WHIRLPOOL d5ceb8e87e36be880f3bf746bfa52f7431d62ff9cd666c9dc64093760474d973ffcad792fd0a5927bef61a8e36c2fced76e03eae42e77eb1d158dcd05579b858
DIST elasticsearch-5.1.1.tar.gz 33291322 SHA256 cd45bafb1f74a7df9bad12c77b7bf3080069266bcbe0b256b0959ef2536e31e8 SHA512 2b5faf97c5ff41a9f12e21749d60f3632b39987d4886713ee9646110acdd17323d263168980d7dd4035732556b604acd68dc37ae7b805d84493075776b9d7bcd WHIRLPOOL ebb46d4a5643f09c0c903055c407a54d46264347924ca37cc73adfee3dd8a9bf2157b1be92b9b1d85636ea92b2d1f89d558c5413c804412996ea9bce42f1c3c6
diff --git a/app-misc/elasticsearch/elasticsearch-1.7.4.ebuild b/app-misc/elasticsearch/elasticsearch-1.7.4.ebuild
deleted file mode 100644
index 1ad3bf3..00000000
--- a/app-misc/elasticsearch/elasticsearch-1.7.4.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# 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
-}
diff --git a/app-misc/elasticsearch/elasticsearch-1.7.5.ebuild b/app-misc/elasticsearch/elasticsearch-1.7.5.ebuild
deleted file mode 100644
index 1ad3bf3..00000000
--- a/app-misc/elasticsearch/elasticsearch-1.7.5.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# 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
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.1.1.ebuild b/app-misc/elasticsearch/elasticsearch-2.1.1.ebuild
deleted file mode 100644
index a70e231..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.1.1.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /var/lib/${MY_PN} ${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- 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}
- keepdir /usr/share/${MY_PN}/plugins
-
- newinitd "${FILESDIR}/elasticsearch.init5" "${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
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.1.2.ebuild b/app-misc/elasticsearch/elasticsearch-2.1.2.ebuild
deleted file mode 100644
index a70e231..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.1.2.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /var/lib/${MY_PN} ${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- 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}
- keepdir /usr/share/${MY_PN}/plugins
-
- newinitd "${FILESDIR}/elasticsearch.init5" "${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
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.2.0.ebuild b/app-misc/elasticsearch/elasticsearch-2.2.0.ebuild
deleted file mode 100644
index a70e231..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.2.0.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /var/lib/${MY_PN} ${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- 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}
- keepdir /usr/share/${MY_PN}/plugins
-
- newinitd "${FILESDIR}/elasticsearch.init5" "${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
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.2.2.ebuild b/app-misc/elasticsearch/elasticsearch-2.2.2.ebuild
deleted file mode 100644
index a70e231..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.2.2.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /var/lib/${MY_PN} ${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- 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}
- keepdir /usr/share/${MY_PN}/plugins
-
- newinitd "${FILESDIR}/elasticsearch.init5" "${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
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.3.0.ebuild b/app-misc/elasticsearch/elasticsearch-2.3.0.ebuild
deleted file mode 100644
index a70e231..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.3.0.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /var/lib/${MY_PN} ${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- 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}
- keepdir /usr/share/${MY_PN}/plugins
-
- newinitd "${FILESDIR}/elasticsearch.init5" "${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
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.3.1.ebuild b/app-misc/elasticsearch/elasticsearch-2.3.1.ebuild
deleted file mode 100644
index a70e231..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.3.1.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /var/lib/${MY_PN} ${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- 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}
- keepdir /usr/share/${MY_PN}/plugins
-
- newinitd "${FILESDIR}/elasticsearch.init5" "${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
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.3.2.ebuild b/app-misc/elasticsearch/elasticsearch-2.3.2.ebuild
deleted file mode 100644
index a0baa8b..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.3.2.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# 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://download.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_preinst() {
- if has_version '<app-misc/elasticsearch-2.3.2'; then
- export UPDATE_NOTES=1
- fi
-}
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /usr/share/${MY_PN} ${MY_PN}
- esethome ${MY_PN} /usr/share/${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- insinto /etc/${MY_PN}
- doins config/*
- rm -rf config
-
- insinto /usr/share/${MY_PN}
- doins -r ./*
-
- insinto /usr/share/${MY_PN}/bin
- doins "${FILESDIR}/elasticsearch-systemd-pre-exec"
-
- chmod +x "${D}"/usr/share/${MY_PN}/bin/*
-
- keepdir /var/{lib,log}/${MY_PN}
- keepdir /usr/share/${MY_PN}/plugins
-
- newinitd "${FILESDIR}/elasticsearch.init6" "${MY_PN}"
- newconfd "${FILESDIR}/${MY_PN}.conf2" "${MY_PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 "Please make sure you put elasticsearch.yml and logging.yml"
- elog "into the configuration directory of the instance:"
- elog "/etc/${MY_PN}/instance"
- elog
- if ! [ -z ${UPDATE_NOTES} ]; then
- elog "This update changes some configuration variables. Please review"
- elog "/etc/conf.d/elasticsearch before restarting your services."
- fi
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.3.3.ebuild b/app-misc/elasticsearch/elasticsearch-2.3.3.ebuild
deleted file mode 100644
index a0baa8b..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.3.3.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# 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://download.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_preinst() {
- if has_version '<app-misc/elasticsearch-2.3.2'; then
- export UPDATE_NOTES=1
- fi
-}
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /usr/share/${MY_PN} ${MY_PN}
- esethome ${MY_PN} /usr/share/${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- insinto /etc/${MY_PN}
- doins config/*
- rm -rf config
-
- insinto /usr/share/${MY_PN}
- doins -r ./*
-
- insinto /usr/share/${MY_PN}/bin
- doins "${FILESDIR}/elasticsearch-systemd-pre-exec"
-
- chmod +x "${D}"/usr/share/${MY_PN}/bin/*
-
- keepdir /var/{lib,log}/${MY_PN}
- keepdir /usr/share/${MY_PN}/plugins
-
- newinitd "${FILESDIR}/elasticsearch.init6" "${MY_PN}"
- newconfd "${FILESDIR}/${MY_PN}.conf2" "${MY_PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 "Please make sure you put elasticsearch.yml and logging.yml"
- elog "into the configuration directory of the instance:"
- elog "/etc/${MY_PN}/instance"
- elog
- if ! [ -z ${UPDATE_NOTES} ]; then
- elog "This update changes some configuration variables. Please review"
- elog "/etc/conf.d/elasticsearch before restarting your services."
- fi
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.3.4.ebuild b/app-misc/elasticsearch/elasticsearch-2.3.4.ebuild
deleted file mode 100644
index a0baa8b..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.3.4.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# 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://download.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_preinst() {
- if has_version '<app-misc/elasticsearch-2.3.2'; then
- export UPDATE_NOTES=1
- fi
-}
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /usr/share/${MY_PN} ${MY_PN}
- esethome ${MY_PN} /usr/share/${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- insinto /etc/${MY_PN}
- doins config/*
- rm -rf config
-
- insinto /usr/share/${MY_PN}
- doins -r ./*
-
- insinto /usr/share/${MY_PN}/bin
- doins "${FILESDIR}/elasticsearch-systemd-pre-exec"
-
- chmod +x "${D}"/usr/share/${MY_PN}/bin/*
-
- keepdir /var/{lib,log}/${MY_PN}
- keepdir /usr/share/${MY_PN}/plugins
-
- newinitd "${FILESDIR}/elasticsearch.init6" "${MY_PN}"
- newconfd "${FILESDIR}/${MY_PN}.conf2" "${MY_PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 "Please make sure you put elasticsearch.yml and logging.yml"
- elog "into the configuration directory of the instance:"
- elog "/etc/${MY_PN}/instance"
- elog
- if ! [ -z ${UPDATE_NOTES} ]; then
- elog "This update changes some configuration variables. Please review"
- elog "/etc/conf.d/elasticsearch before restarting your services."
- fi
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.3.5.ebuild b/app-misc/elasticsearch/elasticsearch-2.3.5.ebuild
deleted file mode 100644
index 198f14a..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.3.5.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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://download.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_preinst() {
- if has_version '<app-misc/elasticsearch-2.3.2'; then
- export UPDATE_NOTES=1
- fi
-}
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /usr/share/${MY_PN} ${MY_PN}
- esethome ${MY_PN} /usr/share/${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- insinto /etc/${MY_PN}
- doins config/*
- rm -rf config
-
- insinto /usr/share/${MY_PN}
- doins -r ./*
-
- insinto /usr/share/${MY_PN}/bin
- doins "${FILESDIR}/elasticsearch-systemd-pre-exec"
-
- chmod +x "${D}"/usr/share/${MY_PN}/bin/*
-
- keepdir /var/{lib,log}/${MY_PN}
- keepdir /usr/share/${MY_PN}/plugins
-
- insinto /usr/lib/tmpfiles.d
- newins "${FILESDIR}/${MY_PN}.tmpfiles.d" "${MY_PN}.conf"
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${MY_PN}.sysctl.d" "${MY_PN}.conf"
-
- newinitd "${FILESDIR}/elasticsearch.init6" "${MY_PN}"
- newconfd "${FILESDIR}/${MY_PN}.conf2" "${MY_PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 "Please make sure you put elasticsearch.yml and logging.yml"
- elog "into the configuration directory of the instance:"
- elog "/etc/${MY_PN}/instance"
- elog
- if ! [ -z ${UPDATE_NOTES} ]; then
- elog "This update changes some configuration variables. Please review"
- elog "/etc/conf.d/elasticsearch before restarting your services."
- fi
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.4.0.ebuild b/app-misc/elasticsearch/elasticsearch-2.4.0.ebuild
deleted file mode 100644
index 198f14a..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.4.0.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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://download.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_preinst() {
- if has_version '<app-misc/elasticsearch-2.3.2'; then
- export UPDATE_NOTES=1
- fi
-}
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /usr/share/${MY_PN} ${MY_PN}
- esethome ${MY_PN} /usr/share/${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- insinto /etc/${MY_PN}
- doins config/*
- rm -rf config
-
- insinto /usr/share/${MY_PN}
- doins -r ./*
-
- insinto /usr/share/${MY_PN}/bin
- doins "${FILESDIR}/elasticsearch-systemd-pre-exec"
-
- chmod +x "${D}"/usr/share/${MY_PN}/bin/*
-
- keepdir /var/{lib,log}/${MY_PN}
- keepdir /usr/share/${MY_PN}/plugins
-
- insinto /usr/lib/tmpfiles.d
- newins "${FILESDIR}/${MY_PN}.tmpfiles.d" "${MY_PN}.conf"
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${MY_PN}.sysctl.d" "${MY_PN}.conf"
-
- newinitd "${FILESDIR}/elasticsearch.init6" "${MY_PN}"
- newconfd "${FILESDIR}/${MY_PN}.conf2" "${MY_PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 "Please make sure you put elasticsearch.yml and logging.yml"
- elog "into the configuration directory of the instance:"
- elog "/etc/${MY_PN}/instance"
- elog
- if ! [ -z ${UPDATE_NOTES} ]; then
- elog "This update changes some configuration variables. Please review"
- elog "/etc/conf.d/elasticsearch before restarting your services."
- fi
-}
diff --git a/app-misc/elasticsearch/elasticsearch-2.4.1.ebuild b/app-misc/elasticsearch/elasticsearch-2.4.1.ebuild
deleted file mode 100644
index 198f14a..00000000
--- a/app-misc/elasticsearch/elasticsearch-2.4.1.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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://download.elasticsearch.org/${MY_PN}/release/org/${MY_PN}/distribution/tar/${MY_PN}/${PV}/${P}.tar.gz"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
-
-pkg_preinst() {
- if has_version '<app-misc/elasticsearch-2.3.2'; then
- export UPDATE_NOTES=1
- fi
-}
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /usr/share/${MY_PN} ${MY_PN}
- esethome ${MY_PN} /usr/share/${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- insinto /etc/${MY_PN}
- doins config/*
- rm -rf config
-
- insinto /usr/share/${MY_PN}
- doins -r ./*
-
- insinto /usr/share/${MY_PN}/bin
- doins "${FILESDIR}/elasticsearch-systemd-pre-exec"
-
- chmod +x "${D}"/usr/share/${MY_PN}/bin/*
-
- keepdir /var/{lib,log}/${MY_PN}
- keepdir /usr/share/${MY_PN}/plugins
-
- insinto /usr/lib/tmpfiles.d
- newins "${FILESDIR}/${MY_PN}.tmpfiles.d" "${MY_PN}.conf"
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${MY_PN}.sysctl.d" "${MY_PN}.conf"
-
- newinitd "${FILESDIR}/elasticsearch.init6" "${MY_PN}"
- newconfd "${FILESDIR}/${MY_PN}.conf2" "${MY_PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 "Please make sure you put elasticsearch.yml and logging.yml"
- elog "into the configuration directory of the instance:"
- elog "/etc/${MY_PN}/instance"
- elog
- if ! [ -z ${UPDATE_NOTES} ]; then
- elog "This update changes some configuration variables. Please review"
- elog "/etc/conf.d/elasticsearch before restarting your services."
- fi
-}
diff --git a/app-misc/elasticsearch/elasticsearch-5.0.0.ebuild b/app-misc/elasticsearch/elasticsearch-5.0.0.ebuild
deleted file mode 100644
index 9f0a619..00000000
--- a/app-misc/elasticsearch/elasticsearch-5.0.0.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# 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 '<app-misc/elasticsearch-2.3.2'; then
- export UPDATE_NOTES=1
- fi
-}
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /usr/share/${MY_PN} ${MY_PN}
- esethome ${MY_PN} /usr/share/${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- insinto /etc/${MY_PN}
- doins config/*
- rm -rf config
-
- insinto /usr/share/${MY_PN}
- doins -r ./*
-
- insinto /usr/share/${MY_PN}/bin
- doins "${FILESDIR}/elasticsearch-systemd-pre-exec"
-
- chmod +x "${D}"/usr/share/${MY_PN}/bin/*
-
- keepdir /var/{lib,log}/${MY_PN}
- keepdir /usr/share/${MY_PN}/plugins
-
- insinto /usr/lib/tmpfiles.d
- newins "${FILESDIR}/${MY_PN}.tmpfiles.d" "${MY_PN}.conf"
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${MY_PN}.sysctl.d" "${MY_PN}.conf"
-
- newinitd "${FILESDIR}/elasticsearch.init6" "${MY_PN}"
- newconfd "${FILESDIR}/${MY_PN}.conf2" "${MY_PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 "Please make sure you put elasticsearch.yml and logging.yml"
- elog "into the configuration directory of the instance:"
- elog "/etc/${MY_PN}/instance"
- elog
- if ! [ -z ${UPDATE_NOTES} ]; then
- elog "This update changes some configuration variables. Please review"
- elog "/etc/conf.d/elasticsearch before restarting your services."
- fi
-}
diff --git a/app-misc/elasticsearch/elasticsearch-5.0.1-r1.ebuild b/app-misc/elasticsearch/elasticsearch-5.0.1-r1.ebuild
deleted file mode 100644
index ca759e0..00000000
--- a/app-misc/elasticsearch/elasticsearch-5.0.1-r1.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# 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 '<app-misc/elasticsearch-2.3.2'; then
- export UPDATE_NOTES=1
- fi
-}
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /usr/share/${MY_PN} ${MY_PN}
- esethome ${MY_PN} /usr/share/${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- insinto /etc/${MY_PN}
- doins config/*
- rm -rf config
-
- insinto /usr/share/${MY_PN}
- doins -r ./*
-
- insinto /usr/share/${MY_PN}/bin
- doins "${FILESDIR}/elasticsearch-systemd-pre-exec"
-
- chmod +x "${D}"/usr/share/${MY_PN}/bin/*
-
- keepdir /var/{lib,log}/${MY_PN}
- keepdir /usr/share/${MY_PN}/plugins
-
- insinto /usr/lib/tmpfiles.d
- newins "${FILESDIR}/${MY_PN}.tmpfiles.d" "${MY_PN}.conf"
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${MY_PN}.sysctl.d" "${MY_PN}.conf"
-
- newinitd "${FILESDIR}/elasticsearch.init7" "${MY_PN}"
- newconfd "${FILESDIR}/${MY_PN}.conf3" "${MY_PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 "Please make sure you put elasticsearch.yml and logging.yml"
- elog "into the configuration directory of the instance:"
- elog "/etc/${MY_PN}/instance"
- elog
- if ! [ -z ${UPDATE_NOTES} ]; then
- elog "This update changes some configuration variables. Please review"
- elog "/etc/conf.d/elasticsearch before restarting your services."
- fi
-}
diff --git a/app-misc/elasticsearch/elasticsearch-5.0.1.ebuild b/app-misc/elasticsearch/elasticsearch-5.0.1.ebuild
deleted file mode 100644
index 9f0a619..00000000
--- a/app-misc/elasticsearch/elasticsearch-5.0.1.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# 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 '<app-misc/elasticsearch-2.3.2'; then
- export UPDATE_NOTES=1
- fi
-}
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 /bin/bash /usr/share/${MY_PN} ${MY_PN}
- esethome ${MY_PN} /usr/share/${MY_PN}
-}
-
-src_prepare() {
- rm -rf bin/*.{bat,exe}
- rm LICENSE.txt
-}
-
-src_install() {
- dodir /etc/${MY_PN}
- dodir /etc/${MY_PN}/scripts
-
- insinto /etc/${MY_PN}
- doins config/*
- rm -rf config
-
- insinto /usr/share/${MY_PN}
- doins -r ./*
-
- insinto /usr/share/${MY_PN}/bin
- doins "${FILESDIR}/elasticsearch-systemd-pre-exec"
-
- chmod +x "${D}"/usr/share/${MY_PN}/bin/*
-
- keepdir /var/{lib,log}/${MY_PN}
- keepdir /usr/share/${MY_PN}/plugins
-
- insinto /usr/lib/tmpfiles.d
- newins "${FILESDIR}/${MY_PN}.tmpfiles.d" "${MY_PN}.conf"
-
- insinto /etc/sysctl.d
- newins "${FILESDIR}/${MY_PN}.sysctl.d" "${MY_PN}.conf"
-
- newinitd "${FILESDIR}/elasticsearch.init6" "${MY_PN}"
- newconfd "${FILESDIR}/${MY_PN}.conf2" "${MY_PN}"
- systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 "Please make sure you put elasticsearch.yml and logging.yml"
- elog "into the configuration directory of the instance:"
- elog "/etc/${MY_PN}/instance"
- elog
- if ! [ -z ${UPDATE_NOTES} ]; then
- elog "This update changes some configuration variables. Please review"
- elog "/etc/conf.d/elasticsearch before restarting your services."
- fi
-}
diff --git a/app-misc/elasticsearch/files/elasticsearch.conf b/app-misc/elasticsearch/files/elasticsearch.conf
deleted file mode 100644
index 54e3df9..00000000
--- a/app-misc/elasticsearch/files/elasticsearch.conf
+++ /dev/null
@@ -1,20 +0,0 @@
-# please modify/copy
-# /etc/elasticsearch/elasticsearch.in.sh.sample
-# to
-# /etc/elasticsearch/[instance/]elasticsearch.in.sh
-#
-# many variables/options are available in this file
-
-# ES_USER="elasticsearch:elasticsearch"
-## set max fds (ulimit -n X)
-# ES_MAX_FD=""
-
-## override elasticsearch.in.sh
-#
-# ES_CLASSPATH=""
-# JAVA_OPTS=""
-# ES_JAVA_OPTS=""
-# ES_HEAP_SIZE=""
-# ES_HEAP_NEWSIZE=""
-# ES_DIRECT_SIZE=""
-# ES_USE_IPV4=""
diff --git a/app-misc/elasticsearch/files/elasticsearch.init4 b/app-misc/elasticsearch/files/elasticsearch.init4
deleted file mode 100644
index ddb5aba..00000000
--- a/app-misc/elasticsearch/files/elasticsearch.init4
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/sbin/openrc-run
-
-name="Elasticsearch"
-description=""
-
-ES_USER=${ES_USER:="elasticsearch"}
-ES_INSTANCE=${SVCNAME#*.}
-
-if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
- PIDFILE="/run/elasticsearch/elasticsearch.${ES_INSTANCE}.pid"
- ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
- ES_CONF_PATH="/etc/elasticsearch/${ES_INSTANCE}"
- ES_LOG_PATH="/var/log/elasticsearch/${ES_INSTANCE}"
-else
- PIDFILE="/run/elasticsearch/elasticsearch.pid"
- ES_BASE_PATH="/var/lib/elasticsearch/_default"
- ES_CONF_PATH="/etc/elasticsearch"
- ES_LOG_PATH="/var/log/elasticsearch/_default"
-fi
-
-ES_DATA_PATH="${ES_BASE_PATH}/data"
-ES_WORK_PATH="${ES_BASE_PATH}/work"
-
-export ES_INCLUDE="/usr/share/elasticsearch/bin/elasticsearch.in.sh"
-export JAVA_OPTS
-export ES_JAVA_OPTS
-export ES_HEAP_SIZE
-export ES_HEAP_NEWSIZE
-export ES_DIRECT_SIZE
-export ES_USE_IPV4
-
-server_command="/usr/share/elasticsearch/bin/elasticsearch"
-server_args=" -p ${PIDFILE} -Des.default.path.conf=\"${ES_CONF_PATH}\" -Des.default.path.data=\"${ES_DATA_PATH}\" -Des.default.path.work=\"${ES_WORK_PATH}\" -Des.default.path.logs=\"${ES_LOG_PATH}\""
-
-depend() {
- use net
-}
-
-start() {
- # elasticsearch -Des.config=/path/to/config/file
- # elasticsearch -Des.network.host=10.0.0.4
-
- [ ! -f "${ES_INCLUDE}" ] && {
- eerror "${ES_INCLUDE} must be copied into place"
- return 1
- }
-
- local conf
- local conf_file
- for conf in elasticsearch.yml logging.yml; do
- conf_file="${ES_CONF_PATH}/${conf}"
- if [ ! -f "${conf_file}" ]; then
- eerror "${conf_file} must be copied into place"
- return 1
- fi
- done
-
- ebegin "Starting ${SVCNAME}"
-
- if [ -n "${ES_MAX_FD}" ]; then
- ulimit -n ${ES_MAX_FD}
- einfo "Max open filedescriptors : ${ES_MAX_FD}"
- fi
-
- checkpath -d -o "${ES_USER}" -m750 "/var/lib/elasticsearch"
- checkpath -d -o "${ES_USER}" -m750 "/var/log/elasticsearch"
- checkpath -d -o "${ES_USER}" -m750 "$(dirname "${PIDFILE}")"
- checkpath -d -o "${ES_USER}" -m750 "${ES_BASE_PATH}"
- checkpath -d -o "${ES_USER}" -m750 "${ES_LOG_PATH}"
-
- start-stop-daemon --start \
- --background \
- --chdir "${ES_BASE_PATH}" \
- --user="${ES_USER}" \
- --pidfile="${PIDFILE}" \
- --exec ${server_command} -- ${server_args}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop \
- --pidfile=${PIDFILE} \
- --user="${ES_USER}" \
- --retry=TERM/20/KILL/5
- eend $?
-}
diff --git a/app-misc/elasticsearch/files/elasticsearch.init5 b/app-misc/elasticsearch/files/elasticsearch.init5
deleted file mode 100644
index 5b1da0e..00000000
--- a/app-misc/elasticsearch/files/elasticsearch.init5
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/sbin/openrc-run
-
-name="Elasticsearch"
-description=""
-
-ES_USER=${ES_USER:="elasticsearch"}
-ES_INSTANCE=${SVCNAME#*.}
-
-if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
- PIDFILE="/run/elasticsearch/elasticsearch.${ES_INSTANCE}.pid"
- ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
- ES_CONF_PATH="/etc/elasticsearch/${ES_INSTANCE}"
- ES_LOG_PATH="/var/log/elasticsearch/${ES_INSTANCE}"
-else
- PIDFILE="/run/elasticsearch/elasticsearch.pid"
- ES_BASE_PATH="/var/lib/elasticsearch/_default"
- ES_CONF_PATH="/etc/elasticsearch"
- ES_LOG_PATH="/var/log/elasticsearch/_default"
-fi
-
-ES_DATA_PATH="${ES_BASE_PATH}/data"
-ES_WORK_PATH="${ES_BASE_PATH}/work"
-
-export ES_INCLUDE="/usr/share/elasticsearch/bin/elasticsearch.in.sh"
-export JAVA_OPTS
-export ES_JAVA_OPTS
-export ES_HEAP_SIZE
-export ES_HEAP_NEWSIZE
-export ES_DIRECT_SIZE
-export ES_USE_IPV4
-
-server_command="/usr/share/elasticsearch/bin/elasticsearch"
-server_args=" -p ${PIDFILE} -Des.default.path.conf=${ES_CONF_PATH} -Des.default.path.data=${ES_DATA_PATH} -Des.default.path.work=${ES_WORK_PATH} -Des.default.path.logs=${ES_LOG_PATH}"
-
-depend() {
- use net
-}
-
-start() {
- # elasticsearch -Des.config=/path/to/config/file
- # elasticsearch -Des.network.host=10.0.0.4
-
- [ ! -f "${ES_INCLUDE}" ] && {
- eerror "${ES_INCLUDE} must be copied into place"
- return 1
- }
-
- local conf
- local conf_file
- for conf in elasticsearch.yml logging.yml; do
- conf_file="${ES_CONF_PATH}/${conf}"
- if [ ! -f "${conf_file}" ]; then
- eerror "${conf_file} must be copied into place"
- return 1
- fi
- done
-
- ebegin "Starting ${SVCNAME}"
-
- if [ -n "${ES_MAX_FD}" ]; then
- ulimit -n ${ES_MAX_FD}
- einfo "Max open filedescriptors : ${ES_MAX_FD}"
- fi
-
- checkpath -d -o "${ES_USER}" -m750 "/var/lib/elasticsearch"
- checkpath -d -o "${ES_USER}" -m750 "/var/log/elasticsearch"
- checkpath -d -o "${ES_USER}" -m750 "$(dirname "${PIDFILE}")"
- checkpath -d -o "${ES_USER}" -m750 "${ES_BASE_PATH}"
- checkpath -d -o "${ES_USER}" -m750 "${ES_LOG_PATH}"
-
- start-stop-daemon --start \
- --background \
- --chdir "${ES_BASE_PATH}" \
- --user="${ES_USER}" \
- --pidfile="${PIDFILE}" \
- --exec ${server_command} -- ${server_args}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop \
- --pidfile=${PIDFILE} \
- --user="${ES_USER}" \
- --retry=TERM/20/KILL/5
- eend $?
-}
diff --git a/app-misc/elasticsearch/files/elasticsearch.service4 b/app-misc/elasticsearch/files/elasticsearch.service4
deleted file mode 100644
index 739c6f8..00000000
--- a/app-misc/elasticsearch/files/elasticsearch.service4
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Elasticsearch
-After=network.target
-
-[Service]
-User=elasticsearch
-Environment=ES_INCLUDE=/usr/share/elasticsearch/bin/elasticsearch.in.sh
-ExecStart=/usr/share/elasticsearch/bin/elasticsearch -Des.default.path.conf=/etc/elasticsearch
-
-[Install]
-WantedBy=multi-user.target
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/
@ 2017-01-05 16:30 Göktürk Yüksek
0 siblings, 0 replies; 16+ messages in thread
From: Göktürk Yüksek @ 2017-01-05 16:30 UTC (permalink / raw
To: gentoo-commits
commit: 7ff18b81bb4e21ceb1132fc722c04c1732db8211
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Sun Dec 18 11:45:00 2016 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Thu Jan 5 16:27:42 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ff18b81
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(+)
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 00000000..ca759e0
--- /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 '<app-misc/elasticsearch-2.3.2'; then
+ export UPDATE_NOTES=1
+ fi
+}
+
+pkg_setup() {
+ enewgroup ${MY_PN}
+ enewuser ${MY_PN} -1 /bin/bash /usr/share/${MY_PN} ${MY_PN}
+ esethome ${MY_PN} /usr/share/${MY_PN}
+}
+
+src_prepare() {
+ rm -rf bin/*.{bat,exe}
+ rm LICENSE.txt
+}
+
+src_install() {
+ dodir /etc/${MY_PN}
+ dodir /etc/${MY_PN}/scripts
+
+ insinto /etc/${MY_PN}
+ doins config/*
+ rm -rf config
+
+ insinto /usr/share/${MY_PN}
+ doins -r ./*
+
+ insinto /usr/share/${MY_PN}/bin
+ doins "${FILESDIR}/elasticsearch-systemd-pre-exec"
+
+ chmod +x "${D}"/usr/share/${MY_PN}/bin/*
+
+ keepdir /var/{lib,log}/${MY_PN}
+ keepdir /usr/share/${MY_PN}/plugins
+
+ insinto /usr/lib/tmpfiles.d
+ newins "${FILESDIR}/${MY_PN}.tmpfiles.d" "${MY_PN}.conf"
+
+ insinto /etc/sysctl.d
+ newins "${FILESDIR}/${MY_PN}.sysctl.d" "${MY_PN}.conf"
+
+ newinitd "${FILESDIR}/elasticsearch.init7" "${MY_PN}"
+ newconfd "${FILESDIR}/${MY_PN}.conf3" "${MY_PN}"
+ systemd_newunit "${FILESDIR}"/${PN}.service5 "${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 "Please make sure you put elasticsearch.yml and logging.yml"
+ elog "into the configuration directory of the instance:"
+ elog "/etc/${MY_PN}/instance"
+ elog
+ if ! [ -z ${UPDATE_NOTES} ]; then
+ elog "This update changes some configuration variables. Please review"
+ elog "/etc/conf.d/elasticsearch before restarting your services."
+ fi
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch.conf3 b/app-misc/elasticsearch/files/elasticsearch.conf3
new file mode 100644
index 00000000..444ec53
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.conf3
@@ -0,0 +1,60 @@
+################################
+# Elasticsearch
+################################
+
+# Elasticsearch home directory
+#ES_HOME=/usr/share/elasticsearch
+
+# Elasticsearch Java path
+#JAVA_HOME=
+
+# Elasticsearch configuration directory
+#CONF_DIR=/etc/elasticsearch
+
+# Elasticsearch data directory
+#DATA_DIR=/var/lib/elasticsearch
+
+# Elasticsearch logs directory
+#LOG_DIR=/var/log/elasticsearch
+
+# Elasticsearch PID directory
+#PID_DIR=/run/elasticsearch
+
+# Additional Java OPTS
+#ES_JAVA_OPTS=
+
+################################
+# Elasticsearch service
+################################
+
+# When executing the init script, this user will be used to run the elasticsearch service.
+# The default value is 'elasticsearch' and is declared in the init.d file.
+# Note that this setting is only used by the init script. If changed, make sure that
+# the configured user can read and write into the data, work, plugins and log directories.
+# For systemd service, the user is usually configured in file /usr/lib/systemd/system/elasticsearch.service
+#ES_USER=elasticsearch
+#ES_GROUP=elasticsearch
+
+# The number of seconds to wait before checking if Elasticsearch started successfully as a daemon process
+#ES_STARTUP_SLEEP_TIME=5
+
+################################
+# System properties
+################################
+
+# Specifies the maximum file descriptor number that can be opened by this process
+# When using Systemd, this setting is ignored and the LimitNOFILE defined in
+# /usr/lib/systemd/system/elasticsearch.service takes precedence
+#MAX_OPEN_FILES=65536
+
+# The maximum number of bytes of memory that may be locked into RAM
+# Set to "unlimited" if you use the 'bootstrap.memory_lock: true' option
+# in elasticsearch.yml.
+# When using Systemd, the LimitMEMLOCK property must be set
+# in /usr/lib/systemd/system/elasticsearch.service
+#MAX_LOCKED_MEMORY=unlimited
+
+# Maximum number of VMA (Virtual Memory Areas) a process can own
+# When using Systemd, this setting is ignored and the 'vm.max_map_count'
+# property is set at boot time in /usr/lib/sysctl.d/elasticsearch.conf
+#MAX_MAP_COUNT=262144
diff --git a/app-misc/elasticsearch/files/elasticsearch.init7 b/app-misc/elasticsearch/files/elasticsearch.init7
new file mode 100644
index 00000000..65072d5
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.init7
@@ -0,0 +1,95 @@
+#!/sbin/openrc-run
+
+name="Elasticsearch"
+description="Elasticsearch Server"
+
+ES_INSTANCE=${SVCNAME#*.}
+PID_DIR=${PID_DIR:="/run/elasticsearch"}
+
+if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
+ PIDFILE="${PID_DIR}/elasticsearch.${ES_INSTANCE}.pid"
+ ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
+ CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
+ LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
+else
+ PIDFILE="${PID_DIR}/elasticsearch.pid"
+ ES_BASE_PATH="/var/lib/elasticsearch/_default"
+ CONF_DIR="/etc/elasticsearch"
+ LOG_DIR="/var/log/elasticsearch/_default"
+fi
+
+ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
+ES_USER=${ES_USER:="elasticsearch"}
+ES_GROUP=${ES_GROUP:="elasticsearch"}
+ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
+MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
+MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
+
+DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
+
+if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
+ ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
+fi
+
+export ES_INCLUDE
+export JAVA_HOME
+export JAVA_OPTS
+export ES_JVM_OPTIONS
+export ES_JAVA_OPTS
+export ES_STARTUP_SLEEP_TIME
+
+server_command="/usr/share/elasticsearch/bin/elasticsearch"
+server_args="-d -p ${PIDFILE} -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR}"
+
+depend() {
+ use net
+}
+
+start() {
+ local conf
+ local conf_file
+ for conf in elasticsearch.yml; do
+ conf_file="${CONF_DIR}/${conf}"
+ if [ ! -f "${conf_file}" ]; then
+ eerror "${conf_file} must be copied into place"
+ return 1
+ fi
+ done
+
+ if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
+ sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
+ fi
+
+ ebegin "Starting ${SVCNAME}"
+
+ if [ -n "${MAX_LOCKED_MEMORY}" ]; then
+ rc_ulimit="${rc_ulimit} -l ${MAX_LOCKED_MEMORY}"
+ fi
+
+ if [ -n "${MAX_OPEN_FILES}" ]; then
+ rc_ulimit="${rc_ulimit} -n ${MAX_OPEN_FILES}"
+ fi
+
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${PID_DIR}"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
+ checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
+
+ start-stop-daemon --start \
+ --background \
+ --chdir "${ES_HOME}" \
+ --user="${ES_USER}" \
+ --pidfile="${PIDFILE}" \
+ --exec ${server_command} -- ${server_args}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop \
+ --pidfile=${PIDFILE} \
+ --user="${ES_USER}" \
+ --retry=TERM/20
+ eend $?
+}
^ permalink raw reply related [flat|nested] 16+ messages in thread
end of thread, other threads:[~2022-11-18 8:51 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-25 12:00 [gentoo-commits] repo/gentoo:master commit in: app-misc/elasticsearch/files/, app-misc/elasticsearch/ Manuel Rüger
-- strict thread matches above, loose matches on Subject: below --
2022-11-18 8:51 Joonas Niilola
2022-05-26 12:58 Joonas Niilola
2020-06-12 14:33 Thomas Deutschmann
2020-04-13 8:31 Joonas Niilola
2018-07-23 22:47 William Hubbs
2018-07-16 13:44 Tony Vroon
2018-07-11 14:32 Manuel Rüger
2018-05-25 13:14 Aaron Bauman
2018-03-10 12:29 Amy Liffey
2017-06-27 13:27 Patrice Clement
2017-03-16 14:34 Amy Liffey
2017-03-02 5:31 Göktürk Yüksek
2017-01-15 17:37 Göktürk Yüksek
2017-01-15 17:37 Göktürk Yüksek
2017-01-05 16:30 Göktürk Yüksek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox