blob: e423e469c5404dfc0215a32a0070e76069d70672 (
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
35
36
37
38
39
40
41
|
# Maintainer: Vladislav Minakov <v@minakov.pro>
pkgname=kibana-bin
pkgver=8.16.1
pkgrel=1
pkgdesc="Browser based analytics and search dashboard for Elasticsearch"
arch=("x86_64")
url="https://github.com/elastic/kibana"
license=("Apache")
depends=("nodejs")
optdepends=("elasticsearch")
backup=("etc/kibana/kibana.yml")
options=("!strip" "emptydirs")
source=("https://artifacts.elastic.co/downloads/kibana/kibana-${pkgver}-linux-x86_64.tar.gz"
"kibana.service"
"kibana.tmpfiles"
"kibana.sysusers")
sha512sums=('7819adb11bf0e8c456b3f3afba25ec801c0e3a095928294390eb465600d849a50a6dabcac47360bef1f452ddb2e472421c50e14bed66f8b7da991837aca4469a'
'c8858f16fb04bd0f549e9e0b36b1792d7873650a6a78a6cad685f2f758f5bf07d7189abddb8a5f013453e74390b79d4217d3b56f1ac9e917ecc5002f61fdffef'
'b27b0fe6af95d95b3c2113c969c03c72f0b2100e88e643b6303329c5039d5e480242a08e7dbfa9fa95023337b713729cf563889a98bdc0e979f377eb42cacbe8'
'f3dca652c1ce3f292391a8c8b3d021e1e769d936e7598978d23e20f710bb0b79aae8acfd1b32aebcb87b2cb15d765c83db5584a9df904590350e0fc0570a3193')
prepare() {
cd kibana-${pkgver}
sed "s@^var isVersionValid = .*@var isVersionValid = true;@" -i src/setup_node_env/node_version_validator.js
sed -r "s|#(logging.quiet:) false|\1 true|" -i config/kibana.yml
}
package() {
cd kibana-${pkgver}
find node_modules -type d -empty -delete
rm -rf node
install -Dm 640 config/kibana.yml "${pkgdir}/etc/kibana/kibana.yml"
install -dm 755 "${pkgdir}/usr/share/webapps/kibana"
cp -a * "${pkgdir}/usr/share/webapps/kibana"
chmod -R 755 "${pkgdir}/usr/share/webapps/kibana" "${pkgdir}/etc/kibana/"
install -Dm 644 "${srcdir}/kibana.service" "${pkgdir}/usr/lib/systemd/system/kibana.service"
install -Dm 644 "${srcdir}/kibana.sysusers" "${pkgdir}/usr/lib/sysusers.d/kibana.conf"
install -Dm 644 "${srcdir}/kibana.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/kibana.conf"
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|