blob: 3c823c441930d77d42757977bdee646103747630 (
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
|
# Maintainer: Slashbunny <demodevil5[at]yahoo>
pkgname=prometheus-bin
pkgver=3.0.0
pkgrel=1
pkgdesc="An open-source service monitoring system and time series database (binary, not built from source)"
arch=('x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="http://prometheus.io"
license=('Apache')
depends=()
makedepends=()
provides=('prometheus')
conflicts=('prometheus' 'prometheus-git')
install='prometheus.install'
backup=('etc/prometheus/prometheus.yml')
source=('prometheus.service')
sha256sums=('0c99b68b282d72feb9fd2bc0b190554659a59dada74ec92ca2b2f48016a9b805')
sha256sums_x86_64=('614ce24f4802f1a2d3dc35ab9bd35047f428469c7e029163602a40078bf7508b')
sha256sums_arm=('3b34c6137f321c5709fa8ae15e88330a8f61d04cc07b278755435947a4a10dac')
sha256sums_armv6h=('4e68d71e6d4f9f1f6955fb1045d7ab6b0f7e2272bd713448e8e3003872409549')
sha256sums_armv7h=('e97e9c9bbc86e2972de9f5db0ac1036e950784316cc0ba70a6fc0b3852cccef5')
sha256sums_aarch64=('b2e6947d5fad863c89f56cee8047e8f57b63fde6b41c918300e1e88c1c62d1b5')
source_x86_64=("https://github.com/prometheus/prometheus/releases/download/v$pkgver/prometheus-$pkgver.linux-amd64.tar.gz")
source_arm=("https://github.com/prometheus/prometheus/releases/download/v$pkgver/prometheus-$pkgver.linux-armv5.tar.gz")
source_armv6h=("https://github.com/prometheus/prometheus/releases/download/v$pkgver/prometheus-$pkgver.linux-armv6.tar.gz")
source_armv7h=("https://github.com/prometheus/prometheus/releases/download/v$pkgver/prometheus-$pkgver.linux-armv7.tar.gz")
source_aarch64=("https://github.com/prometheus/prometheus/releases/download/v$pkgver/prometheus-$pkgver.linux-arm64.tar.gz")
package() {
case "$CARCH" in
'x86_64') ARCH='amd64';;
'arm') ARCH='armv5';;
'armv6h') ARCH='armv6';;
'armv7h') ARCH='armv7';;
'aarch64') ARCH='arm64';;
esac
cd "${srcdir}/prometheus-${pkgver}.linux-${ARCH}"
# Install Binaries
install -D -m0755 prometheus \
"${pkgdir}/usr/bin/prometheus"
install -D -m0755 promtool \
"${pkgdir}/usr/bin/promtool"
# Install Config File
install -D -m0755 prometheus.yml \
"${pkgdir}/etc/prometheus/prometheus.yml"
# Install SystemD Service File
install -D -m0644 "${srcdir}/prometheus.service" \
"${pkgdir}/usr/lib/systemd/system/prometheus.service"
# Install Console files
cp -R consoles/ \
"${pkgdir}/etc/prometheus/consoles"
cp -R console_libraries/ \
"${pkgdir}/etc/prometheus/console_libraries"
}
|