3 %bcond_without autodeps # don't BR packages only for deps resolving
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
16 Group: Networking/Daemons
17 Source0: http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
18 # Source0-md5: 46d893281056ff476e597659cb91574d
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: ucd-ipchains.tar.gz
26 # Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
27 Patch0: %{name}-acfix.patch
28 Patch1: %{name}-rpm-implicit-libs.patch
29 Patch2: %{name}-config-noflags.patch
30 Patch3: %{name}-dlopen-fix.patch
31 Patch4: %{name}-manpage.patch
32 Patch5: %{name}-link.patch
33 Patch6: %{name}-llinterfaces.patch
34 Patch7: %{name}-kernel_headers.patch
35 Patch8: %{name}-rpmpath.patch
36 Patch9: %{name}-snmpksm.patch
37 Patch10: %{name}-python.patch
38 Patch11: %{name}-python-includes.patch
39 URL: http://www.net-snmp.org/
40 BuildRequires: autoconf >= 2.57-3
41 BuildRequires: automake
42 BuildRequires: elfutils-devel
43 BuildRequires: heimdal-devel
44 BuildRequires: libtool >= 1.4
45 BuildRequires: libwrap-devel
46 BuildRequires: lm_sensors-devel
47 BuildRequires: openssl-devel >= 0.9.7d
48 %{?with_autodeps:BuildRequires: perl-Term-ReadKey}
49 BuildRequires: perl-devel >= 1:5.8.0
50 BuildRequires: python-devel >= 1:2.5
51 BuildRequires: python-setuptools
52 BuildRequires: rpm-devel >= 4.0
53 BuildRequires: rpm-perlprov >= 3.0.3-16
54 BuildRequires: rpmbuild(macros) >= 1.176
55 BuildRequires: rpmbuild(macros) >= 1.268
56 Requires(post,preun): /sbin/chkconfig
57 Requires: %{name}-libs = %{version}-%{release}
58 Requires: /usr/bin/setsid
59 Requires: rc-scripts >= 0.2.0
64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66 %define logfile /var/log/snmpd.log
67 %define filterout_ld -Wl,--as-needed
70 SNMP (Simple Network Management Protocol) is a protocol used for
71 network management (hence the name). The net-snmp project includes
72 various SNMP tools: an extensible agent, an SNMP library, tools for
73 requesting or setting information from SNMP agents, tools for
74 generating and handling SNMP traps, a version of the netstat command
75 which uses SNMP, and a Tk/Perl mib browser. This package contains the
76 snmpd daemon, documentation, etc.
79 Este paquete se deriva de la implementación del Protocolo Simple de
80 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
81 Útil para administrar redes y hacer contabilidad.
84 SNMP (Simple Network Management Protocol) jest protoko³em u¿ywanym do
85 zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
86 agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
87 informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
88 pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
89 w Tk/Perl, demona, dokumentacjê itp.
92 Este pacote é derivado da implementação do Protocolo Simples de
93 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
94 Mellon. Útil para gerenciar redes e fazer contabilidade.
97 SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
98 ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ net-snmp ×ËÌÀÞÁÅÔ
99 ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
100 ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
101 ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
102 ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
103 ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
106 SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
107 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ net-snmp
108 ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, ¦Â̦ÏÔÅËÁ
109 SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁæ§ ×¦Ä NMP-ÁÇÅÎÔ¦×,
110 ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁæ§ ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒÓ¦Ñ ËÏÍÁÎÄÉ netstat,
111 ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ
112 ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
115 Summary: NET SNMP libraries
116 Summary(pl): Biblioteki SNMP
118 Requires: %{name}-mibs = %{version}-%{release}
119 Obsoletes: net-snmp-compat-libs
120 Obsoletes: ucd-snmp-libs
125 %description libs -l pl
129 Summary: The development environment for the net-snmp project
130 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
131 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek net-snmp
132 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
133 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
134 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
135 Group: Development/Libraries
136 Requires: %{name}-libs = %{version}-%{release}
137 Requires: elfutils-devel
138 Requires: libwrap-devel
139 Requires: openssl-devel >= 0.9.7c
141 Obsoletes: ucd-snmp-devel
144 The ucd-snmp-devel package contains the development libraries and
145 header files for use with the net-snmp project's network management
148 %description devel -l es
149 Estas son las bibliotecas y archivos de inclusión para desarrollo con
150 el SNMP de la UCD. Con este paquete es posible la creación de
151 programas para uso en la gestión de redes.
153 %description devel -l pl
154 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
155 aplikacji u¿ywaj±cych protoko³u SNMP.
157 %description devel -l pt_BR
158 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
159 com o SNMP da UCD. Com este pacote é possível a criação de programas
160 para uso no gerenciamento de redes.
162 %description devel -l ru
163 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
164 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ net-snmp.
166 %description devel -l uk
167 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
168 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ net-snmp.
171 Summary: Static net-snmp libraries
172 Summary(pl): Statyczne biblioteki net-snmp
173 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
174 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ net-snmp
175 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ net-snmp
176 Group: Development/Libraries
177 Requires: %{name}-devel = %{version}-%{release}
178 Obsoletes: ucd-snmp-static
181 Static net-snmp libraries.
183 %description static -l pl
184 Statyczne biblioteki net-snmp.
186 %description static -l pt_BR
187 Bibliotecas estáticas para desenvolvimento com net-snmp.
189 %package compat-devel
190 Summary: The development environment for the UCD-SNMP project
191 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
192 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek UCD-SNMP
193 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
194 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
195 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
196 Group: Development/Libraries
197 Requires: %{name}-libs = %{version}-%{release}
198 Requires: openssl-devel >= 0.9.7d
199 Obsoletes: cmu-snmp-devel
200 Obsoletes: ucd-snmp-devel
202 %description compat-devel
203 The ucd-snmp-devel package contains the development libraries and
204 header files for use with the UCD-SNMP project's network management
207 %description compat-devel -l es
208 Estas son las bibliotecas y archivos de inclusión para desarrollo con
209 el SNMP de la UCD. Con este paquete es posible la creación de
210 programas para uso en la gestión de redes.
212 %description compat-devel -l pl
213 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
214 aplikacji u¿ywaj±cych protoko³u SNMP.
216 %description compat-devel -l pt_BR
217 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
218 com o SNMP da UCD. Com este pacote é possível a criação de programas
219 para uso no gerenciamento de redes.
221 %description compat-devel -l ru
222 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
223 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
225 %description compat-devel -l uk
226 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
227 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
229 %package compat-static
230 Summary: Static UCD-SNMP libraries
231 Summary(pl): Statyczne biblioteki UCD-SNMP
232 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
233 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
234 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
235 Group: Development/Libraries
236 Requires: %{name}-compat-devel = %{version}-%{release}
237 Obsoletes: ucd-snmp-static
239 %description compat-static
240 Static UCD-SNMP libraries.
242 %description compat-static -l pl
243 Statyczne biblioteki UCD-SNMP.
245 %description compat-static -l pt_BR
246 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
249 Summary: MIB database
250 Summary(pl): Baza danych MIB
251 Group: Applications/System
252 Conflicts: ucd-snmp-libs
257 %description mibs -l pl
261 Summary: SNMP trap daemon
262 Summary(pl): Demon obs³uguj±cy pu³apki SNMP
263 Group: Applications/System
264 Requires(post,preun): /sbin/chkconfig
265 Requires: %{name} = %{version}-%{release}
266 Requires: rc-scripts >= 0.2.0
267 Obsoletes: cmu-snmp-utils
268 Obsoletes: ucd-snmp-snmptrapd
270 %description snmptrapd
271 The ucd-snmp-snmptrapd package contains snmp trap daemon.
273 %description snmptrapd -l pl
274 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
277 Summary: Network management utilities using SNMP, from the NET-SNMP project
278 Summary(es): Utilitarios del SNMP de la UCD
279 Summary(pl): Narzêdzia u¿ywaj±ce protoko³u SNMP
280 Summary(pt_BR): Utilitários do SNMP da UCD
281 Summary(ru): õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
282 Summary(uk): õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
283 Group: Applications/System
284 Requires: %{name}-libs = %{version}-%{release}
285 Obsoletes: cmu-snmp-utils
286 Obsoletes: ucd-snmp-utils
289 This package contains various utilities for managing your network
290 using the SNMP protocol.
292 %description utils -l es
293 Varios utilitarios para uso con el SNMP de la UCD. Contiene
294 utilitarios como: snmpwalk, snmptest y otros.
296 %description utils -l pl
297 Ró¿nego rodzaju narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u
300 %description utils -l pt_BR
301 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
302 como: snmpwalk, snmptest e outros.
304 %description utils -l ru
305 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
306 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ net-snmp.
308 %description utils -l uk
309 ðÁËÅÔ ucd-snmp-utils ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
310 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ net-snmp.
312 %package -n perl-SNMP
313 Summary: SNMP and NetSNMP::* Perl modules
314 Summary(pl): Modu³y Perla SNMP oraz NetSNMP::*
315 Group: Development/Languages/Perl
316 Requires: %{name}-libs = %{version}-%{release}
317 Conflicts: ucd-snmp-utils-perl
319 %description -n perl-SNMP
320 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
322 %description -n perl-SNMP -l pl
323 Modu³y Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
326 Summary: Perl utilities for network management using SNMP
327 Summary(pl): Perlowe narzêdzia u¿ywaj±ce protoko³u SNMP
328 Group: Applications/System
329 Requires: perl-SNMP = %{version}-%{release}
330 Obsoletes: cmu-snmp-utils
331 Obsoletes: ucd-snmp-utils-perl
333 %description utils-perl
334 This package contains various Perl utilities for managing your network
335 using the SNMP protocol.
337 %description utils-perl -l pl
338 Perlowe narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u SNMP.
341 Summary: snmpconf - creating and modifying SNMP configuration files
342 Summary(pl): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
343 Group: Applications/System
344 Requires: %{name} = %{version}-%{release}
345 Requires: perl-SNMP = %{version}-%{release}
347 %description snmpconf
348 snmpconf is a simple Perl script that walks you through setting up a
349 configuration file step by step. It should be fairly straight forward
352 %description snmpconf -l pl
353 snmpconf to prosty skrypt Perla pozwalaj±cy na tworzenie pliku
354 konfiguracyjnego krok po kroku. Powinien byæ w miarê prosty w u¿yciu.
357 Summary: MIB browser in Tk
358 Summary(pl): Przegl±darka MIB-ów w Tk
359 Group: Applications/System
360 Requires: perl-SNMP = %{version}-%{release}
366 %description tkmib -l pl
367 Przegl±darka MIB-ów w Tk.
369 %package -n python-netsnmp
370 Summary: Python netsnmp extension module
371 Summary(pl): Modu³ rozszerzenia netsnmp dla Pythona
372 Group: Libraries/Python
373 Requires: %{name}-libs = %{version}-%{release}
375 %description -n python-netsnmp
376 The 'netsnmp' Python extension module provides a full featured,
377 tri-lingual SNMP (SNMPv3, SNMPv2c, SNMPv1) client API.
379 %description -n python-netsnmp -l pl
380 Modu³ rozszerzenia netsnmp dla Pythona udostêpnia pe³ne API klienckie
381 SNMP dla trzech wersji tego protoko³u (SNMPv3, SNMPv2c, SNMPv1).
404 --with-cflags="%{rpmcflags} -I/usr/include/et" \
405 --with-ldflags="%{rpmldflags}" \
407 --with-default-snmp-version=3 \
410 --with-logfile="%{logfile}" \
411 --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
412 %ifarch %{ix86} %{x8664}
413 ucd-snmp/lmSensors ucd-snmp/diskio \
415 agentx target misc/ipfwacc" \
417 --with-perl-modules \
418 --with-persistent-directory="/var/lib/net-snmp" \
419 --with-python-modules \
420 --with-security-modules="ksm" \
421 --with-sys-contact="root@localhost" \
422 --with-sys-location="Unknown" \
423 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
424 --disable-debugging \
427 --enable-ucd-snmp-compatibility
429 # --enable-reentrant is broken - snmpd deadlocks on send (tries to lock the same mutex twice):
430 # #4 0xb760f54e in siglongjmp () from /lib/tls/libpthread.so.0
431 # #5 0xb7e5e0cf in snmp_res_lock (groupID=0, resourceID=1) at mt_support.c:103
432 # #6 0xb7e45698 in snmp_sess_pointer (session=0x80ff868) at snmp_api.c:6975
433 # #7 0xb7e41aca in snmp_async_send (session=0x80ff868, pdu=0x8141848, callback=0, cb_data=0x0)
435 # #8 0xb7e41a6d in snmp_send (session=0x80ff868, pdu=0x8141848) at snmp_api.c:4551
436 # #9 0xb7ebf6fd in netsnmp_wrap_up_request (asp=0x812d828, status=0) at snmp_agent.c:1627
437 # #10 0xb7ec12e3 in netsnmp_handle_request (asp=0x812d828, status=0) at snmp_agent.c:2996
438 # #11 0xb7ebfa65 in handle_snmp_packet (op=1, session=0x80ff868, reqid=628270607, pdu=0x81419b8,
439 # magic=0x0) at snmp_agent.c:1792
440 # #12 0xb7e42b1c in _sess_process_packet (sessp=0x812c970, sp=0x80ff868, isp=0x812c698,
441 # transport=0x8142028, opaque=0x812c1a0, olength=16,
442 # packetptr=0x8145cb8 "0f\002\001\0030\021\002\004c [Ç\002\003", length=104) at snmp_api.c:5208
443 # #13 0xb7e434e6 in _sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5606
444 # #14 0xb7e43535 in snmp_sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5625
445 # #15 0xb7e42c44 in snmp_read (fdset=0xbfffe0e0) at snmp_api.c:5260
446 # #16 0x0804bbe5 in receive () at snmpd.c:1149
447 # #17 0x0804b53d in main (argc=5, argv=0xbffff344) at snmpd.c:993
448 # [res mutex with groupID=0, resourceID=1 already locked in snmp_read() at snmp_api.c:5258]
450 # build this subdir first. it's causing STRANGE compile failures # otherwise (for me at least). glen
451 %{__make} -C agent/mibgroup
456 %{__perl} Makefile.PL \
457 -NET-SNMP-IN-SOURCE=true \
459 OPTIMIZE="%{rpmcflags}" \
462 # avoid rpaths generated by MakeMaker
463 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
466 LDFLAGS="%{rpmldflags}"
469 rm -rf $RPM_BUILD_ROOT
470 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,snmp},/var/log}
473 DESTDIR=$RPM_BUILD_ROOT
475 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
476 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
477 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
478 :> $RPM_BUILD_ROOT%{logfile}
480 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
481 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
482 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
484 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
485 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
486 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
488 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
489 # $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
493 DESTDIR=$RPM_BUILD_ROOT
495 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
496 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
499 # IP-Filter (non-Linux)
500 rm -f $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
503 rm -rf $RPM_BUILD_ROOT
508 /sbin/chkconfig --add snmpd
509 %service snmpd restart "snmpd daemon"
512 if [ "$1" = "0" ]; then
514 /sbin/chkconfig --del snmpd
517 %post libs -p /sbin/ldconfig
518 %postun libs -p /sbin/ldconfig
520 %triggerpostun -- ucd-snmp
521 /sbin/chkconfig --add snmpd
526 /sbin/chkconfig --add snmptrapd
527 %service snmptrapd restart "snmp trap daemon"
530 if [ "$1" = "0" ]; then
531 %service snmptrapd stop
532 /sbin/chkconfig --del snmptrapd
535 %triggerpostun snmptrapd -- ucd-snmp-snmptrapd
536 /sbin/chkconfig --add snmptrapd
539 %defattr(644,root,root,755)
541 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
542 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
544 %attr(754,root,root) /etc/rc.d/init.d/snmpd
545 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
547 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
548 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
550 %attr(755,root,root) %{_sbindir}/snmpd
552 %{_mandir}/man5/snmpd.conf.5*
553 %{_mandir}/man5/snmpd.examples.5*
554 %{_mandir}/man5/snmpd.internal.5*
555 %{_mandir}/man5/variables.5*
556 %{_mandir}/man8/snmpd.8*
558 %attr(640,root,root) %ghost %{logfile}
561 %defattr(644,root,root,755)
562 %dir %{_sysconfdir}/snmp
563 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
566 %defattr(644,root,root,755)
567 %attr(755,root,root) %{_bindir}/mib2c
568 %attr(755,root,root) %{_bindir}/mib2c-update
569 %attr(755,root,root) %{_bindir}/net-snmp-config
570 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
571 %{_libdir}/libnet*.la
572 %{_includedir}/net-snmp
573 %{_datadir}/snmp/mib2c*
574 %{_mandir}/man1/mib2c.1*
575 %{_mandir}/man1/mib2c-update.1*
576 %{_mandir}/man1/net-snmp-config.1*
577 %{_mandir}/man3/[!NS]*
578 %{_mandir}/man5/mib2c.conf.5*
581 %defattr(644,root,root,755)
585 %defattr(644,root,root,755)
586 %attr(755,root,root) %{_libdir}/libsnmp.so
587 %{_libdir}/libsnmp.la
588 %{_includedir}/ucd-snmp
591 %defattr(644,root,root,755)
595 %defattr(644,root,root,755)
596 %dir %{_datadir}/snmp
597 %{_datadir}/snmp/mibs
600 %defattr(644,root,root,755)
601 %attr(755,root,root) %{_sbindir}/snmptrapd
602 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
603 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
604 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
605 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
606 %{_mandir}/man5/snmptrapd.conf.5*
607 %{_mandir}/man8/snmptrapd.8*
610 %defattr(644,root,root,755)
611 %attr(755,root,root) %{_bindir}/encode_keychange
612 %attr(755,root,root) %{_bindir}/snmpbulkget
613 %attr(755,root,root) %{_bindir}/snmpbulkwalk
614 %attr(755,root,root) %{_bindir}/snmpdelta
615 %attr(755,root,root) %{_bindir}/snmpdf
616 %attr(755,root,root) %{_bindir}/snmpget
617 %attr(755,root,root) %{_bindir}/snmpgetnext
618 %attr(755,root,root) %{_bindir}/snmpinform
619 %attr(755,root,root) %{_bindir}/snmpnetstat
620 %attr(755,root,root) %{_bindir}/snmpset
621 %attr(755,root,root) %{_bindir}/snmpstatus
622 %attr(755,root,root) %{_bindir}/snmptable
623 %attr(755,root,root) %{_bindir}/snmptest
624 %attr(755,root,root) %{_bindir}/snmptranslate
625 %attr(755,root,root) %{_bindir}/snmptrap
626 %attr(755,root,root) %{_bindir}/snmpusm
627 %attr(755,root,root) %{_bindir}/snmpvacm
628 %attr(755,root,root) %{_bindir}/snmpwalk
629 %{_mandir}/man1/encode_keychange.1*
630 %{_mandir}/man1/snmpbulkget.1*
631 %{_mandir}/man1/snmpbulkwalk.1*
632 %{_mandir}/man1/snmpcmd.1*
633 %{_mandir}/man1/snmpdelta.1*
634 %{_mandir}/man1/snmpdf.1*
635 %{_mandir}/man1/snmpget.1*
636 %{_mandir}/man1/snmpgetnext.1*
637 %{_mandir}/man1/snmpinform.1*
638 %{_mandir}/man1/snmpnetstat.1*
639 %{_mandir}/man1/snmpset.1*
640 %{_mandir}/man1/snmpstatus.1*
641 %{_mandir}/man1/snmptable.1*
642 %{_mandir}/man1/snmptest.1*
643 %{_mandir}/man1/snmptranslate.1*
644 %{_mandir}/man1/snmptrap.1*
645 %{_mandir}/man1/snmpusm.1*
646 %{_mandir}/man1/snmpvacm.1*
647 %{_mandir}/man1/snmpwalk.1*
648 %{_mandir}/man5/snmp.conf.5*
649 %{_mandir}/man5/snmp_config.5*
651 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
654 %defattr(644,root,root,755)
655 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
656 %{perl_vendorarch}/SNMP.pm
657 %{perl_vendorarch}/NetSNMP
658 %dir %{perl_vendorarch}/auto/SNMP
659 %{perl_vendorarch}/auto/SNMP/autosplit.ix
660 %{perl_vendorarch}/auto/SNMP/SNMP.bs
661 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
662 %dir %{perl_vendorarch}/auto/NetSNMP
663 %dir %{perl_vendorarch}/auto/NetSNMP/*
664 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
665 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
666 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
667 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
668 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
669 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
670 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
671 %{_mandir}/man3/NetSNMP::*.3*
672 %{_mandir}/man3/SNMP.3*
673 %{_examplesdir}/perl-SNMP-%{version}
676 %defattr(644,root,root,755)
677 %attr(755,root,root) %{_bindir}/fixproc
678 %attr(755,root,root) %{_bindir}/snmpcheck
679 %attr(755,root,root) %{_bindir}/traptoemail
680 %{_mandir}/man1/fixproc.1*
681 %{_mandir}/man1/traptoemail.1*
684 %defattr(644,root,root,755)
685 %attr(755,root,root) %{_bindir}/snmpconf
686 %{_mandir}/man1/snmpconf.1*
687 %{_datadir}/snmp/snmpconf-data
690 %defattr(644,root,root,755)
691 %attr(755,root,root) %{_bindir}/tkmib
692 %{_mandir}/man1/tkmib.1*
694 %files -n python-netsnmp
695 %defattr(644,root,root,755)
696 %dir %{py_sitedir}/netsnmp
697 %attr(755,root,root) %{py_sitedir}/netsnmp/*.so
698 %{py_sitedir}/netsnmp/*.py[co]
699 %{py_sitedir}/netsnmp_python-*.egg-info