summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0123726e53330a4c44fbbf4a584e45507a26eef (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
# Maintainer: L. Bradley LaBoon <me@bradleylaboon.com>
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"
}