app-metrics/frr_exporter: new package, add 1.3.1

Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2024-09-23 23:14:45 +02:00
parent 0dfba22be6
commit 312b257df0
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
8 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,3 @@
DIST frr_exporter-1.3.1-deps.tar.xz 93350848 BLAKE2B cc25f5556a4009bfd51286f33e6e286dd8bcf8794e6a3fd34b9dec57b84618a180b94844ac1b9e862f48349f7c18a8ff4b7839cc0920f6b29ca9a1f7e6e22055 SHA512 2bac7873a7cc577730643d68377fcad6f58066befb84e0c6f9699ccb599b54d9277c5e50ad3c77aff4fe656d67d1ef9e2f97f7b193f03a37512e6d9fbf9426d6
DIST frr_exporter-1.3.1-vendor.tar.xz 1441196 BLAKE2B 58f4e669fc5727292aac62de470660b8559d6276a05d323324e5416ad573c1af292d8912f910a90457fbd823dfda3ee900cffb4549c1a39152f545cd9a3c9253 SHA512 5999b8d896149d9137b25a15924a0675c54ed41ee218bda62a1e7f6df91fd95c05b7147c5478699de63c46443502b8f2726bb921af271b9c2b70c6e5c8fccb9d
DIST frr_exporter-1.3.1.tar.gz 28354 BLAKE2B bfbcefb489ab925bf5ed803d0f2506659a28a0881f4a25dfbd7ad5ac5f7d8f160ff9925d6bc12952405f9b0ebe5d4bb8815d84492291ecba3acf1cec6dd3918c SHA512 6b7dc3a9b38137422bc46b1a93b0cb7921d92010de59b7228d90afa2afb73c4a4f0156b46978e0c2943e8fe41a6f8cf5663a53dbe395c21947ce37fb50c01f24

View file

@ -0,0 +1,2 @@
# arguments for prometheus frr exporter
command_args=""

View file

@ -0,0 +1,19 @@
#!/sbin/openrc-run
# Copyright 2016-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description="Prometheus frr exporter"
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
user=${user:-${RC_SVCNAME}}
group=${group:-${RC_SVCNAME}}
command="/usr/bin/frr_exporter"
command_args="${command_args:-}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
--stdout /var/log/${RC_SVCNAME}.log \
--stderr /var/log/${RC_SVCNAME}.log"
depend() {
after net
}

View file

@ -0,0 +1,11 @@
[Unit]
Description=FRR Exporter
Documentation="https://github.com/prometheus-community/frr_exporter"
[Service]
User=frr_exporter
EnvironmentFile=/etc/sysconfig/frr_exporter
ExecStart=/usr/bin/frr_exporter $OPTIONS
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,37 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd
DESCRIPTION="Prometheus exporter for Free Range Routing"
HOMEPAGE="https://github.com/tynany/frr_exporter"
SRC_URI="
https://github.com/tynany/frr_exporter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://herbizarre.swordarmor.fr/garbage/${P}-vendor.tar.xz
https://herbizarre.swordarmor.fr/garbage/${P}-deps.tar.xz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
acct-group/frr_exporter
acct-user/frr_exporter
"
RDEPEND="${DEPEND}"
BDEPEND="dev-util/promu"
src_compile() {
mkdir -p bin || die
promu build -v --prefix bin || die
}
src_install() {
dobin bin/${PN}
dodoc {README,CHANGELOG}.md
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}
systemd_dounit "${FILESDIR}"/${PN}.service
}

View file

@ -0,0 +1,8 @@
DEFINED_PHASES=install preinst pretend
DESCRIPTION=System group: frr_exporter
EAPI=8
INHERIT=acct-group
KEYWORDS=~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris
SLOT=0
_eclasses_=user-info 9951b1a0e4f026d16c33a001fd2d5cdf acct-group 8c6e16e1203a4a4114b121c04ee5e474
_md5_=08e5588d022d727901f27c7706d761c9

View file

@ -0,0 +1,9 @@
DEFINED_PHASES=install postinst preinst prerm pretend
DESCRIPTION=User for app-metrics/frr_exporter
EAPI=8
INHERIT=acct-user
KEYWORDS=~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris
RDEPEND=acct-group/frr_exporter
SLOT=0
_eclasses_=user-info 9951b1a0e4f026d16c33a001fd2d5cdf acct-user bab50e8bac8e1df6a32a6b9e2fb19a64
_md5_=e9780baadf5d261a068619d817f1ffcf

View file

@ -0,0 +1,15 @@
BDEPEND=dev-util/promu >=dev-lang/go-1.20:= app-arch/unzip virtual/pkgconfig
DEFINED_PHASES=compile install unpack
DEPEND=acct-group/frr_exporter acct-user/frr_exporter
DESCRIPTION=Prometheus exporter for Free Range Routing
EAPI=8
HOMEPAGE=https://github.com/tynany/frr_exporter
INHERIT=go-module systemd
KEYWORDS=~amd64
LICENSE=MIT
RDEPEND=acct-group/frr_exporter acct-user/frr_exporter
RESTRICT=strip
SLOT=0
SRC_URI=https://github.com/tynany/frr_exporter/archive/refs/tags/v1.3.1.tar.gz -> frr_exporter-1.3.1.tar.gz https://herbizarre.swordarmor.fr/garbage/frr_exporter-1.3.1-vendor.tar.xz https://herbizarre.swordarmor.fr/garbage/frr_exporter-1.3.1-deps.tar.xz
_eclasses_=multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe toolchain-funcs 333970c740aa7b1a92e4fcdc52f612bd multilib c19072c3cd7ac5cb21de013f7e9832e0 flag-o-matic e503ea5acc20410237ba33ec3f7c857d go-env 90efbc8636d2f02d9654183330e84cf7 go-module 83fd3ed1657cfc316c93d6a37018290d systemd c8b03e8df84486aa991d4396686e8942
_md5_=6fc9b2e378a1abf62aa5a85a1d380948