summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-03-30 16:39:32 +0200
committerManuel Rüger <mrueg@gentoo.org>2018-03-30 16:39:32 +0200
commitcd4e233eaddb7de0a652ff21870c906dc1d30ae8 (patch)
tree7f7408282751e7798523b0e7b316e9e6e16bd266 /net-analyzer
parentapp-metrics/blackbox_exporter: Move package from net-analyzer/prometheus-blac... (diff)
downloadgentoo-cd4e233eaddb7de0a652ff21870c906dc1d30ae8.tar.gz
gentoo-cd4e233eaddb7de0a652ff21870c906dc1d30ae8.tar.bz2
gentoo-cd4e233eaddb7de0a652ff21870c906dc1d30ae8.zip
app-metrics/snmp_exporter: Move package from net-analyzer/prometheus-snmp_exporter
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/prometheus-snmp_exporter/Manifest1
-rw-r--r--net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.confd2
-rw-r--r--net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.initd19
-rw-r--r--net-analyzer/prometheus-snmp_exporter/metadata.xml11
-rw-r--r--net-analyzer/prometheus-snmp_exporter/prometheus-snmp_exporter-0.9.0.ebuild50
5 files changed, 0 insertions, 83 deletions
diff --git a/net-analyzer/prometheus-snmp_exporter/Manifest b/net-analyzer/prometheus-snmp_exporter/Manifest
deleted file mode 100644
index c11102143f5d..000000000000
--- a/net-analyzer/prometheus-snmp_exporter/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST prometheus-snmp_exporter-0.9.0.tar.gz 3257207 BLAKE2B 3e7e91d7e66b32e3f84c9e53061f54ffc10116913b91598edfa011663daf2c67314661dbe6cd5b2c20b30968833bd64a48bdd5dd06694e76f1e787d59ad63933 SHA512 eb287f4519f2174a9ce80414c2b7a698bc50e1bcb2303a8190164002af088e0694e01233314cfe2bd89b2cd751f2fd6f8447eb641541701b7bd481373ce084b1
diff --git a/net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.confd b/net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.confd
deleted file mode 100644
index c5e56a67e15e..000000000000
--- a/net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.confd
+++ /dev/null
@@ -1,2 +0,0 @@
-# arguments for prometheus snmp exporter
-command_args="--config.file=/etc/snmp_exporter/snmp.yml"
diff --git a/net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.initd b/net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.initd
deleted file mode 100644
index b214422704e2..000000000000
--- a/net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.initd
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2016-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-description="Prometheus snmp exporter"
-pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
-user=${user:-${RC_SVCNAME}}
-group=${group:-${RC_SVCNAME}}
-
-command="/usr/bin/snmp_exporter"
-command_args="${command_args:---config.file=/etc/snmp_exporter/snmp.yml}"
-command_background="true"
-start_stop_daemon_args="--user ${user} --group ${group} \
- --stdout /var/log/snmp_exporter/${RC_SVCNAME}.log \
- --stderr /var/log/snmp_exporter/${RC_SVCNAME}.log"
-
-depend() {
- after net
-}
diff --git a/net-analyzer/prometheus-snmp_exporter/metadata.xml b/net-analyzer/prometheus-snmp_exporter/metadata.xml
deleted file mode 100644
index 9ea37fba673a..000000000000
--- a/net-analyzer/prometheus-snmp_exporter/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>mrueg@gentoo.org</email>
- <name>Manuel Rüger</name>
- </maintainer>
- <upstream>
- <remote-id type="github">prometheus/snmp_exporter</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/net-analyzer/prometheus-snmp_exporter/prometheus-snmp_exporter-0.9.0.ebuild b/net-analyzer/prometheus-snmp_exporter/prometheus-snmp_exporter-0.9.0.ebuild
deleted file mode 100644
index 2d73fe9faa4f..000000000000
--- a/net-analyzer/prometheus-snmp_exporter/prometheus-snmp_exporter-0.9.0.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2018 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="abb143a"
-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,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}
-}