Commit dd22af25 authored by Floyd's avatar Floyd 🎸 Committed by Leo

community/prometheus-snmp-exporter: upgrade to 0.18.0

parent 91e079b3
# Maintainer: nixfloyd <nixfloyd@gmail.com>
pkgname="prometheus-snmp-exporter"
_pkgname="snmp_exporter"
pkgver="0.16.1"
pkgrel=1
pkgname=prometheus-snmp-exporter
_pkgname=snmp_exporter
pkgver=0.18.0
pkgrel=0
pkgdesc="Description"
url="https://github.com/prometheus/snmp_exporter"
arch="all"
......@@ -12,8 +12,8 @@ install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
source="
$pkgname-$pkgver.tar.gz::https://github.com/prometheus/snmp_exporter/archive/v$pkgver.tar.gz
prometheus-snmp-exporter.initd
prometheus-snmp-exporter.confd
snmp-exporter.initd
snmp-exporter.confd
"
builddir="$srcdir/$_pkgname-$pkgver"
......@@ -32,9 +32,9 @@ check() {
package() {
# Replace with proper package command(s)
install -Dm755 snmp_exporter \
"$pkgdir"/usr/bin/prometheus-snmp-exporter
"$pkgdir"/usr/bin/snmp_exporter
install -Dm755 generator/generator \
"$pkgdir"/usr/bin/prometheus-snmp-generator
"$pkgdir"/usr/bin/snmp_exporter-generator
install -Dm644 snmp.yml \
"$pkgdir"/etc/prometheus/snmp.yml
install -Dm644 -t "$pkgdir"/usr/share/doc/prometheus-snmp-exporter/ \
......@@ -43,12 +43,12 @@ package() {
generator/generator.yml
install -Dm644 -t "$pkgdir"/usr/share/doc/prometheus-snmp-exporter/generator/ \
generator/README.md
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname
install -m755 -D "$srcdir"/snmp-exporter.initd \
"$pkgdir"/etc/init.d/snmp-exporter
install -m644 -D "$srcdir"/snmp-exporter.confd \
"$pkgdir"/etc/conf.d/snmp-exporter
}
sha512sums="ca82464e66c5ac44b46b790582508066e369bcdc1ec9fd06e6576762a8d7afd41bad279717b50f43e3eb7dad156e820432357e52cbbe17e2d87f1621b51e0df5 prometheus-snmp-exporter-0.16.1.tar.gz
42fadcab29b0bac956dd547ca70bb0d3b92b151ba739b5fb94519157ef54f180e13e50a22cb11c701657631bc1c48f3bf5448459ec24bca98fee4f735b07397c prometheus-snmp-exporter.initd
489cb298e215bd9647aa5293d456106eb26a73f5fbd9d42fab68de26d273ebb612dba01ba113ce58521b543a2f82a10ad86dc35056ef8d0438b39e77be61f67e prometheus-snmp-exporter.confd"
sha512sums="ea24d58053089e16b091353ccbb387346f2bef825f181efc8b347349d72a624ecda3269d3261ca0503bcb3c565e723c4a4685b8445a46e38efb892fd2ac7ce89 prometheus-snmp-exporter-0.18.0.tar.gz
a11085f14e192ff277107dbbb12857a3043dbce1acadbbdf94a88d2b921745f9556cad3c0a81a0113349d322e02b1705831967af3ecc0f95259e759ade9ff5ad snmp-exporter.initd
489cb298e215bd9647aa5293d456106eb26a73f5fbd9d42fab68de26d273ebb612dba01ba113ce58521b543a2f82a10ad86dc35056ef8d0438b39e77be61f67e snmp-exporter.confd"
......@@ -2,7 +2,7 @@
name="prometheus-snmp-exporter"
description="prometheus monitoring system & time series database"
supervisor=supervise-daemon
command=/usr/bin/prometheus-snmp-exporter
command=/usr/bin/snmp_exporter
command_args="$command_args"
command_user="prometheus:prometheus"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment