]> git.pld-linux.org Git - packages/net-snmp.git/blob - net-snmp.spec
- updated to 5.3.0.1 (security fix - 5.3 granted write access for rousers/rocommunities)
[packages/net-snmp.git] / net-snmp.spec
1 #
2 # Conditional build:
3 %bcond_without  autodeps        # don't BR packages only for deps resolving
4 #
5 %include        /usr/lib/rpm/macros.perl
6 Summary:        A collection of SNMP protocol tools
7 Summary(es):    Agente SNMP de la UCD
8 Summary(pl):    Kolekcja narzêdzi do obs³ugi protoko³u SNMP
9 Summary(pt_BR): Agente SNMP da UCD
10 Summary(ru):    îÁÂÏÒ ÕÔÉÌÉÔ ÄÌÑ ÐÒÏÔÏËÏÌÁ SNMP ÏÔ UC-Davis
11 Summary(uk):    îÁ¦ҠÕÔÉ̦ԠÄÌÑ ÐÒÏÔÏËÏÌÕ SNMP ×¦Ä UC-Davis
12 Name:           net-snmp
13 Version:        5.3.0.1
14 Release:        0.1
15 License:        BSD-like
16 Group:          Networking/Daemons
17 Source0:        http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
18 # Source0-md5:  db5995ff8fae154cbe7417a4a6f2ca60
19 Source1:        %{name}d.init
20 Source2:        %{name}d.conf
21 Source3:        %{name}d.sysconfig
22 Source4:        %{name}trapd.init
23 Source5:        %{name}trapd.conf
24 Source6:        %{name}trapd.sysconfig
25 Source7:        ftp://ucd-snmp.ucdavis.edu/contrib/ucd-ipchains.tar.gz
26 # Source7-md5:  29949f1008f1a04d6efefd5b3ea607da
27 Patch0:         %{name}-acinclude.patch
28 Patch1:         %{name}-acfix.patch
29 Patch2:         %{name}-rpm-implicit-libs.patch
30 Patch3:         %{name}-config-noflags.patch
31 Patch4:         %{name}-dlopen-fix.patch
32 Patch5:         %{name}-manpage.patch
33 Patch6:         %{name}-link.patch
34 Patch7:         %{name}-llinterfaces.patch
35 Patch8:         %{name}-kernel_headers.patch
36 URL:            http://www.net-snmp.org/
37 BuildRequires:  autoconf >= 2.57-3
38 BuildRequires:  automake
39 BuildRequires:  elfutils-devel
40 BuildRequires:  libtool >= 1.4
41 BuildRequires:  libwrap-devel
42 BuildRequires:  lm_sensors-devel
43 BuildRequires:  openssl-devel >= 0.9.7d
44 %{?with_autodeps:BuildRequires: perl-Term-ReadKey}
45 BuildRequires:  perl-devel >= 1:5.8.0
46 BuildRequires:  rpm-devel >= 4.0
47 BuildRequires:  rpm-perlprov >= 3.0.3-16
48 BuildRequires:  rpmbuild(macros) >= 1.176
49 Requires(post,preun):   /sbin/chkconfig
50 Requires:       %{name}-libs = %{version}-%{release}
51 Requires:       /usr/bin/setsid
52 Requires:       rc-scripts >= 0.2.0
53 Provides:       snmpd
54 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 Obsoletes:      cmu-snmp
56 Obsoletes:      snmpd
57 Obsoletes:      ucd-snmp
58
59 %define         logfile         /var/log/snmpd.log
60
61 %description
62 SNMP (Simple Network Management Protocol) is a protocol used for
63 network management (hence the name). The net-snmp project includes
64 various SNMP tools: an extensible agent, an SNMP library, tools for
65 requesting or setting information from SNMP agents, tools for
66 generating and handling SNMP traps, a version of the netstat command
67 which uses SNMP, and a Tk/Perl mib browser. This package contains the
68 snmpd daemon, documentation, etc.
69
70 %description -l es
71 Este paquete se deriva de la implementación del Protocolo Simple de
72 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
73 Útil para administrar redes y hacer contabilidad.
74
75 %description -l pl
76 SNMP (Simple Network Management Protocol) jest protoko³em u¿ywanym do
77 zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
78 agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
79 informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
80 pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
81 w Tk/Perl, demona, dokumentacjê itp.
82
83 %description -l pt_BR
84 Este pacote é derivado da implementação do Protocolo Simples de
85 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
86 Mellon. Útil para gerenciar redes e fazer contabilidade.
87
88 %description -l ru
89 SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
90 ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ net-snmp ×ËÌÀÞÁÅÔ
91 ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
92 ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
93 ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
94 ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
95 ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
96
97 %description -l uk
98 SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
99 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ net-snmp
100 ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, Â¦Â̦ÏÔÅËÁ
101 SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁ槠צĠNMP-ÁÇÅÎÔ¦×,
102 ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁ槠ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒӦѠËÏÍÁÎÄÉ netstat,
103 ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ
104 ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
105
106 %package libs
107 Summary:        NET SNMP libraries
108 Summary(pl):    Biblioteki SNMP
109 Group:          Libraries
110 Requires:       %{name}-mibs = %{version}-%{release}
111 Obsoletes:      net-snmp-compat-libs
112 Obsoletes:      ucd-snmp-libs
113
114 %description libs
115 NET SNMP libraries.
116
117 %description libs -l pl
118 Biblioteki SNMP.
119
120 %package devel
121 Summary:        The development environment for the net-snmp project
122 Summary(es):    Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
123 Summary(pl):    Pliki dla programistów u¿ywaj±cych bibliotek net-snmp
124 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
125 Summary(ru):    óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
126 Summary(uk):    óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
127 Group:          Development/Libraries
128 Requires:       %{name}-libs = %{version}-%{release}
129 Requires:       elfutils-devel
130 Requires:       libwrap-devel
131 Requires:       openssl-devel >= 0.9.7c
132 Requires:       rpm-devel
133 Obsoletes:      ucd-snmp-devel
134
135 %description devel
136 The ucd-snmp-devel package contains the development libraries and
137 header files for use with the net-snmp project's network management
138 tools.
139
140 %description devel -l es
141 Estas son las bibliotecas y archivos de inclusión para desarrollo con
142 el SNMP de la UCD. Con este paquete es posible la creación de
143 programas para uso en la gestión de redes.
144
145 %description devel -l pl
146 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
147 aplikacji u¿ywaj±cych protoko³u SNMP.
148
149 %description devel -l pt_BR
150 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
151 com o SNMP da UCD. Com este pacote é possível a criação de programas
152 para uso no gerenciamento de redes.
153
154 %description devel -l ru
155 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
156 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ net-snmp.
157
158 %description devel -l uk
159 ðÁËÅÔ ucd-snmp-devel Í¦ÓÔÉÔؠ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
160 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ net-snmp.
161
162 %package static
163 Summary:        Static net-snmp libraries
164 Summary(pl):    Statyczne biblioteki net-snmp
165 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
166 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ net-snmp
167 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ net-snmp
168 Group:          Development/Libraries
169 Requires:       %{name}-devel = %{version}-%{release}
170 Obsoletes:      ucd-snmp-static
171
172 %description static
173 Static net-snmp libraries.
174
175 %description static -l pl
176 Statyczne biblioteki net-snmp.
177
178 %description static -l pt_BR
179 Bibliotecas estáticas para desenvolvimento com net-snmp.
180
181 %package compat-devel
182 Summary:        The development environment for the UCD-SNMP project
183 Summary(es):    Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
184 Summary(pl):    Pliki dla programistów u¿ywaj±cych bibliotek UCD-SNMP
185 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
186 Summary(ru):    óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
187 Summary(uk):    óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
188 Group:          Development/Libraries
189 Requires:       %{name}-libs = %{version}-%{release}
190 Requires:       openssl-devel >= 0.9.7d
191 Obsoletes:      cmu-snmp-devel
192 Obsoletes:      ucd-snmp-devel
193
194 %description compat-devel
195 The ucd-snmp-devel package contains the development libraries and
196 header files for use with the UCD-SNMP project's network management
197 tools.
198
199 %description compat-devel -l es
200 Estas son las bibliotecas y archivos de inclusión para desarrollo con
201 el SNMP de la UCD. Con este paquete es posible la creación de
202 programas para uso en la gestión de redes.
203
204 %description compat-devel -l pl
205 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
206 aplikacji u¿ywaj±cych protoko³u SNMP.
207
208 %description compat-devel -l pt_BR
209 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
210 com o SNMP da UCD. Com este pacote é possível a criação de programas
211 para uso no gerenciamento de redes.
212
213 %description compat-devel -l ru
214 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
215 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
216
217 %description compat-devel -l uk
218 ðÁËÅÔ ucd-snmp-devel Í¦ÓÔÉÔؠ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
219 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
220
221 %package compat-static
222 Summary:        Static UCD-SNMP libraries
223 Summary(pl):    Statyczne biblioteki UCD-SNMP
224 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
225 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
226 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
227 Group:          Development/Libraries
228 Requires:       %{name}-compat-devel = %{version}-%{release}
229 Obsoletes:      ucd-snmp-static
230
231 %description compat-static
232 Static UCD-SNMP libraries.
233
234 %description compat-static -l pl
235 Statyczne biblioteki UCD-SNMP.
236
237 %description compat-static -l pt_BR
238 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
239
240 %package mibs
241 Summary:        MIB database
242 Summary(pl):    Baza danych MIB
243 Group:          Applications/System
244 Conflicts:      ucd-snmp-libs
245
246 %description mibs
247 MIB database.
248
249 %description mibs -l pl
250 Baza danych MIB.
251
252 %package snmptrapd
253 Summary:        SNMP trap daemon
254 Summary(pl):    Demon obs³uguj±cy pu³apki SNMP
255 Group:          Applications/System
256 Requires(post,preun):   /sbin/chkconfig
257 Requires:       %{name} = %{version}-%{release}
258 Requires:       rc-scripts >= 0.2.0
259 Obsoletes:      cmu-snmp-utils
260 Obsoletes:      ucd-snmp-snmptrapd
261
262 %description snmptrapd
263 The ucd-snmp-snmptrapd package contains snmp trap daemon.
264
265 %description snmptrapd -l pl
266 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
267
268 %package utils
269 Summary:        Network management utilities using SNMP, from the NET-SNMP project
270 Summary(es):    Utilitarios del SNMP de la UCD
271 Summary(pl):    Narzêdzia u¿ywaj±ce protoko³u SNMP
272 Summary(pt_BR): Utilitários do SNMP da UCD
273 Summary(ru):    õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
274 Summary(uk):    õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
275 Group:          Applications/System
276 Requires:       %{name}-libs = %{version}-%{release}
277 Obsoletes:      cmu-snmp-utils
278 Obsoletes:      ucd-snmp-utils
279
280 %description utils
281 This package contains various utilities for managing your network
282 using the SNMP protocol.
283
284 %description utils -l es
285 Varios utilitarios para uso con el SNMP de la UCD. Contiene
286 utilitarios como: snmpwalk, snmptest y otros.
287
288 %description utils -l pl
289 Ró¿nego rodzaju narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u
290 SNMP.
291
292 %description utils -l pt_BR
293 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
294 como: snmpwalk, snmptest e outros.
295
296 %description utils -l ru
297 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
298 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ net-snmp.
299
300 %description utils -l uk
301 ðÁËÅÔ ucd-snmp-utils Í¦ÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
302 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ net-snmp.
303
304 %package -n perl-SNMP
305 Summary:        SNMP and NetSNMP::* Perl modules
306 Summary(pl):    Modu³y Perla SNMP oraz NetSNMP::*
307 Group:          Development/Languages/Perl
308 Requires:       %{name}-libs = %{version}-%{release}
309 Conflicts:      ucd-snmp-utils-perl
310
311 %description -n perl-SNMP
312 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
313
314 %description -n perl-SNMP -l pl
315 Modu³y Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
316
317 %package utils-perl
318 Summary:        Perl utilities for network management using SNMP
319 Summary(pl):    Perlowe narzêdzia u¿ywaj±ce protoko³u SNMP
320 Group:          Applications/System
321 Requires:       perl-SNMP = %{version}-%{release}
322 Obsoletes:      cmu-snmp-utils
323 Obsoletes:      ucd-snmp-utils-perl
324
325 %description utils-perl
326 This package contains various Perl utilities for managing your network
327 using the SNMP protocol.
328
329 %description utils-perl -l pl
330 Perlowe narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u SNMP.
331
332 %package snmpconf
333 Summary:        snmpconf - creating and modifying SNMP configuration files
334 Summary(pl):    snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
335 Group:          Applications/System
336 Requires:       %{name} = %{version}-%{release}
337 Requires:       perl-SNMP = %{version}-%{release}
338
339 %description snmpconf
340 snmpconf is a simple Perl script that walks you through setting up a
341 configuration file step by step. It should be fairly straight forward
342 to use.
343
344 %description snmpconf -l pl
345 snmpconf to prosty skrypt Perla pozwalaj±cy na tworzenie pliku
346 konfiguracyjnego krok po kroku. Powinien byæ w miarê prosty w u¿yciu.
347
348 %package tkmib
349 Summary:        MIB browser in Tk
350 Summary(pl):    Przegl±darka MIB-ów w Tk
351 Group:          Applications/System
352 Requires:       perl-SNMP = %{version}-%{release}
353 Requires:       perl-Tk
354
355 %description tkmib
356 MIB browser in Tk.
357
358 %description tkmib -l pl
359 Przegl±darka MIB-ów w Tk.
360
361 %prep
362 %setup -q -a7
363 %patch0 -p1
364 %patch1 -p1
365 %patch2 -p1
366 %patch3 -p1
367 %patch4 -p1
368 %patch5 -p1
369 %patch6 -p1
370 %patch7 -p1
371 %patch8 -p1
372
373 %build
374 %{__libtoolize}
375 %{__aclocal}
376 %{__autoconf}
377 %{__autoheader}
378 %configure \
379         --with-logfile="%{logfile}" \
380         --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
381         --with-ldflags="%{rpmldflags}" \
382         --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
383         --with-sys-location="Unknown" \
384         --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
385 %ifarch %{ix86} %{x8664}
386                 ucd-snmp/lmSensors ucd-snmp/diskio \
387 %endif
388                 agentx target misc/ipfwacc" \
389         --with-libwrap \
390         --with-openssl \
391         --disable-debugging \
392         --with-persistent-directory="/var/lib/net-snmp" \
393         --enable-ipv6 \
394         --with-sys-contact="root@localhost" \
395         --enable-ucd-snmp-compatibility \
396         --with-defaults \
397         --with-default-snmp-version=3 \
398         --enable-shared
399
400 #       --enable-reentrant is broken - snmpd deadlocks on send (tries to lock the same mutex twice):
401 #   #4  0xb760f54e in siglongjmp () from /lib/tls/libpthread.so.0
402 #   #5  0xb7e5e0cf in snmp_res_lock (groupID=0, resourceID=1) at mt_support.c:103
403 #   #6  0xb7e45698 in snmp_sess_pointer (session=0x80ff868) at snmp_api.c:6975
404 #   #7  0xb7e41aca in snmp_async_send (session=0x80ff868, pdu=0x8141848, callback=0, cb_data=0x0)
405 #       at snmp_api.c:4564
406 #   #8  0xb7e41a6d in snmp_send (session=0x80ff868, pdu=0x8141848) at snmp_api.c:4551
407 #   #9  0xb7ebf6fd in netsnmp_wrap_up_request (asp=0x812d828, status=0) at snmp_agent.c:1627
408 #   #10 0xb7ec12e3 in netsnmp_handle_request (asp=0x812d828, status=0) at snmp_agent.c:2996
409 #   #11 0xb7ebfa65 in handle_snmp_packet (op=1, session=0x80ff868, reqid=628270607, pdu=0x81419b8,
410 #       magic=0x0) at snmp_agent.c:1792
411 #   #12 0xb7e42b1c in _sess_process_packet (sessp=0x812c970, sp=0x80ff868, isp=0x812c698,
412 #       transport=0x8142028, opaque=0x812c1a0, olength=16,
413 #       packetptr=0x8145cb8 "0f\002\001\0030\021\002\004c [Ç\002\003", length=104) at snmp_api.c:5208
414 #   #13 0xb7e434e6 in _sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5606
415 #   #14 0xb7e43535 in snmp_sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5625
416 #   #15 0xb7e42c44 in snmp_read (fdset=0xbfffe0e0) at snmp_api.c:5260
417 #   #16 0x0804bbe5 in receive () at snmpd.c:1149
418 #   #17 0x0804b53d in main (argc=5, argv=0xbffff344) at snmpd.c:993
419 # [res mutex with groupID=0, resourceID=1 already locked in snmp_read() at snmp_api.c:5258]
420
421 # build this subdir first. it's causing STRANGE compile failures # otherwise (for me at least). glen
422 %{__make} -C agent/mibgroup
423 %{__make}
424
425 cd perl
426
427 %{__perl} Makefile.PL \
428         -NET-SNMP-IN-SOURCE=true \
429         INSTALLDIRS=vendor \
430         OPTIMIZE="%{rpmcflags}" \
431         </dev/null
432
433 # avoid rpaths generated by MakeMaker
434 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
435
436 %{__make} \
437         LDFLAGS="%{rpmldflags}"
438
439 %install
440 rm -rf $RPM_BUILD_ROOT
441 install -d $RPM_BUILD_ROOT{/etc/{snmp,rc.d/init.d,sysconfig},/var/log}
442
443 %{__make} install \
444         INSTALL_PREFIX=$RPM_BUILD_ROOT
445
446 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
447 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
448 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
449 :> $RPM_BUILD_ROOT%{logfile}
450
451 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
452 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
453 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
454
455 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
456 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
457 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
458
459 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
460 #       $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
461
462 cd perl
463 %{__make} install \
464         DESTDIR=$RPM_BUILD_ROOT
465
466 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
467 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
468 cd ..
469
470 # IP-Filter (non-Linux)
471 rm -f $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
472
473 %clean
474 rm -rf $RPM_BUILD_ROOT
475
476 %post
477 /sbin/chkconfig --add snmpd
478 if [ -f /var/lock/subsys/snmpd ]; then
479         /etc/rc.d/init.d/snmpd restart >&2
480 else
481         %banner %{name} -e <<EOF
482 Run \"/etc/rc.d/init.d/snmpd start\" to start snmpd daemon.
483 EOF
484 #" vim
485 fi
486 touch %{logfile}
487 chmod 640 %{logfile}
488
489 %preun
490 if [ "$1" = "0" ]; then
491         if [ -f /var/lock/subsys/snmpd ]; then
492                 /etc/rc.d/init.d/snmpd stop >&2
493         fi
494         /sbin/chkconfig --del snmpd
495 fi
496
497 %post   libs -p /sbin/ldconfig
498 %postun libs -p /sbin/ldconfig
499
500 %post snmptrapd
501 /sbin/chkconfig --add snmptrapd
502 if [ -f /var/lock/subsys/snmptrapd ]; then
503         /etc/rc.d/init.d/snmptrapd restart >&2
504 else
505         %banner %{name}-snmptrapd -e <<EOF
506 Run \"/etc/rc.d/init.d/snmptrapd start\" to start snmp trap daemon.
507 EOF
508 #" vim
509 fi
510 touch %{logfile}
511 chmod 640 %{logfile}
512
513 %preun snmptrapd
514 if [ "$1" = "0" ]; then
515         if [ -f /var/lock/subsys/snmptrapd ]; then
516                 /etc/rc.d/init.d/snmptrapd stop >&2
517         fi
518         /sbin/chkconfig --del snmptrapd
519 fi
520
521 %files
522 %defattr(644,root,root,755)
523 %doc README local
524 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
525 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
526
527 %attr(754,root,root) /etc/rc.d/init.d/snmpd
528 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
529
530 %dir %{_sysconfdir}/snmp
531 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
532 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
533
534 %attr(755,root,root) %{_sbindir}/snmpd
535
536 %{_mandir}/man5/snmpd.conf.5*
537 %{_mandir}/man5/snmpd.examples.5*
538 %{_mandir}/man5/snmpd.internal.5*
539 %{_mandir}/man5/variables.5*
540 %{_mandir}/man8/snmpd.8*
541
542 %attr(640,root,root) %ghost %{logfile}
543
544 %files libs
545 %defattr(644,root,root,755)
546 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
547
548 %files devel
549 %defattr(644,root,root,755)
550 %attr(755,root,root) %{_bindir}/mib2c
551 %attr(755,root,root) %{_bindir}/mib2c-update
552 %attr(755,root,root) %{_bindir}/net-snmp-config
553 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
554 %{_libdir}/libnet*.la
555 %{_includedir}/net-snmp
556 %{_datadir}/snmp/mib2c*
557 %{_mandir}/man1/mib2c.1*
558 %{_mandir}/man3/[!NS]*
559 %{_mandir}/man5/mib2c.conf.5*
560
561 %files static
562 %defattr(644,root,root,755)
563 %{_libdir}/libnet*.a
564
565 %files compat-devel
566 %defattr(644,root,root,755)
567 %attr(755,root,root) %{_libdir}/libsnmp.so
568 %{_libdir}/libsnmp.la
569 %{_includedir}/ucd-snmp
570
571 %files compat-static
572 %defattr(644,root,root,755)
573 %{_libdir}/libsnmp.a
574
575 %files mibs
576 %defattr(644,root,root,755)
577 %dir %{_datadir}/snmp
578 %{_datadir}/snmp/mibs
579
580 %files snmptrapd
581 %defattr(644,root,root,755)
582 %attr(755,root,root) %{_sbindir}/snmptrapd
583 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
584 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
585 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
586 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
587 %{_mandir}/man5/snmptrapd.conf.5*
588 %{_mandir}/man8/snmptrapd.8*
589
590 %files utils
591 %defattr(644,root,root,755)
592 %attr(755,root,root) %{_bindir}/encode_keychange
593 %attr(755,root,root) %{_bindir}/snmpbulkget
594 %attr(755,root,root) %{_bindir}/snmpbulkwalk
595 %attr(755,root,root) %{_bindir}/snmpdelta
596 %attr(755,root,root) %{_bindir}/snmpdf
597 %attr(755,root,root) %{_bindir}/snmpget
598 %attr(755,root,root) %{_bindir}/snmpgetnext
599 %attr(755,root,root) %{_bindir}/snmpinform
600 %attr(755,root,root) %{_bindir}/snmpnetstat
601 %attr(755,root,root) %{_bindir}/snmpset
602 %attr(755,root,root) %{_bindir}/snmpstatus
603 %attr(755,root,root) %{_bindir}/snmptable
604 %attr(755,root,root) %{_bindir}/snmptest
605 %attr(755,root,root) %{_bindir}/snmptranslate
606 %attr(755,root,root) %{_bindir}/snmptrap
607 %attr(755,root,root) %{_bindir}/snmpusm
608 %attr(755,root,root) %{_bindir}/snmpvacm
609 %attr(755,root,root) %{_bindir}/snmpwalk
610
611 %{_mandir}/man1/snmpbulkget.1*
612 %{_mandir}/man1/snmpbulkwalk.1*
613 %{_mandir}/man1/snmpcmd.1*
614 %{_mandir}/man1/snmpdelta.1*
615 %{_mandir}/man1/snmpdf.1*
616 %{_mandir}/man1/snmpget.1*
617 %{_mandir}/man1/snmpgetnext.1*
618 %{_mandir}/man1/snmpinform.1*
619 %{_mandir}/man1/snmpnetstat.1*
620 %{_mandir}/man1/snmpset.1*
621 %{_mandir}/man1/snmpstatus.1*
622 %{_mandir}/man1/snmptable.1*
623 %{_mandir}/man1/snmptest.1*
624 %{_mandir}/man1/snmptranslate.1*
625 %{_mandir}/man1/snmptrap.1*
626 %{_mandir}/man1/snmpusm.1*
627 %{_mandir}/man1/snmpvacm.1*
628 %{_mandir}/man1/snmpwalk.1*
629 %{_mandir}/man5/snmp.conf.5*
630 %{_mandir}/man5/snmp_config.5*
631
632 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
633
634 %files -n perl-SNMP
635 %defattr(644,root,root,755)
636 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
637 %{perl_vendorarch}/SNMP.pm
638 %{perl_vendorarch}/NetSNMP
639 %dir %{perl_vendorarch}/auto/SNMP
640 %{perl_vendorarch}/auto/SNMP/autosplit.ix
641 %{perl_vendorarch}/auto/SNMP/SNMP.bs
642 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
643 %dir %{perl_vendorarch}/auto/NetSNMP
644 %dir %{perl_vendorarch}/auto/NetSNMP/*
645 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
646 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
647 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
648 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
649 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
650 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
651 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
652 %{_mandir}/man3/NetSNMP::*.3*
653 %{_mandir}/man3/SNMP.3*
654 %{_examplesdir}/perl-SNMP-%{version}
655
656 %files utils-perl
657 %defattr(644,root,root,755)
658 %attr(755,root,root) %{_bindir}/fixproc
659 %attr(755,root,root) %{_bindir}/snmpcheck
660 %attr(755,root,root) %{_bindir}/traptoemail
661
662 %files snmpconf
663 %defattr(644,root,root,755)
664 %attr(755,root,root) %{_bindir}/snmpconf
665 %{_mandir}/man1/snmpconf.1*
666 %{_datadir}/snmp/snmpconf-data
667
668 %files tkmib
669 %defattr(644,root,root,755)
670 %attr(755,root,root) %{_bindir}/tkmib
This page took 0.083135 seconds and 4 git commands to generate.