blob: e63744609f0b5e359b716b87d21472553b3d9722 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
#Submitter: Carsten Feuls <archlinux@carstenfeuls.de>
_pkgname=thanos
pkgname=prometheus-$_pkgname
pkgver=0.3.2
pkgrel=1
pkgdesc="Highly available Prometheus setup with long term storage capabilities. (binary, not built from source)"
arch=("x86_64")
url="https://github.com/improbable-eng/thanos"
license=("Apache")
depends=()
makedepends=()
optdepends=('prometheus: To Store the data with thanos sidecar'
'grafana: To display the Resulst von thanos Query'
'minio: To Provide S3 Storage for sidecar and store')
backup=("etc/thanos/sidecar.conf"
"etc/thanos/store.conf"
"etc/thanos/query.conf"
"etc/thanos/rule.conf"
"etc/thanos/compact.conf"
"etc/thanos/downsample.conf")
source_x86_64=("thanos-sidecar.service"
"thanos-store.service"
"thanos-query.service"
"thanos-rule.service"
"thanos-compact.service"
"thanos-downsample.service"
"thanos-sidecar.conf"
"thanos-store.conf"
"thanos-query.conf"
"thanos-rule.conf"
"thanos-compact.conf"
"thanos-downsample.conf"
"thanos.sysuser"
"https://github.com/improbable-eng/$_pkgname/releases/download/v$pkgver/$_pkgname-$pkgver.linux-amd64.tar.gz")
sha256sums_x86_64=('c5d8fe78aae3e3c5e32790e5a4e8f1ff4d4ac8e608926bf735a7e22a23a4531a'
'f00e6a4c7ff5cc7c8ea94773e716e4ac622941bfb2a5cb30efbf872c45e1bf83'
'f14e3dab682a4e2777ed4c02da1d2be677327f166588767047aa10e853f7d928'
'0e8b5a5be042c6bdb1f279bd835720007d13ea7624592aab0703fc1b8c871b75'
'281903878ba4e8e24981d362fdcfb6b2420db8eb76697401899893f617ee55c2'
'542f8cba235ac7a1d33b8a36eba4a39e152b0777a507b81edc0fe4c68b9357c8'
'2bcd2bdb25490982ef5ce6886836ece58f591c3bd4505655cb8babb374a5052b'
'8548f862efbb0feb93522839d840a56d005ef78f1bce7332ff7ba013fade4431'
'29b5dc83449240ecd9554cead75196e4e4843da3b2ce62db66c9bac04c847027'
'fcea6839dfdd1d0c54fb9c459697ae3a26c112c0e16cf7029892e91d74f0de5d'
'572baa54d9191e7a26865efde62b9170cea41fdc5c94131ae2089b4b3961d3ab'
'3ec0605d3b8d2286f05c7ebfafcae87cf191caf65405e74b38f5e880cbdf08cd'
'0d2ee33fa0a91ea2a93c652fdcc8d50f2b69a3598bc6819f14c57239ce3fcc82'
'f8ddd7f9c4527826b327d0ec66b07000f402e4eec5aaa1d32706438959b7bee7')
package() {
cd "${srcdir}/$_pkgname-$pkgver.linux-amd64"
# Install Binary
install -D -m0755 thanos "${pkgdir}/usr/bin/thanos"
# Install SystemD Service File
install -D -m0644 "${srcdir}/thanos-sidecar.service" "${pkgdir}/usr/lib/systemd/system/thanos-sidecar.service"
install -D -m0644 "${srcdir}/thanos-store.service" "${pkgdir}/usr/lib/systemd/system/thanos-store.service"
install -D -m0644 "${srcdir}/thanos-query.service" "${pkgdir}/usr/lib/systemd/system/thanos-query.service"
install -D -m0644 "${srcdir}/thanos-rule.service" "${pkgdir}/usr/lib/systemd/system/thanos-rule.service"
install -D -m0644 "${srcdir}/thanos-compact.service" "${pkgdir}/usr/lib/systemd/system/thanos-compact.service"
install -D -m0644 "${srcdir}/thanos-downsample.service" "${pkgdir}/usr/lib/systemd/system/thanos-downsample.service"
install -D -m0644 "${srcdir}/thanos.sysuser" "${pkgdir}/usr/lib/sysusers.d/thanos.conf"
install -d -m0755 -o212 -g212 "${pkgdir}/etc/thanos/"
install -d -m0755 -o212 -g212 "${pkgdir}/etc/thanos/rules/"
install -d -m0755 -o212 -g212 "${pkgdir}/var/lib/thanos/compact/"
install -d -m0755 -o212 -g212 "${pkgdir}/var/lib/thanos/rule/"
install -d -m0755 -o212 -g212 "${pkgdir}/var/lib/thanos/downsample/"
install -d -m0755 -o212 -g212 "${pkgdir}/var/lib/thanos/store/"
# Install thanos config
install -D -m644 -o212 -g212 "${srcdir}/thanos-sidecar.conf" "${pkgdir}/etc/thanos/sidecar.conf"
install -D -m644 -o212 -g212 "${srcdir}/thanos-store.conf" "${pkgdir}/etc/thanos/store.conf"
install -D -m644 -o212 -g212 "${srcdir}/thanos-query.conf" "${pkgdir}/etc/thanos/query.conf"
install -D -m644 -o212 -g212 "${srcdir}/thanos-rule.conf" "${pkgdir}/etc/thanos/rule.conf"
install -D -m644 -o212 -g212 "${srcdir}/thanos-compact.conf" "${pkgdir}/etc/thanos/compact.conf"
install -D -m644 -o212 -g212 "${srcdir}/thanos-downsample.conf" "${pkgdir}/etc/thanos/downsample.conf"
}
|