Сравнение blackbox_exporter-0.25.0 с blackbox_exporter-0.28.0
| /usr/portage/app-metrics/blackbox_exporter/blackbox_exporter-0.28.0.ebuild 2026-07-11 20:03:05.933676127 +0300 | ||
|---|---|---|
| 1 |
# Copyright 1999-2025 Gentoo Authors |
|
| 1 |
# Copyright 1999-2026 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| 5 | 5 |
inherit fcaps go-module systemd |
| 6 |
GIT_COMMIT=ef3ff4f |
|
| 7 | 6 |
MY_PV="v${PV/_rc/-rc.}"
|
| 8 | 7 | |
| 9 | 8 |
DESCRIPTION="Prometheus exporter for blackbox probing via HTTP, HTTPS, DNS, TCP and ICMP" |
| 10 | 9 |
HOMEPAGE="https://github.com/prometheus/blackbox_exporter" |
| 11 |
SRC_URI="https://github.com/prometheus/blackbox_exporter/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
| 12 |
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
|
| 10 | ||
| 11 |
SRC_URI="https://github.com/prometheus/blackbox_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
| 12 |
SRC_URI+=" https://github.com/gentoo-golang-dist/blackbox_exporter/releases/download/v${PV}/${P}-vendor.tar.xz"
|
|
| 13 | 13 | |
| 14 | 14 |
LICENSE="Apache-2.0 BSD BSD-2 MIT" |
| 15 | 15 |
SLOT="0" |
| 16 |
KEYWORDS="amd64" |
|
| 16 |
KEYWORDS="~amd64" |
|
| 17 | 17 | |
| 18 | 18 |
COMMON_DEPEND="acct-group/blackbox_exporter |
| 19 | 19 |
acct-user/blackbox_exporter" |
| 20 | 20 |
DEPEND="${COMMON_DEPEND}"
|
| 21 | 21 |
RDEPEND="${COMMON_DEPEND}"
|
| 22 |
BDEPEND="dev-util/promu" |
|
| 22 |
BDEPEND=" |
|
| 23 |
>=dev-lang/go-1.25.0 |
|
| 24 |
dev-util/promu |
|
| 25 |
" |
|
| 23 | 26 | |
| 24 | 27 |
FILECAPS=( |
| 25 | 28 |
cap_net_raw usr/bin/blackbox_exporter |
| ... | ... | |
| 28 | 31 |
# tests require the network |
| 29 | 32 |
RESTRICT+=" test " |
| 30 | 33 | |
| 31 |
src_prepare() {
|
|
| 32 |
default |
|
| 33 |
sed -i \ |
|
| 34 |
-e "s/{{.Branch}}/Head/" \
|
|
| 35 |
-e "s/{{.Revision}}/${GIT_COMMIT}/" \
|
|
| 36 |
-e "s/{{.Version}}/${PV}/" .promu.yml || die
|
|
| 37 |
} |
|
| 34 |
PATCHES=( "${FILESDIR}/0.28.0-promu-config.patch" )
|
|
| 38 | 35 | |
| 39 | 36 |
src_compile() {
|
| 40 | 37 |
promu build -v --prefix bin || die |