# Maintainer: L. Bradley LaBoon pkgname=splunkforwarder basever=6.5.0 pkgver=${basever}_59c8927def0f pkgrel=2 pkgdesc="Splunk Universal Forwarder" url="http://www.splunk.com/" arch=('x86_64' 'i686') license=('custom') conflicts=('splunk') install="$pkgname.install" source=("$pkgname.service") source_i686=("http://download.splunk.com/products/universalforwarder/releases/$basever/linux/$pkgname-${pkgver//_/-}-Linux-i686.tgz") source_x86_64=("http://download.splunk.com/products/universalforwarder/releases/$basever/linux/$pkgname-${pkgver//_/-}-Linux-x86_64.tgz") sha256sums=('8bd6b2bcf9e9d89d3ab2160c409687313bbee00b7e44b3df3266b44d15a5c152') sha256sums_i686=('2d0bb320c57350f45f358ed8064f5deed33ad86d7a78010c0a2658783d2efec4') sha256sums_x86_64=('d085c770e5c154494d1e7571a95d9f23d036fd513ce054ba3120b2f5a255f6bf') package() { cd "$srcdir" 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/" # This file causes conflicts with existing installs # and ships empty anyway, so just remove it rm "$pkgdir/opt/$pkgname/etc/users/users.ini" }