Diff node_exporter-1.3.1 with a node_exporter-1.4.0
/usr/portage/app-metrics/node_exporter/node_exporter-1.4.0.ebuild 2023-10-09 14:52:28.776368332 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
1 |
# Copyright 1999-2023 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 |
inherit go-module systemd |
6 | 6 |
MY_PV="v${PV/_rc/-rc.}" |
7 |
NODE_EXPORTER_COMMIT=a2321e7 |
|
7 |
NODE_EXPORTER_COMMIT=7da1321761b3b8dfc9e496e1a60e6a476fec6018 |
|
8 | 8 | |
9 | 9 |
DESCRIPTION="Prometheus exporter for machine metrics" |
10 | 10 |
HOMEPAGE="https://github.com/prometheus/node_exporter" |
... | ... | |
16 | 16 |
KEYWORDS="amd64 ~arm64 ~riscv ~x86" |
17 | 17 |
IUSE="selinux" |
18 | 18 | |
19 |
CDEPEND="acct-group/node_exporter |
|
19 |
COMMON_DEPEND="acct-group/node_exporter |
|
20 | 20 |
acct-user/node_exporter" |
21 | 21 |
DEPEND=">=dev-util/promu-0.3.0 |
22 |
${CDEPEND}" |
|
23 |
RDEPEND="${CDEPEND} |
|
22 |
${COMMON_DEPEND}" |
|
23 |
RDEPEND="${COMMON_DEPEND} |
|
24 | 24 |
selinux? ( sec-policy/selinux-node_exporter )" |
25 | 25 | |
26 | 26 |
S="${WORKDIR}/${PN}-${PV/_rc/-rc.}" |
... | ... | |
36 | 36 |
promu build -v --prefix node_exporter || die |
37 | 37 |
} |
38 | 38 | |
39 |
src_test() { |
|
40 |
emake test-flags= test |
|
41 |
} |
|
42 | ||
39 | 43 |
src_install() { |
40 | 44 |
dosbin node_exporter/node_exporter |
41 | 45 |
dodoc {README,CHANGELOG,CONTRIBUTING}.md |
42 |
systemd_dounit "${FILESDIR}"/node_exporter.service |
|
43 |
newinitd "${FILESDIR}"/${PN}.initd ${PN} |
|
46 |
systemd_newunit "${FILESDIR}"/node_exporter.service-1 node_exporter.service |
|
47 |
newinitd "${FILESDIR}"/${PN}.initd-1 ${PN} |
|
44 | 48 |
newconfd "${FILESDIR}"/${PN}.confd ${PN} |
45 | 49 |
keepdir /var/lib/node_exporter /var/log/node_exporter |
46 | 50 |
fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter |