Removed ancient version of elasticsearch

parent 14faf403
AUX elasticsearch.conf 428 SHA256 cabfe972ef28b30d152c022e4a0510f6ce940687a452b8dfb21c060a14af7860 SHA512 f61a75394776a9c2cac5b4dcfcaee03531808546a360a04e28d83f9bde5804bb9ffa305d3b49679a3fafdaa8c060ecbf88486ed1cdd4072af10e287e599d834d WHIRLPOOL 5fb0590f1264b3a3c1bba759c426edc72f2e2d1c2198c9d67c81a4c73b90ba123b052e8b8aea21be920a1c795b6222a592d37949ac705e81d3493dad9ce6d5b4
AUX elasticsearch.init 2276 SHA256 bc3941c26bd98f148b757200fad3bdd68776ebf0bdb4844b47a02ef82c2384fa SHA512 5d8cb832420fc2484dcb18f98adbb1359b7129b26485bd557c7ef3260ff38ca6a7064a07f91d4824cc045046b6eedd49f19001bcaf9ff6b409b810d0e723f97c WHIRLPOOL 994c63d4026e0288e42993bb8e7eca62c383c6854e96ca4f2e5f7fa41c8b83f7822f696c9cb2f37c696862fec77cca3ca511c5669a2de9267b168c14401c18bd
AUX elasticsearch.init2 2296 SHA256 a2abd2f6423ebc382a130b6264114d2e4b28d1ec705939f6ccc818bb7a86b491 SHA512 2439482409908774e02726f81bcf8c9d80d0c3e00c468e4ae95dbb7ae9035fd27ae47aa08b1a705ba808a5222b95b37189b1e9ab7ec89797b9f90db572b5f89f WHIRLPOOL 37a1866079dbc0ec6624b2da2da2914752d76d02ebb4764d209a716ac90f1b29014be9930ba6b5999f513b6357c9088d24db3c2b14c763e792dc1c63d2f9fe34
AUX elasticsearch.service 274 SHA256 d8581135cb5f6b73245e571f0cd3cfa85c90d96474304214324958b9ee952f7e SHA512 14c0696ab1244e4afde34c0f6aaececbb5a80a75dc9ad23841adefde815c8c9a604858902bd87609d8191dfca7c4eb24f1ad2d041d50d22a789296bf43366a76 WHIRLPOOL 8df4eb48efac8353c21685bc17bd30ce8835f9f5f91f19acd3f69a42a780c69fc118f74d003429e1da9558ffad1a1e649c57521ba8219fcb262a2ffdb2e24e9c
DIST elasticsearch-1.2.1.tar.gz 19849249 SHA256 b2b270de2b520b4a2510454c75d3a6b9a9801b7d9a31754a731d2c0868cf9186 SHA512 f0c4f719c1878722541fff95702f4bcbef6e3ca54e49c3d12caabd1e61979c8d3a4d7e5612fca1e85654859cb8f91e4277190a32072f2274b0c65ef73c8a4f12 WHIRLPOOL 2de344c026ded648b4025ad4ba30c50f96208442d4a2a8cc285e0e106e5066fcd971dabf03c56ee41727788a66591347aa037f3de8af76fdd7774ef58e805791
DIST elasticsearch-1.3.1.tar.gz 27935555 SHA256 add61343400d099f005f3b190b8b34aa35af0c5014c954d04e6c63485a400239 SHA512 3e242db59b150e0bba34920e18ee59a62535f489c091c7de3f90c211e3b5f5bd0f7804f1d3592c9dc261426fc6f88bb5bc8827b95b14ddfcdb92e2e9aa336e1a WHIRLPOOL cde61206565775ac0a84fdc8a703a371ac9ccd86215db3a87da7fbaef940c74a350cd2f6bffd6af283ce5091123bc164d165c99f04ea9cd507031090e9d6081b
EBUILD elasticsearch-1.2.1.ebuild 2235 SHA256 c22ae1b1ebda599ca769d3cd9ce4a95a772b598eda09e29f27614d87b593ee79 SHA512 5e89a9ccec2199d4ea7e1935db4f5d2812ec1a72912b901c98b504d4b07bea0dc65ab68dd3dde12a4d4fd6a4ec65c44fd5b08f025483ad7dcfbe6bc5fc2cd7e9 WHIRLPOOL b056c5f609ed8f3870b646f6c40868ae76aca154438f67c9502ecc35d798c72a7841d9da626ccfbcc42704ccdf284d537443edc2bc70468bc0ac56c88c8cf2a9
EBUILD elasticsearch-1.3.1.ebuild 2235 SHA256 c22ae1b1ebda599ca769d3cd9ce4a95a772b598eda09e29f27614d87b593ee79 SHA512 5e89a9ccec2199d4ea7e1935db4f5d2812ec1a72912b901c98b504d4b07bea0dc65ab68dd3dde12a4d4fd6a4ec65c44fd5b08f025483ad7dcfbe6bc5fc2cd7e9 WHIRLPOOL b056c5f609ed8f3870b646f6c40868ae76aca154438f67c9502ecc35d798c72a7841d9da626ccfbcc42704ccdf284d537443edc2bc70468bc0ac56c88c8cf2a9
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/elasticsearch/elasticsearch-1.0.1.ebuild,v 1.1 2014/03/04 10:42:27 chainsaw Exp $
EAPI=5
inherit eutils systemd user
MY_PN="${PN%-bin}"
DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
HOMEPAGE="http://www.elasticsearch.org/"
SRC_URI="http://download.${MY_PN}.org/${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"
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 lib/sigar/libsigar-ia64-linux.so
rm LICENSE.txt
mv bin/${MY_PN}.in.sh bin/${MY_PN}.in.sh.sample
for file in config/* ; do
mv ${file} ${file}.sample
done
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 /etc/${MY_PN}
doins bin/${MY_PN}.in.sh.sample
doins config/*
rm bin/${MY_PN}.in.sh.sample
rm -rf config
insinto /usr/share/${MY_PN}
doins -r ./*
chmod +x "${D}"/usr/share/${MY_PN}/bin/*
keepdir /var/{lib,log}/${MY_PN}
local rcscript=elasticsearch.init2
local eshome="/usr/share/${MY_PN}"
local jarfile="${MY_PN}-${PV}.jar"
local esclasspath="${eshome}/lib/${jarfile}:${eshome}/lib/*:${eshome}/lib/sigar/*"
cp "${FILESDIR}/${rcscript}" "${T}" || die
sed -i \
-e "s|@ES_CLASS_PATH@|${esclasspath}|" \
"${T}/${rcscript}" \
|| die "failed to filter ${rcscript}"
newinitd "${T}/${rcscript}" "${MY_PN}"
newconfd "${FILESDIR}/${MY_PN}.conf" "${MY_PN}"
systemd_dounit "${FILESDIR}"/${PN}.service
}
pkg_postinst() {
elog
elog "You may create multiple instances of ${MY_PN} by"
elog "symlinking the init script ln -sf /etc/init.d/${MY_PN} /etc/init.d/${MY_PN}.instance"
elog
elog "Each of the *.sample files in /etc/${MY_PN} should be copied"
elog "to the proper configuration directory:"
elog "/etc/${MY_PN} (for standard init)"
elog "/etc/${MY_PN}/instance (for symlinked init)"
elog
}
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/elasticsearch/elasticsearch-1.0.1.ebuild,v 1.1 2014/03/04 10:42:27 chainsaw Exp $
EAPI=5
inherit eutils systemd user
MY_PN="${PN%-bin}"
DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
HOMEPAGE="http://www.elasticsearch.org/"
SRC_URI="http://download.${MY_PN}.org/${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"
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 lib/sigar/libsigar-ia64-linux.so
rm LICENSE.txt
mv bin/${MY_PN}.in.sh bin/${MY_PN}.in.sh.sample
for file in config/* ; do
mv ${file} ${file}.sample
done
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 /etc/${MY_PN}
doins bin/${MY_PN}.in.sh.sample
doins config/*
rm bin/${MY_PN}.in.sh.sample
rm -rf config
insinto /usr/share/${MY_PN}
doins -r ./*
chmod +x "${D}"/usr/share/${MY_PN}/bin/*
keepdir /var/{lib,log}/${MY_PN}
local rcscript=elasticsearch.init2
local eshome="/usr/share/${MY_PN}"
local jarfile="${MY_PN}-${PV}.jar"
local esclasspath="${eshome}/lib/${jarfile}:${eshome}/lib/*:${eshome}/lib/sigar/*"
cp "${FILESDIR}/${rcscript}" "${T}" || die
sed -i \
-e "s|@ES_CLASS_PATH@|${esclasspath}|" \
"${T}/${rcscript}" \
|| die "failed to filter ${rcscript}"
newinitd "${T}/${rcscript}" "${MY_PN}"
newconfd "${FILESDIR}/${MY_PN}.conf" "${MY_PN}"
systemd_dounit "${FILESDIR}"/${PN}.service
}
pkg_postinst() {
elog
elog "You may create multiple instances of ${MY_PN} by"
elog "symlinking the init script ln -sf /etc/init.d/${MY_PN} /etc/init.d/${MY_PN}.instance"
elog
elog "Each of the *.sample files in /etc/${MY_PN} should be copied"
elog "to the proper configuration directory:"
elog "/etc/${MY_PN} (for standard init)"
elog "/etc/${MY_PN}/instance (for symlinked init)"
elog
}
# 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=""
#!/sbin/runscript
name="ElasticSearch"
description=""
ES_USER=${ES_USER:="elasticsearch"}
ES_INSTANCE=${SVCNAME#*.}
export ES_CLASSPATH="@ES_CLASS_PATH@"
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="${ES_CONF_PATH}/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.path.conf=\"${ES_CONF_PATH}\" -Des.path.data=\"${ES_DATA_PATH}\" -Des.path.work=\"${ES_WORK_PATH}\" -Des.path.logs=\"${ES_LOG_PATH}\""
depend() {
use net
}
start() {
# elasticsearch -f -Des.config=/path/to/config/file
# elasticsearch -f -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 \
--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}
eend $?
}
#!/sbin/runscript
name="ElasticSearch"
description=""
ES_USER=${ES_USER:="elasticsearch"}
ES_INSTANCE=${SVCNAME#*.}
export ES_CLASSPATH="@ES_CLASS_PATH@"
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="${ES_CONF_PATH}/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} -f -Des.path.conf=\"${ES_CONF_PATH}\" -Des.path.data=\"${ES_DATA_PATH}\" -Des.path.work=\"${ES_WORK_PATH}\" -Des.path.logs=\"${ES_LOG_PATH}\""
depend() {
use net
}
start() {
# elasticsearch -f -Des.config=/path/to/config/file
# elasticsearch -f -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}
eend $?
}
[Unit]
Description=ElasticSearch
After=network.target
[Service]
User=elasticsearch
Environment=ES_INCLUDE=/etc/elasticsearch/elasticsearch.in.sh
ExecStart=/usr/share/elasticsearch/bin/elasticsearch -f -Des.path.conf=/etc/elasticsearch
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment