net-analyzer/prometheus-snmp_exporter: Remove old

Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
Manuel Rüger
2018-03-06 22:33:46 +01:00
parent e5ac8f8157
commit c93064ae86
2 changed files with 0 additions and 51 deletions
@@ -1,2 +1 @@
DIST prometheus-snmp_exporter-0.8.0.tar.gz 3257344 BLAKE2B 32f0cf6c72b518fc62c420bf64ed04243bef8f9b70be2fba15472f63871e96bc113ddc7fe2e6265a29facf8c32c1d3f245bf6fc2dbce934876ebac0225069642 SHA512 0cae5fc107baedd8d498972aa7c6b3b48ff19f951c5366e5be5173009e956de8da06b84a46926d6f157287df0793e996686740c491f502da24172d5806b49339
DIST prometheus-snmp_exporter-0.9.0.tar.gz 3257207 BLAKE2B 3e7e91d7e66b32e3f84c9e53061f54ffc10116913b91598edfa011663daf2c67314661dbe6cd5b2c20b30968833bd64a48bdd5dd06694e76f1e787d59ad63933 SHA512 eb287f4519f2174a9ce80414c2b7a698bc50e1bcb2303a8190164002af088e0694e01233314cfe2bd89b2cd751f2fd6f8447eb641541701b7bd481373ce084b1
@@ -1,50 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit user golang-build golang-vcs-snapshot
EGO_PN="github.com/prometheus/snmp_exporter"
EGIT_COMMIT="v${PV/_rc/-rc.}"
SNMP_EXPORTER_COMMIT="17cefca"
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="Prometheus exporter for snmp metrics"
HOMEPAGE="https://github.com/prometheus/snmp_exporter"
SRC_URI="${ARCHIVE_URI}"
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
DEPEND="dev-util/promu"
pkg_setup() {
enewgroup ${PN}
enewuser ${PN} -1 -1 -1 ${PN}
}
src_prepare() {
default
sed -i -e "s/{{.Revision}}/${SNMP_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
}
src_compile() {
pushd src/${EGO_PN} || die
mkdir -p bin || die
GOPATH="${S}" promu build -v --prefix snmp_exporter || die
popd || die
}
src_install() {
pushd src/${EGO_PN} || die
dobin snmp_exporter/snmp_exporter
dodoc {README,CHANGELOG,CONTRIBUTING}.md
insinto /etc/snmp_exporter
newins snmp.yml snmp.yml.example
popd || die
keepdir /var/lib/snmp_exporter /var/log/snmp_exporter
fowners ${PN}:${PN} /var/lib/snmp_exporter /var/log/snmp_exporter
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}
}