blob: f29e5dd7810993f048a1dbdb16fbe2a169857c28 (
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=2.50.1
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=('936f3777f8c3a4a90d3c58a6f410350d5932c79367b99771d002bd36e48bd05b')
sha256sums_arm=('03e744703509ffe67b46d009522ccfa99734bc6c84acf10ae70453e78507c4b6')
sha256sums_armv6h=('954b79ef1a78c405d35d712d936681831bbfc6ca78c1b2bf9f7c8d6bf6f51194')
sha256sums_armv7h=('3ec3073dec3dfd874ebe74620b6ed1dc9a030379cdff46ad816a6e95b85316d8')
sha256sums_aarch64=('9f1a65cf08cef3dcd5f0d38d8673ecfaf1054aa9e1e5c18c94efd8546c1fdd96')
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"
}
|