Сравнение mysqld_exporter-0.12.1_p20200622 с mysqld_exporter-0.14.0
/usr/portage/app-metrics/mysqld_exporter/mysqld_exporter-0.14.0.ebuild 2023-10-09 14:52:28.776368332 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2020 Gentoo Authors |
|
1 |
# Copyright 1999-2022 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 | 6 |
# uncomment the first setting of MY_PV for a normal release |
7 | 7 |
# MY_PV="v${PV/_rc/-rc.}" |
8 | 8 |
# set MY_PV to the full commit hash for a snapshot release |
9 |
MY_PV=f5d5289f7627016d8b53b0b3fa7615da8a73b56a |
|
10 |
MYSQLD_EXPORTER_COMMIT=f5d5289f |
|
9 |
MY_PV_HASH= |
|
10 |
if [[ -n "${MY_PV_HASH}" ]]; then |
|
11 |
MY_PV=${MY_PV_HASH} |
|
12 |
MYSQLD_EXPORTER_COMMIT=${MY_PV_HASH:0:8} |
|
13 |
SRC_URI_UPSTREAM="https://github.com/prometheus/mysqld_exporter/archive/${MY_PV}.tar.gz" |
|
14 |
else |
|
15 |
MY_PV=${PV} |
|
16 |
MYSQLD_EXPORTER_COMMIT= |
|
17 |
SRC_URI_UPSTREAM="https://github.com/prometheus/mysqld_exporter/archive/refs/tags/v${PV}.tar.gz" |
|
18 |
fi |
|
19 |
MY_P=${PN}-${MY_PV} |
|
20 |
SRC_URI_VENDOR="https://dev.gentoo.org/~robbat2/distfiles/${MY_P}-vendor.tar.xz" |
|
11 | 21 | |
12 | 22 |
DESCRIPTION="Prometheus exporter for MySQL server metrics" |
13 | 23 |
HOMEPAGE="https://github.com/prometheus/mysqld_exporter" |
14 |
SRC_URI="https://github.com/prometheus/mysqld_exporter/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
|
24 |
SRC_URI=" |
|
25 |
${SRC_URI_UPSTREAM} -> ${P}.tar.gz |
|
26 |
${SRC_URI_VENDOR} |
|
27 |
" |
|
15 | 28 | |
16 | 29 |
LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0" |
17 | 30 |
SLOT="0" |
... | ... | |
33 | 46 |
src_prepare() { |
34 | 47 |
default |
35 | 48 | |
36 |
sed -i -e "s/{{.Revision}}/${MYSQLD_EXPORTER_COMMIT}/" .promu.yml || die |
|
49 |
if [[ -n $MYSQLD_EXPORTER_COMMIT ]]; then |
|
50 |
sed -i -e "s/{{.Revision}}/${MYSQLD_EXPORTER_COMMIT}/" .promu.yml || die |
|
51 |
fi |
|
37 | 52 |
} |
38 | 53 | |
39 | 54 |
src_compile() { |