Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 835811

Summary: app-metrics/snmp_exporter: the binary should be snmp_exporter not snmp_exporter-0.20.0
Product: Gentoo Linux Reporter: Eric Dold <dold.eric>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: snmp_exporter ebuild

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(+)