Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835811 - app-metrics/snmp_exporter: the binary should be snmp_exporter not snmp_exporter-0.20.0
Summary: app-metrics/snmp_exporter: the binary should be snmp_exporter not snmp_export...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-22 19:11 UTC by Eric Dold
Modified: 2022-03-23 16:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
snmp_exporter ebuild (snmp_exporter-0.20.0.ebuild,1.34 KB, text/plain)
2022-03-22 19:11 UTC, Eric Dold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Dold 2022-03-22 19:11:11 UTC
Created attachment 767595 [details]
snmp_exporter ebuild

The ebuild for snmp_exporter-0.20.0 installs /usr/bin/snmp_exporter-0.20.0.
It should be /usr/bin/snmp_exporter.

Attached is a fixed ebuild.

In essence it's
@@ -34,7 +34,8 @@
 }
 
 src_install() {
-       dobin bin/*
+       dobin bin/generator
+       newbin bin/${PN}-${PV} ${PN}
        dodoc {README,CONTRIBUTING}.md generator/{FORMAT,README}.md generator/generator.yml
        insinto /etc/snmp_exporter
        newins snmp.yml snmp.yml.example
Comment 1 Larry the Git Cow gentoo-dev 2022-03-23 16:11:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6197bd633900ec1c73a1daa6ee0d69e661b36ee0

commit 6197bd633900ec1c73a1daa6ee0d69e661b36ee0
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2022-03-23 16:07:14 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2022-03-23 16:08:47 +0000

    app-metrics/snmp_exporter: add 0.20.0-r1
    
    Closes: https://bugs.gentoo.org/835811
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 .../snmp_exporter/snmp_exporter-0.20.0-r1.ebuild   | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)