Diff portage-exporter-0.0.1 with a portage-exporter-0.1.0
/usr/portage/app-metrics/portage-exporter/portage-exporter-0.1.0.ebuild 2023-10-09 14:52:28.776368332 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
inherit go-module |
|
6 |
inherit cmake systemd |
|
7 | 7 | |
8 | 8 |
DESCRIPTION="Prometheus exporter for Gentoo Portage" |
9 | 9 |
HOMEPAGE="https://github.com/projg2/portage-exporter" |
10 |
SRC_URI=" |
|
11 |
https://github.com/projg2/${PN}/releases/download/v${PV}/${P}.tar.gz |
|
12 |
" |
|
10 |
SRC_URI="https://github.com/projg2/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|
13 | 11 | |
14 |
LICENSE="GPL-3 Apache-2.0 BSD MIT" |
|
12 |
LICENSE="GPL-3" |
|
15 | 13 |
SLOT="0" |
16 | 14 |
KEYWORDS="~amd64 ~x86" |
17 | 15 | |
18 |
src_compile() { |
|
19 |
ego build -o ${PN} ./cmd/portage-exporter/ |
|
20 |
} |
|
16 |
RDEPEND="dev-cpp/prometheus-cpp" |
|
21 | 17 | |
22 | 18 |
src_install() { |
23 |
dobin ${PN} |
|
19 |
cmake_src_install |
|
24 | 20 | |
21 |
systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service |
|
25 | 22 |
newinitd "${FILESDIR}"/${PN}.initd ${PN} |
26 | 23 |
newconfd "${FILESDIR}"/${PN}.confd ${PN} |
27 | 24 |
} |