35 lines
1.4 KiB
Bash
35 lines
1.4 KiB
Bash
# Maintainer: L. Bradley LaBoon <me@bradleylaboon.com>
|
|
pkgname=splunk
|
|
basever=9.2.0
|
|
splunkver=${basever}-1fff88043d5f
|
|
# Splunk is inconsistent with the length of their version numbers
|
|
if [ ${#basever} -gt 5 ]; then
|
|
pkgver=${basever}
|
|
else
|
|
pkgver=${basever}.0
|
|
fi
|
|
pkgrel=1
|
|
epoch=3
|
|
pkgdesc="Statistical analysis and search tool for logs and machine data"
|
|
url="https://www.splunk.com/"
|
|
arch=('x86_64')
|
|
license=('custom')
|
|
install="$pkgname.install"
|
|
source=("$pkgname.service" "$pkgname.sysusers" "$pkgname.tmpfiles")
|
|
source_x86_64=("https://download.splunk.com/products/splunk/releases/$basever/linux/$pkgname-$splunkver-Linux-x86_64.tgz")
|
|
sha256sums=('f4e831e3b281f1e677a3597fc85162cd347803ea3b41605f990347000e5caff9'
|
|
'236deb352218f9551df894efd613aad201afb20713ac563ab381f68b6ffce853'
|
|
'56b70a2395270fc038987241504df11c390f3234d5be640bbc6a311b978e8475')
|
|
sha256sums_x86_64=('b5ba92a2123a21e02f52f632271aa955e59a257e92d3503466de5f24d3e0ce7b')
|
|
options=(!strip)
|
|
|
|
package() {
|
|
cd "$srcdir"
|
|
install -vDm 644 ${pkgname}.sysusers "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
|
|
install -vDm 644 ${pkgname}.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
|
|
install -Dm644 "$pkgname/license-eula.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
install -Dm644 "$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
|
mkdir "$pkgdir/opt"
|
|
cp -r "$pkgname" "$pkgdir/opt/"
|
|
}
|