Gentoo Archives: gentoo-commits

From: "Naohiro Aota (naota)" <naota@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/bsnmp/files: snmpd.config bsnmpd.init bsnmp-1.12-mibII.patch
Date: Wed, 04 Jul 2012 11:10:31
Message-Id: 20120704111019.B0BA72004B@flycatcher.gentoo.org
1 naota 12/07/04 11:10:19
2
3 Added: snmpd.config bsnmpd.init bsnmp-1.12-mibII.patch
4 Log:
5 Patch to resolve symbol. #422647; Add init script and default configuration file. #422975
6
7 (Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-analyzer/bsnmp/files/snmpd.config
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/bsnmp/files/snmpd.config?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/bsnmp/files/snmpd.config?rev=1.1&content-type=text/plain
14
15 Index: snmpd.config
16 ===================================================================
17 # $FreeBSD: src/etc/snmpd.config,v 1.9.10.1.8.1 2012/03/03 06:15:13 kensmith Exp $
18 #
19 # Example configuration file for bsnmpd(1).
20 #
21
22 #
23 # Set some common variables
24 #
25 location := "Room 200"
26 contact := "sysmeister@×××××××.com"
27 system := 1 # FreeBSD
28 traphost := localhost
29 trapport := 162
30
31 # Change this!
32 read := "public"
33 # Uncomment begemotSnmpdCommunityString.0.2 below that sets the community
34 # string to enable write access.
35 write := "geheim"
36 trap := "mytrap"
37
38 #
39 # Configuration
40 #
41 %snmpd
42 begemotSnmpdDebugDumpPdus = 2
43 begemotSnmpdDebugSyslogPri = 7
44
45 #
46 # Set the read and write communities.
47 #
48 # The default value of the community strings is NULL (note, that this is
49 # different from the empty string). This disables both read and write access.
50 # To enable read access only the read community string must be set. Setting
51 # the write community string enables both read and write access with that
52 # string.
53 #
54 # Be sure to understand the security implications of SNMPv2 - the community
55 # strings are readable on the wire!
56 #
57 begemotSnmpdCommunityString.0.1 = $(read)
58 # begemotSnmpdCommunityString.0.2 = $(write)
59 begemotSnmpdCommunityDisable = 1
60
61 # open standard SNMP ports
62 begemotSnmpdPortStatus.0.0.0.0.161 = 1
63
64 # open a unix domain socket
65 begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
66 begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
67
68 # send traps to the traphost
69 begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4
70 begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2
71 begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap)
72
73 sysContact = $(contact)
74 sysLocation = $(location)
75 sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system)
76
77 snmpEnableAuthenTraps = 2
78
79 #
80 # Load MIB-2 module
81 #
82 begemotSnmpdModulePath."mibII" = "/usr/lib/libsnmp_mibII.so.3.0"
83
84 # Force a polling rate for the 64-bit interface counters in case
85 # the automatic computation is wrong (which may be the case if an interface
86 # announces the wrong bit rate via its MIB).
87 #%mibII
88 #begemotIfForcePoll = 2000
89
90 #
91 # Netgraph module
92 #
93 #begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so"
94 #
95 #%netgraph
96 #begemotNgControlNodeName = "snmpd"
97
98 #
99 # pf(4) module
100 #
101 #begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so"
102
103 #
104 # Host resources module
105 # This requires the mibII module.
106 #
107 #begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so"
108
109 #
110 # Bridge module
111 # This requires the mibII module.
112 #
113 #begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so"
114
115
116
117
118 1.1 net-analyzer/bsnmp/files/bsnmpd.init
119
120 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/bsnmp/files/bsnmpd.init?rev=1.1&view=markup
121 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/bsnmp/files/bsnmpd.init?rev=1.1&content-type=text/plain
122
123 Index: bsnmpd.init
124 ===================================================================
125 #!/sbin/runscript
126 # Copyright 1999-2012 Gentoo Foundation
127 # Distributed under the terms of the GNU General Public License v2
128 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/bsnmp/files/bsnmpd.init,v 1.1 2012/07/04 11:10:19 naota Exp $
129
130 description="Mini-SNMP Daemon"
131 command="/usr/bin/bsnmpd"
132 pidfile="/var/run/snmpd.pid"
133
134 depend() {
135 use net
136 }
137
138
139
140 1.1 net-analyzer/bsnmp/files/bsnmp-1.12-mibII.patch
141
142 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/bsnmp/files/bsnmp-1.12-mibII.patch?rev=1.1&view=markup
143 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/bsnmp/files/bsnmp-1.12-mibII.patch?rev=1.1&content-type=text/plain
144
145 Index: bsnmp-1.12-mibII.patch
146 ===================================================================
147 diff --git a/snmp_mibII/Makefile.in b/snmp_mibII/Makefile.in
148 index d14c179..3a99850 100755
149 --- a/snmp_mibII/Makefile.in
150 +++ b/snmp_mibII/Makefile.in
151 @@ -10,7 +10,7 @@ MOD= mibII
152 SRCS= ${MOD}_tree.c mibII.c mibII_ifmib.c mibII_ip.c \
153 mibII_interfaces.c mibII_ipaddr.c mibII_ifstack.c \
154 mibII_rcvaddr.c mibII_nettomedia.c mibII_tcp.c mibII_udp.c \
155 - mibII_route.c
156 + mibII_route.c mibII_begemot.c
157 INCS= snmp_${MOD}.h
158 DEFS= mibII_tree.def
159 MAN3= snmp_mibII.3