summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7876b9dda42f13894090289f92015ecf2031111 (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
# Maintainer: L. Bradley LaBoon <me@bradleylaboon.com>
pkgname=splunk
basever=6.5.0
pkgver=${basever}_59c8927def0f
pkgrel=2
pkgdesc="Statistical analysis and search tool for logs and machine data"
url="http://www.splunk.com/"
arch=('x86_64' 'i686')
license=('custom')
install="$pkgname.install"
source=("$pkgname.service")
source_i686=("http://download.splunk.com/products/splunk/releases/$basever/linux/$pkgname-${pkgver//_/-}-Linux-i686.tgz")
source_x86_64=("http://download.splunk.com/products/splunk/releases/$basever/linux/$pkgname-${pkgver//_/-}-Linux-x86_64.tgz")
sha256sums=('ca96b85750a0592208facc747bbe1eb22b0a35b6dee841e6f51f1ad6a9157757')
sha256sums_i686=('876f759ad7fefefed41df6e6c7928ff004e36f0139caed3b562d1b4a8aeb6fd3')
sha256sums_x86_64=('03c935b3ab3404114dd008334b5f131c5fb7cf2fb009622580f2942cd898370a')

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"
}