summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c43f7e40b40137ee3a7c26cca33aac23cf05a16 (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
30
31
32
33
34
35
36
37
38
39
# Maintainer: Gareth Dunstone <gareth.dunstone at anu dot edu dot au>

pkgname=kapacitor-bin
pkgver=1.4.1
pkgrel=1
pkgdesc="An open source agent for collecting metrics and data on the system; Binary release"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://github.com/influxdata/kapacitor"
license=('MIT')
depends=()
conflicts=('kapacitor' 'tickfmt')
backup=('etc/kapacitor/kapacitor.conf')
install=kapacitor.install

source_i686=(kapacitor.tar.gz::"https://dl.influxdata.com/kapacitor/releases/kapacitor-${pkgver}_linux_i386.tar.gz")
sha256sums_i686=('29bf5e2c27988029065b93f900b498919f2ad90cc51bfdab67c033697cd7f524')
source_x86_64=(kapacitor.tar.gz::"https://dl.influxdata.com/kapacitor/releases/kapacitor-${pkgver}_linux_amd64.tar.gz")
sha256sums_x86_64=('3fab8a4cdf58d180320f39eac090d90f99d6c4b76f993c7ec0c494f2a6a934c7')
source_armv6h=(kapacitor.tar.gz::"https://dl.influxdata.com/kapacitor/releases/kapacitor-${pkgver}_linux_armhf.tar.gz")
sha256sums_armv6h=('3e3481267b54284017bc3e6bdfc89519cabdb971477a55fc6353c99caec5ba44')
source_armv7h=(kapacitor.tar.gz::"https://dl.influxdata.com/kapacitor/releases/kapacitor-${pkgver}_linux_armhf.tar.gz")
sha256sums_armv7h=('3e3481267b54284017bc3e6bdfc89519cabdb971477a55fc6353c99caec5ba44')
source=('kapacitor.sysusers' 'kapacitor.tmpfiles' 'LICENSE')
sha256sums=('94aa16ca0b89b1773abb2333d03233921effccc9461ca1491eba42688a1505bd'
'ae8da72ee9e077e60f897b2e3920add44b0c4853a6c1bb6cf70767d6caeb4763'
'bece49bfc61abbb9d0b69bebb47955a44617ada83186c95db5651cd40c0a867a')

package() {
  cd $srcdir/kapacitor-$pkgver-$pkgrel
  install -Dm644 ../kapacitor.sysusers "$pkgdir/usr/lib/sysusers.d/kapacitor.conf"
  install -Dm644 ../kapacitor.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/kapacitor.conf"
  install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/kapacitor-bin/LICENSE"

  install -Dm755 usr/bin/kapacitord "$pkgdir/usr/bin/kapacitord"
  install -Dm755 usr/bin/kapacitor "$pkgdir/usr/bin/kapacitor"
  install -Dm644 usr/lib/kapacitor/scripts/kapacitor.service "$pkgdir/usr/lib/systemd/system/kapacitor.service"
  install -Dm644 etc/kapacitor/kapacitor.conf "$pkgdir/etc/kapacitor/kapacitor.conf"
  install -Dm644 etc/logrotate.d/kapacitor "$pkgdir/etc/logrotate.d/kapacitor"
}