summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76969c2ec43fc50797d8f03af13980d978873d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Contributor: Spider.007 <archlinux AT spider007 DOT net>
pkgname=kibana
pkgver=4.0.2
pkgrel=2
pkgdesc="browser based analytics and search dashboard for Elasticsearch. Please note; this package replaces the distributed precompiled binary 'node'"
arch=('i686' 'x86_64')
url="http://www.elasticsearch.org/overview/kibana/"
license=('apache')
makedepends=('git')
depends=('nodejs')
backup=('etc/webapps/kibana/kibana.yml')
install=kibana.install
source=("kibana.service" "https://download.elasticsearch.org/kibana/kibana/$pkgname-${pkgver/r/-r}-linux-x64.tar.gz")
[[ $CARCH == 'i686' ]] && ${source[1]}=${source[1]/x64/x86}
md5sums=('SKIP' '64d8adf3b25dd382803bc041cca5ea46')

package() {
  p=$srcdir/`basename ${source[1]%.tar.gz}`
  mkdir -p $pkgdir/usr/{share/webapps/kibana,lib/systemd/system} $pkgdir/etc/webapps/
  mv $p/config $pkgdir/etc/webapps/kibana
  cp -Rp $p/* $pkgdir/usr/share/webapps/kibana/
  cp $srcdir/kibana.service $pkgdir/usr/lib/systemd/system/
  ln -s /etc/webapps/kibana/ $pkgdir/usr/share/webapps/kibana/config

  # If you want the vanilla experience, remove these 2 lines to use the distributed binary
  rm $pkgdir/usr/share/webapps/kibana/node/bin/node
  ln -s /usr/bin/node $pkgdir/usr/share/webapps/kibana/node/bin/node
}