diff options
author | Spider.007 / Sjon | 2015-06-09 10:54:32 +0200 |
---|---|---|
committer | Lukas Fleischer | 2015-06-19 14:21:46 +0200 |
commit | cd3ce28ac2eb1bb3487c2d0cb8ff0d115af351bc (patch) | |
tree | 69d92a9f2ab1c5685c9f506c6c7c5e02f8c6a9cd | |
download | aur-cd3ce28ac2eb1bb3487c2d0cb8ff0d115af351bc.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | kibana.install | 10 | ||||
-rw-r--r-- | kibana.service | 10 |
4 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..188260c6e669 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by makepkg 4.2.1 +# Tue May 19 09:17:21 UTC 2015 +pkgbase = kibana + pkgdesc = browser based analytics and search dashboard for Elasticsearch. Please note; this package replaces the distributed precompiled binary 'node' + pkgver = 4.0.2 + pkgrel = 2 + url = http://www.elasticsearch.org/overview/kibana/ + install = kibana.install + arch = i686 + arch = x86_64 + license = apache + makedepends = git + depends = nodejs + backup = etc/webapps/kibana/kibana.yml + source = kibana.service + source = https://download.elasticsearch.org/kibana/kibana/kibana-4.0.2-linux-x64.tar.gz + md5sums = SKIP + md5sums = 64d8adf3b25dd382803bc041cca5ea46 + +pkgname = kibana + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..76969c2ec43f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} diff --git a/kibana.install b/kibana.install new file mode 100644 index 000000000000..1a869b0721f4 --- /dev/null +++ b/kibana.install @@ -0,0 +1,10 @@ +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + if [[ $1 == '4.0.0' && $2 == '4.0.0rc1' ]] + then + SERVER=`grep elasticsearch_url: /etc/webapps/kibana/kibana.yml| cut -d\" -f2` + BODY=`curl -XGET $SERVER'/.kibana/config/4.0.0-rc1/_source'` + curl -XPUT $SERVER'/.kibana/config/4.0.0' -d "$BODY" && curl -XDELETE $SERVER'/.kibana/config/4.0.0-rc1' + fi +} diff --git a/kibana.service b/kibana.service new file mode 100644 index 000000000000..7e730d411a7e --- /dev/null +++ b/kibana.service @@ -0,0 +1,10 @@ +[Unit] +Description=Kibana - dashboard for Elasticsearch +After=elasticsearch.service + +[Service] +User=nobody +ExecStart=/usr/share/webapps/kibana/bin/kibana --quiet + +[Install] +WantedBy=multi-user.target |