2015-04-05 04:02:41 +00:00
|
|
|
# Template file for 'elasticsearch'
|
|
|
|
pkgname=elasticsearch
|
|
|
|
version=1.5.0
|
2015-04-14 19:56:29 +00:00
|
|
|
revision=5
|
2015-04-05 04:02:41 +00:00
|
|
|
only_for_archs="i686 x86_64"
|
2015-04-14 19:56:29 +00:00
|
|
|
depends="virtual?java-runtime"
|
2015-04-05 04:02:41 +00:00
|
|
|
short_desc="A distributed, open source search and analytics engine"
|
|
|
|
maintainer="bougyman <bougyman@rubyists.com>"
|
|
|
|
license="apache2"
|
|
|
|
homepage="http://www.elastic.co"
|
|
|
|
distfiles="https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.5.0.tar.gz"
|
|
|
|
checksum=acf572c606552bc446cceef3f8e93814a363ba0d215b323a2864682b3abfbe45
|
|
|
|
system_accounts="elastic"
|
|
|
|
system_groups="elastic"
|
2015-04-05 14:42:14 +00:00
|
|
|
conf_files="/etc/elasticsearch/elasticsearch.yml /etc/elasticsearch/logging.yml"
|
2015-04-05 04:02:41 +00:00
|
|
|
|
|
|
|
do_install() {
|
|
|
|
install -d -m0755 "${DESTDIR}"/usr/lib/elasticsearch/bin
|
|
|
|
install -d -m0755 "${DESTDIR}"/usr/lib/elasticsearch/lib/sigar
|
|
|
|
install -d -m0755 "${DESTDIR}"/usr/bin
|
|
|
|
install -d -m0750 "${DESTDIR}"/etc/elasticsearch
|
|
|
|
vcopy bin/elasticsearch usr/lib/elasticsearch/bin
|
|
|
|
vcopy bin/elasticsearch.in.sh usr/lib/elasticsearch/bin
|
|
|
|
vcopy lib/*.jar usr/lib/elasticsearch/lib
|
|
|
|
vcopy lib/sigar/*.jar usr/lib/elasticsearch/lib/sigar
|
2015-04-05 04:10:03 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" ];then
|
|
|
|
vcopy lib/sigar/libsigar-x86-linux.so usr/lib/elasticsearch/lib/sigar
|
|
|
|
else
|
|
|
|
vcopy lib/sigar/libsigar-amd64-linux.so usr/lib/elasticsearch/lib/sigar
|
|
|
|
fi
|
2015-04-05 04:02:41 +00:00
|
|
|
vcopy config/*.yml etc/elasticsearch
|
|
|
|
ln -s /usr/lib/elasticsearch/bin/elasticsearch "${DESTDIR}"/usr/bin/elasticsearch
|
|
|
|
ln -s /etc/elasticsearch "${DESTDIR}"/usr/lib/elasticsearch/config
|
|
|
|
ln -s /var/lib/elasticsearch/data "${DESTDIR}"/usr/lib/elasticsearch/data
|
|
|
|
ln -s /var/log/elasticsearch "${DESTDIR}"/usr/lib/elasticsearch/logs
|
|
|
|
vlicense LICENSE.txt
|
|
|
|
vlicense NOTICE.txt
|
|
|
|
vdoc README.textile
|
|
|
|
vsv elasticsearch
|
|
|
|
}
|