Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 422975 - Maybe net-analyzer/bsnmp should install startscript and sample config?
Summary: Maybe net-analyzer/bsnmp should install startscript and sample config?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal minor
Assignee: Gentoo/BSD Team
URL: http://www.freebsd.org/cgi/cvsweb.cgi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-22 12:38 UTC by Dmitri Bogomolov
Modified: 2012-07-04 11:11 UTC (History)
0 users

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


Attachments
bsnmpd.init (bsnmpd.init,142 bytes, text/plain)
2012-06-22 12:41 UTC, Dmitri Bogomolov
Details
bsnmpd.init (bsnmpd.init,183 bytes, text/plain)
2012-06-26 17:15 UTC, Naohiro Aota
Details

Note You need to log in before you can comment on or make changes to this bug.
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