Diff nginx-vts-exporter-0.10.7-r1 with a nginx-vts-exporter-0.10.8
/usr/portage/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.8.ebuild 2025-02-03 17:39:32.306665057 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2018 Gentoo Foundation |
|
1 |
# Copyright 1999-2025 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 |
6 |
EGO_PN="github.com/hnlq715/nginx-vts-exporter" |
|
7 |
EXPORTER_COMMIT=b935b793fbd8478d3feea529b036e753169ddabd |
|
8 | 6 | |
9 | 7 |
DESCRIPTION="Nginx virtual host traffic stats exporter for Prometheus" |
10 | 8 |
HOMEPAGE="https://github.com/hnlq715/nginx-vts-exporter" |
11 |
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|
9 |
SRC_URI="https://github.com/hnlq715/nginx-vts-exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|
10 |
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" |
|
12 | 11 | |
13 | 12 |
LICENSE="MIT Apache-2.0 BSD" |
14 | 13 |
SLOT="0" |
15 | 14 |
KEYWORDS="~amd64" |
16 |
IUSE="" |
|
17 | 15 | |
18 |
BDEPEND="dev-util/promu" |
|
19 | 16 |
COMMON_DEPEND="acct-group/nginx-vts-exporter |
20 | 17 |
acct-user/nginx-vts-exporter" |
21 | 18 |
DEPEND="${COMMON_DEPEND}" |
22 | 19 |
RDEPEND="${COMMON_DEPEND}" |
23 | 20 | |
24 |
src_prepare() { |
|
25 |
default |
|
26 |
sed -i \ |
|
27 |
-e "/-s$/d" \ |
|
28 |
-e "s/{{.Revision}}/${EXPORTER_COMMIT}/" \ |
|
29 |
.promu.yml || die |
|
30 |
} |
|
31 | ||
32 | 21 |
src_compile() { |
33 |
mkdir -p bin || die |
|
34 |
promu build -v --prefix bin || die |
|
22 |
ego build . |
|
35 | 23 |
} |
36 | 24 | |
37 | 25 |
src_install() { |
38 |
newbin bin/${P} ${PN} |
|
26 |
dobin ${PN} |
|
39 | 27 |
dodoc README.md |
40 |
keepdir /var/log/${PN} |
|
41 |
fowners ${PN}:${PN} /var/log/${PN} |
|
42 | 28 |
newinitd "${FILESDIR}"/${PN}.initd ${PN} |
43 | 29 |
newconfd "${FILESDIR}"/${PN}.confd ${PN} |
30 |
keepdir /var/log/${PN} |
|
31 |
fowners ${PN}:${PN} /var/log/${PN} |
|
44 | 32 |
} |