37 lines
1.6 KiB
Bash
37 lines
1.6 KiB
Bash
# Maintainer: L. Bradley LaBoon <me@bradleylaboon.com>
|
|
pkgname=splunkforwarder
|
|
basever=9.1.0.1
|
|
splunkver=${basever}-77f73c9edb85
|
|
# 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="Splunk Universal Forwarder"
|
|
url="https://www.splunk.com/"
|
|
arch=('x86_64' 'aarch64')
|
|
license=('custom')
|
|
conflicts=('splunk')
|
|
install="$pkgname.install"
|
|
source=("$pkgname.service" "$pkgname.sysusers" "$pkgname.tmpfiles")
|
|
source_x86_64=("https://download.splunk.com/products/universalforwarder/releases/$basever/linux/$pkgname-$splunkver-Linux-x86_64.tgz")
|
|
source_aarch64=("https://download.splunk.com/products/universalforwarder/releases/$basever/linux/$pkgname-$splunkver-Linux-armv8.tgz")
|
|
sha256sums=('39bbd367e561fb2eac0be5bc23e32484d3728d0f5dde9cbcfd2295eff93ce8c3'
|
|
'27d1d172add8c64a275ec3356f0fa0b9d56036a7e64b7b882e066a67f6173b5b'
|
|
'bca1b7720a827973f1c959cb78d788324f47dd6fcfc03bf4452c457f2d044db5')
|
|
sha256sums_x86_64=('37263392e746ae5a9495d80c027f3b1a3363e76618c419e0fef724e1682c3762')
|
|
sha256sums_aarch64=('6e2146cf80931527c7f87b06c5672f6ea8cbef8bf40552e87bd7e1c5002343db')
|
|
|
|
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/"
|
|
}
|