blob: 3a1e958b430d2f15d60e1c2971202a2342cd76c1 (
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
|
# Maintainer: Mario Hros <m-aur@k3a.me>
pkgname=go-carbon
pkgver=0.18.0
pkgrel=1
pkgdesc="Golang implementation of Graphite/Carbon server with classic architecture: Agent -> Cache -> Persister"
arch=(i686 x86_64)
url='https://github.com/go-graphite/go-carbon'
license=('MIT')
depends=(glibc)
makedepends=('go>=1.14')
backup=(etc/go-carbon/go-carbon.conf
etc/go-carbon/storage-{aggregation,schemas}.conf)
source=($pkgname-$pkgver.tar.gz::https://github.com/go-graphite/go-carbon/archive/v$pkgver.tar.gz
go-carbon-dynamicuser.diff)
sha256sums=('6af0223282dbbf04880d1b82a5605be99db5a0475599748fa5598f3e0eab856e'
'dceef1378a24a7acf7677284ee52f86e197fadeeab87b3c289cc0ac5741add9d')
build() {
cd "${srcdir}/$pkgname-$pkgver"
cp go-carbon.conf.example deploy/go-carbon.conf
make BUILD="$pkgver"
mkdir out
mv ./go-carbon ./out/go-carbon-linux-amd64
make package-tree
(cd "out/root/lib/systemd/system" && patch -p1 <"${srcdir}/go-carbon-dynamicuser.diff")
}
package() {
cd "${srcdir}/$pkgname-$pkgver"
install -Dm0755 "./out/go-carbon-linux-amd64" "${pkgdir}/usr/bin/go-carbon"
cp -rfa "./out/root"/etc "${pkgdir}/"
cp -rfa "./out/root"/lib "${pkgdir}/usr/"
}
# vim:set ts=4 sw=4 noet:
|