diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-11 00:05:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-11 00:05:57 +0000 |
commit | 2e027f251732a168e55984da9d843155dca675c6 (patch) | |
tree | 36007a76d602b39328ad771ab22f7a3945518773 /app-metrics/portage-exporter/portage-exporter-0.0.1.ebuild | |
parent | 17dcfeba22240edb3c54d96e319edf6c4bc008c3 (diff) |
gentoo auto-resync : 11:03:2023 - 00:05:57
Diffstat (limited to 'app-metrics/portage-exporter/portage-exporter-0.0.1.ebuild')
-rw-r--r-- | app-metrics/portage-exporter/portage-exporter-0.0.1.ebuild | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app-metrics/portage-exporter/portage-exporter-0.0.1.ebuild b/app-metrics/portage-exporter/portage-exporter-0.0.1.ebuild new file mode 100644 index 000000000000..5b09838cb150 --- /dev/null +++ b/app-metrics/portage-exporter/portage-exporter-0.0.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Prometheus exporter for Gentoo Portage" +HOMEPAGE="https://github.com/projg2/portage-exporter" +SRC_URI=" + https://github.com/projg2/${PN}/releases/download/v${PV}/${P}.tar.gz +" + +LICENSE="GPL-3 Apache-2.0 BSD MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +src_compile() { + ego build -o ${PN} ./cmd/portage-exporter/ +} + +src_install() { + dobin ${PN} + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} |