diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-09-13 12:08:20 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-09-13 12:08:39 +0000 |
commit | 4c471fa663fbb6ecd7af365c4c72e6bb9fa5f558 (patch) | |
tree | cce986866f554d4835a3fb45e153c8ce05a5babf /testing/kibana/APKBUILD | |
parent | c0a7b7fae67a3a1be82e7fd2544e6aba432e3ed4 (diff) | |
download | aports-4c471fa663fbb6ecd7af365c4c72e6bb9fa5f558.tar.bz2 aports-4c471fa663fbb6ecd7af365c4c72e6bb9fa5f558.tar.xz |
testing/kibana: new aport
Visualize and manage Elasticsearch data
Diffstat (limited to 'testing/kibana/APKBUILD')
-rw-r--r-- | testing/kibana/APKBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/kibana/APKBUILD b/testing/kibana/APKBUILD new file mode 100644 index 0000000000..801742ec52 --- /dev/null +++ b/testing/kibana/APKBUILD @@ -0,0 +1,58 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=kibana +pkgver=6.4.0 +pkgrel=0 +pkgdesc="Visualize Elasticsearch data and navigate the Elastic Stack" +url="https://www.elastic.co/products/kibana" +arch="x86_64" +license="Apache-2.0" +depends="nodejs" +install="$pkgname.pre-install" +subpackages="$pkgname-doc" +pkgusers="kibana" +pkggroups="kibana" +options="!check" # no test suite +source="https://artifacts.elastic.co/downloads/kibana/kibana-oss-$pkgver-linux-x86_64.tar.gz + kibana.initd + default_config.patch + " +builddir="$srcdir"/$pkgname-$pkgver-linux-x86_64 + +build() { + return 0 +} + +package() { + cd "$builddir" + install -m755 -d \ + "$pkgdir"/usr/share/webapps/$pkgname \ + "$pkgdir"/var/lib/$pkgname \ + "$pkgdir"/usr/share/doc/$pkgname + + # move config into /etc + install -m755 -d "$pkgdir"/etc/$pkgname + install -m644 -o $pkgusers -g $pkggroups config/kibana.yml "$pkgdir"/etc/$pkgname/kibana.yml + rm config/kibana.yml && rmdir config + + # move data into /var + install -m755 -o $pkgusers -g $pkggroups -d "$pkgdir"/var/lib/$pkgname/data + rmdir data + + # remove ELF compiled against GLIBC + rm node_modules/clipboardy/fallbacks/linux/xsel + + # move docs into subpkg + mv *.txt "$pkgdir"/usr/share/doc/$pkgname + + # use system nodejs + rm -rf node + + # everything else in webapps + mv * "$pkgdir"/usr/share/webapps/$pkgname + + install -m755 -D "$srcdir"/$pkgname.initd $pkgdir/etc/init.d/$pkgname +} + +sha512sums="eec78bb1935fdc126f7c69ea08c0997abc74f435f5ca24aa6fa370ad201dd1ebe9ab1d177f64ec66652a3c9c0dd3f13a8fa7866697d3f201f8bc124c051ebeba kibana-oss-6.4.0-linux-x86_64.tar.gz +a6988b51ad758bce6c31aa90b905f833c7b641dec6b63a9da928c328b3da42a69bb855ecdbd22c15e035a20c6f28f90ddd88d85c6890acd58bef7608be2c25e8 kibana.initd +fae5536d02f6bb90d2e5930532e41b8327790eb83e412028b25eb0c7bd44d8fa38edd66fa9f4017d86819baba929e56dbc49bdb1dcbdea16f3447daa457514f4 default_config.patch" |