1 |
commit: 10d00046d03bc2f66bd2058284249a392db17ac6 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 29 10:54:53 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 29 10:54:53 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10d00046 |
7 |
|
8 |
net-analyzer/prometheus-snmp_exporter: Remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
net-analyzer/prometheus-snmp_exporter/Manifest | 1 - |
13 |
.../prometheus-snmp_exporter-0.7.0.ebuild | 50 ---------------------- |
14 |
2 files changed, 51 deletions(-) |
15 |
|
16 |
diff --git a/net-analyzer/prometheus-snmp_exporter/Manifest b/net-analyzer/prometheus-snmp_exporter/Manifest |
17 |
index c4509d6f4d8..cec76d8d44f 100644 |
18 |
--- a/net-analyzer/prometheus-snmp_exporter/Manifest |
19 |
+++ b/net-analyzer/prometheus-snmp_exporter/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST prometheus-snmp_exporter-0.7.0.tar.gz 3250164 SHA256 da9d0c4baa21a317a88ebbb0e836a4665614d03421d2c4ecb7df7e5217920398 SHA512 b0564fcd38eb823d136b25c3aa4e8f1df495eb6f262f105e6686adab80a794cd2cc47f51f40606aa4b51d29e0ab6851216b147b37e406e450b4f9559caaee5d1 WHIRLPOOL a0c4a7e53cc24ea712f681440be5757c40f7585037fa8a7f1e71da7aee2fb1a4084d2648e3b0076c452f7740657b710d9eb986b1e97e8b5bf44b04617d2c3405 |
22 |
DIST prometheus-snmp_exporter-0.8.0.tar.gz 3257344 SHA256 740ede001e6ae0a08cda52b0efcd43b24f81431010175ae2a0c687264732860a SHA512 0cae5fc107baedd8d498972aa7c6b3b48ff19f951c5366e5be5173009e956de8da06b84a46926d6f157287df0793e996686740c491f502da24172d5806b49339 WHIRLPOOL 09b785cb3e1331198c8657f60444d491ac5270fcc39136737af1076656e5939fa59225be8edc3e8e6a0985ddc19c24e9ba97d962eb412525537fdfa4642ce371 |
23 |
|
24 |
diff --git a/net-analyzer/prometheus-snmp_exporter/prometheus-snmp_exporter-0.7.0.ebuild b/net-analyzer/prometheus-snmp_exporter/prometheus-snmp_exporter-0.7.0.ebuild |
25 |
deleted file mode 100644 |
26 |
index 15ca77ed1b7..00000000000 |
27 |
--- a/net-analyzer/prometheus-snmp_exporter/prometheus-snmp_exporter-0.7.0.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,50 +0,0 @@ |
30 |
-# Copyright 1999-2017 Gentoo Foundation |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI=6 |
34 |
-inherit user golang-build golang-vcs-snapshot |
35 |
- |
36 |
-EGO_PN="github.com/prometheus/snmp_exporter" |
37 |
-EGIT_COMMIT="v${PV/_rc/-rc.}" |
38 |
-SNMP_EXPORTER_COMMIT="9147920" |
39 |
-ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
40 |
-KEYWORDS="~amd64" |
41 |
- |
42 |
-DESCRIPTION="Prometheus exporter for snmp metrics" |
43 |
-HOMEPAGE="https://github.com/prometheus/snmp_exporter" |
44 |
-SRC_URI="${ARCHIVE_URI}" |
45 |
-LICENSE="Apache-2.0" |
46 |
-SLOT="0" |
47 |
-IUSE="" |
48 |
- |
49 |
-DEPEND="dev-util/promu" |
50 |
- |
51 |
-pkg_setup() { |
52 |
- enewgroup ${PN} |
53 |
- enewuser ${PN} -1 -1 -1 ${PN} |
54 |
-} |
55 |
- |
56 |
-src_prepare() { |
57 |
- default |
58 |
- sed -i -e "s/{{.Revision}}/${SNMP_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die |
59 |
-} |
60 |
- |
61 |
-src_compile() { |
62 |
- pushd src/${EGO_PN} || die |
63 |
- mkdir -p bin || die |
64 |
- GOPATH="${S}" promu build -v --prefix snmp_exporter || die |
65 |
- popd || die |
66 |
-} |
67 |
- |
68 |
-src_install() { |
69 |
- pushd src/${EGO_PN} || die |
70 |
- dobin snmp_exporter/snmp_exporter |
71 |
- dodoc {README,CHANGELOG,CONTRIBUTING}.md |
72 |
- insinto /etc/snmp_exporter |
73 |
- newins snmp.yml snmp.yml.example |
74 |
- popd || die |
75 |
- keepdir /var/lib/snmp_exporter /var/log/snmp_exporter |
76 |
- fowners ${PN}:${PN} /var/lib/snmp_exporter /var/log/snmp_exporter |
77 |
- newinitd "${FILESDIR}"/${PN}.initd ${PN} |
78 |
- newconfd "${FILESDIR}"/${PN}.confd ${PN} |
79 |
-} |