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

Bug 422975

Summary: Maybe net-analyzer/bsnmp should install startscript and sample config?
Product: Gentoo/Alt Reporter: Dmitri Bogomolov <4glitch>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
URL: http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/snmpd.config?rev=1.9.10.1.8.1;content-type=text%2Fx-cvsweb-markup
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: bsnmpd.init
bsnmpd.init

Description Dmitri Bogomolov 2012-06-22 12:38:03 UTC
net-analyzer/bsnmp installs /usr/bin/bsnmpd, but in order to run it needed  /etc/snmpd.config and startup script.

Reproducible: Always
Comment 1 Dmitri Bogomolov 2012-06-22 12:41:47 UTC
Created attachment 315973 [details]
bsnmpd.init
Comment 2 Dmitri Bogomolov 2012-06-22 13:56:55 UTC
Added URL to snmpd.config in FreeBSD's sources.
Comment 3 Naohiro Aota gentoo-dev 2012-06-26 17:15:58 UTC
Created attachment 316343 [details]
bsnmpd.init

(In reply to comment #1)
> Created attachment 315973 [details]
> bsnmpd.init

Revised init script to use /etc/bsnmp/snmpd.conf. and also would you mind adding Copyright notic with your name? If you don't, please add it.

# I've also applied patch to load /usr/lib/libsnmp_mibII.so.3.0 and solve missing symbol problem.
Comment 4 Dmitri Bogomolov 2012-06-26 18:35:26 UTC
(In reply to comment #3)
> Created attachment 316343 [details]
> bsnmpd.init
> 
> (In reply to comment #1)
> > Created attachment 315973 [details]
> > bsnmpd.init
> 
> Revised init script to use /etc/bsnmp/snmpd.conf. and also would you mind
> adding Copyright notic with your name? If you don't, please add it.
> 
> # I've also applied patch to load /usr/lib/libsnmp_mibII.so.3.0 and solve
> missing symbol problem.

I do not understand why the separate /etc/bsnmp for one config? The default is /etc/snmpd.config and it is unambiguous. 

I think header should be:

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

like in most of init scripts.
Comment 5 Naohiro Aota gentoo-dev 2012-06-28 05:03:58 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Created attachment 316343 [details]
> > bsnmpd.init
> > 
> > (In reply to comment #1)
> > > Created attachment 315973 [details]
> > > bsnmpd.init
> > 
> > Revised init script to use /etc/bsnmp/snmpd.conf. and also would you mind
> > adding Copyright notic with your name? If you don't, please add it.
> > 
> > # I've also applied patch to load /usr/lib/libsnmp_mibII.so.3.0 and solve
> > missing symbol problem.
> 
> I do not understand why the separate /etc/bsnmp for one config? The default
> is /etc/snmpd.config and it is unambiguous. 

I just considered if it may collide in the feature with other snmp packages. It's fine on vanilla FreeBSD to have the config file at /etc/snmpd.conf since it install bsnmp as part of its system. It's not so on Gentoo/FreeBSD.

> I think header should be:
> 
> # Copyright 1999-2012 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
> 
> like in most of init scripts.

ok.
Comment 6 Naohiro Aota gentoo-dev 2012-07-04 11:11:14 UTC
Commit in the tree, but using /etc/snmpd.config