summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e48f795d8570ec7cf52089b1a6901d3672ede4b (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
29
30
31
32
33
34
# Contributor: tunght13488 <tunght13488 PLUS archlinux AT gmail DOT com>
pkgname=kibana4
_pkgname=kibana
pkgver=4.6.4
pkgrel=1
pkgdesc="browser based analytics and search dashboard for Elasticsearch. Please note; this package replaces the distributed precompiled binary 'node' (this is a fork from kibana which is on v5)"
arch=('any')
url="https://www.elastic.co/products/kibana"
license=('apache')
depends=('nodejs')
optdepends=('elasticsearch>=2.4')
conflicts=('kibana')
backup=('etc/elasticsearch/kibana/kibana.yml')
options=('!strip')
source=(
	"https://download.elasticsearch.org/kibana/kibana/${_pkgname}-${pkgver}-linux-x86_64.tar.gz"
	kibana.service)
sha256sums=('05699ab7810d1291d555b429081e0299575270e0eb06491af44ba76b355acead'
			'SKIP')

package() {
	cd "${pkgdir}"

	install -dm755 usr/lib/kibana
	install -Dm644 "${srcdir}/kibana.service" usr/lib/systemd/system/kibana.service

	cd "${srcdir}/${_pkgname}-${pkgver}-linux-x86_64"

	install -Dm644 config/kibana.yml "${pkgdir}"/etc/elasticsearch/kibana/kibana.yml

	rm -R ./node/
	chmod o+w optimize/
	cp -Rp * "${pkgdir}"/usr/lib/kibana/
}