aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-09-14 07:10:55 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-09-14 07:10:55 +0000
commit8b33d9faab870c14f7772bdd056082b3f2733c22 (patch)
tree9015b37d5d3635df9b1f3a9ffcbd4b82b162cabf
parentc4fccb416d89c6eff141cecd34a390725e7e098d (diff)
downloadaports-8b33d9faab870c14f7772bdd056082b3f2733c22.tar.bz2
community/elasticsearch: add new modules from v6.4
-rw-r--r--community/elasticsearch/APKBUILD14
1 files changed, 12 insertions, 2 deletions
diff --git a/community/elasticsearch/APKBUILD b/community/elasticsearch/APKBUILD
index 2c12a38..4f269b4 100644
--- a/community/elasticsearch/APKBUILD
+++ b/community/elasticsearch/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=elasticsearch
pkgver=6.4.0
-pkgrel=1
+pkgrel=2
pkgdesc="Open Source, Distributed, RESTful Search Engine"
url="https://www.elastic.co/products/elasticsearch"
arch="x86 x86_64 ppc64le"
@@ -10,7 +10,7 @@ license="Apache-2.0"
depends="java-jna-native>=4.1 openjdk8-jre bash"
makedepends=""
install="$pkgname.pre-install"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-x-pack:_x_pack"
options="!check" # no test suite
pkgusers="elastico"
pkggroups="elastico"
@@ -33,10 +33,12 @@ _modules="
mapper-extras
parent-join
percolator
+ rank-eval
reindex
repository-url
tribe
"
+
for _mod in $_modules; do
subpackages="$subpackages $pkgname-$_mod:_${_mod//-/_}"
eval "_${_mod//-/_}() { _builtin_module $_mod; }"
@@ -97,6 +99,14 @@ _builtin_module() {
install -m644 -t "$destdir" "$builddir"/modules/$name/*
}
+_x_pack() {
+ install -dm755 "$subpkgdir"/$_basedir/modules
+ mv "$builddir"/modules/x-pack* "$subpkgdir"/$_basedir/modules
+
+ # remove module compiled against GLIBC
+ rm -rf "$subpkgdir"/$_basedir/modules/x-pack-ml
+}
+
sha512sums="6f465378a51c487f1f6a84a0843ac1038db60170ee8a5d96874a759f6dbbf2de9f7bcbbf55616f49f28f1098c82f2e585c917267d02b8b1f43627a1984b3da66 elasticsearch-6.4.0.tar.gz
f7ab61ed3e7e8979d1f476502319b9a3874a88b97f70951c0b39e7642b01c942a11384810b1a92efb1ee2b07717bc80dfed8a95f0189b7fef7ce68885e1280cb elasticsearch.initd
2ab1baf1b5c8782f3f371ba221aadd3e841abc62175f0b1ddcfc68d711e2370465124e076f8cc2e549c25a1da9db8c90172b2f410bd6bbe4153f0e831620b6ba elasticsearch.confd