1 # Copyright 2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 EGO_PN=github.com/ncabatoff/process-exporter
7 inherit golang-build golang-vcs-snapshot systemd
9 DESCRIPTION="Process exporter for prometheus"
10 HOMEPAGE="https://github.com/ncabatoff/process-exporter"
11 SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
20 pushd "src/${EGO_PN}" || die
21 GOPATH="${S}" emake build
25 pushd "src/${EGO_PN}" || die
29 doins packaging/conf/all.yaml
30 systemd_dounit packaging/${PN}.service
31 newinitd "${FILESDIR}"/${PN}.initd ${PN}