2015-04-05 06:02:41 +02:00
|
|
|
# Template file for 'elasticsearch'
|
|
|
|
pkgname=elasticsearch
|
2015-10-21 11:02:56 +02:00
|
|
|
version=1.7.3
|
2016-01-11 10:50:08 +01:00
|
|
|
revision=2
|
2015-04-05 06:02:41 +02:00
|
|
|
only_for_archs="i686 x86_64"
|
2015-04-14 21:56:29 +02:00
|
|
|
depends="virtual?java-runtime"
|
2015-04-05 06:02:41 +02:00
|
|
|
short_desc="A distributed, open source search and analytics engine"
|
2015-09-25 08:07:03 +02:00
|
|
|
maintainer="bougyman <bougyman@voidlinux.eu>"
|
2015-07-18 09:08:11 +02:00
|
|
|
license="Apache-2.0"
|
2015-04-05 06:02:41 +02:00
|
|
|
homepage="http://www.elastic.co"
|
2015-04-25 16:16:24 +02:00
|
|
|
distfiles="https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${version}.tar.gz"
|
2015-10-21 11:02:56 +02:00
|
|
|
checksum=af517611493374cfb2daa8897ae17e63e2efea4d0377d316baa351c1776a2bca
|
2015-04-05 06:02:41 +02:00
|
|
|
system_accounts="elastic"
|
2015-04-05 16:42:14 +02:00
|
|
|
conf_files="/etc/elasticsearch/elasticsearch.yml /etc/elasticsearch/logging.yml"
|
2015-04-05 06:02:41 +02:00
|
|
|
|
|
|
|
do_install() {
|
2015-07-18 09:08:11 +02:00
|
|
|
vmkdir usr/bin
|
|
|
|
vmkdir usr/lib/$pkgname/bin
|
|
|
|
vmkdir usr/lib/$pkgname/lib/sigar
|
|
|
|
vmkdir etc/$pkgname
|
|
|
|
|
2015-04-05 06:02:41 +02:00
|
|
|
vcopy bin/elasticsearch usr/lib/elasticsearch/bin
|
|
|
|
vcopy bin/elasticsearch.in.sh usr/lib/elasticsearch/bin
|
2015-07-16 16:28:38 +02:00
|
|
|
vcopy bin/plugin usr/lib/elasticsearch/bin
|
2015-04-05 06:02:41 +02:00
|
|
|
vcopy lib/*.jar usr/lib/elasticsearch/lib
|
|
|
|
vcopy lib/sigar/*.jar usr/lib/elasticsearch/lib/sigar
|
2015-04-05 06:10:03 +02: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 06:02:41 +02:00
|
|
|
vcopy config/*.yml etc/elasticsearch
|
2015-07-18 09:08:11 +02:00
|
|
|
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
|
2015-04-05 06:02:41 +02:00
|
|
|
vlicense LICENSE.txt
|
|
|
|
vlicense NOTICE.txt
|
|
|
|
vdoc README.textile
|
|
|
|
vsv elasticsearch
|
|
|
|
}
|