4 # - review %%files (add missing)
8 # - review ucd patches:
10 # -- init_master-libwrap
11 # - /usr/local/bin/perl fix
12 %include /usr/lib/rpm/macros.perl
13 Summary: A collection of SNMP protocol tools
14 Summary(es): Agente SNMP de la UCD
15 Summary(pl): Kolekcja narzêdzi do obs³ugi protoko³u SNMP
16 Summary(pt_BR): Agente SNMP da UCD
17 Summary(ru): îÁÂÏÒ ÕÔÉÌÉÔ ÄÌÑ ÐÒÏÔÏËÏÌÁ SNMP ÏÔ UC-Davis
18 Summary(uk): îÁÂ¦Ò ÕÔÉÌ¦Ô ÄÌÑ ÐÒÏÔÏËÏÌÕ SNMP ×¦Ä UC-Davis
23 Group: Networking/Daemons
24 Source0: http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
25 # Source0-md5: 9fa8555c1a9d68008b3b0df52721ee82
26 Source1: %{name}d.init
27 Source2: %{name}d.conf
28 Source3: %{name}d.sysconfig
29 Source4: %{name}trapd.init
30 Source5: %{name}trapd.conf
31 Source6: %{name}trapd.sysconfig
32 Source7: ftp://ucd-snmp.ucdavis.edu/contrib/ucd-ipchains.tar.gz
33 # Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
34 Patch0: %{name}-acinclude.patch
35 Patch1: %{name}-acfix.patch
36 Patch2: %{name}-rpm-implicit-libs.patch
37 Patch3: %{name}-DESTDIR.patch
38 Patch4: %{name}-config-noflags.patch
39 Patch5: %{name}-dlopen-fix.patch
40 Patch6: %{name}-manpage.patch
41 Patch7: %{name}-link.patch
42 Patch8: %{name}-llinterfaces.patch
43 Patch9: %{name}-usr_local_bin_perl.patch
44 URL: http://www.net-snmp.org/
45 BuildRequires: autoconf >= 2.57-3
46 BuildRequires: automake
47 BuildRequires: libtool >= 1.4
48 BuildRequires: libwrap-devel
49 BuildRequires: openssl-devel >= 0.9.7
50 %{!?_without_autodeps:BuildRequires: perl-Term-ReadKey}
51 BuildRequires: perl-devel >= 5.6.1
52 BuildRequires: rpm-devel >= 4.0
53 BuildRequires: rpm-perlprov >= 3.0.3-16
54 PreReq: rc-scripts >= 0.2.0
55 PreReq: %{name}-libs = %{version}
56 Requires(post,preun): /sbin/chkconfig
57 Requires: /usr/bin/setsid
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 %define logfile /var/log/snmpd.log
67 SNMP (Simple Network Management Protocol) is a protocol used for
68 network management (hence the name). The net-snmp project includes
69 various SNMP tools: an extensible agent, an SNMP library, tools for
70 requesting or setting information from SNMP agents, tools for
71 generating and handling SNMP traps, a version of the netstat command
72 which uses SNMP, and a Tk/Perl mib browser. This package contains the
73 snmpd daemon, documentation, etc.
76 Este paquete se deriva de la implementación del Protocolo Simple de
77 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
78 Útil para administrar redes y hacer contabilidad.
81 SNMP (Simple Network Management Protocol) jest protoko³ej u¿ywanym do
82 zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
83 agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
84 informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
85 pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
86 w Tk/Perl, deamona, dokumentacjê itp.
89 Este pacote é derivado da implementação do Protocolo Simples de
90 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
91 Mellon. Útil para gerenciar redes e fazer contabilidade.
94 SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
95 ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ net-snmp ×ËÌÀÞÁÅÔ
96 ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
97 ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
98 ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
99 ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
100 ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
103 SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
104 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ net-snmp
105 ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, ¦Â̦ÏÔÅËÁ
106 SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁæ§ ×¦Ä NMP-ÁÇÅÎÔ¦×,
107 ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁæ§ ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒÓ¦Ñ ËÏÍÁÎÄÉ netstat,
108 ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ
109 ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
112 Summary: NET SNMP libraries
113 Summary(pl): Biblioteki SNMP
115 Obsoletes: ucd-snmp-libs
116 Requires: %{name}-mibs = %{version}
121 %description libs -l pl
125 Summary: The development environment for the net-snmp project
126 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
127 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek net-snmp
128 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
129 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
130 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
131 Group: Development/Libraries
132 Requires: %{name}-libs = %{version}
133 Requires: openssl-devel >= 0.9.7
134 Obsoletes: ucd-snmp-devel
137 The ucd-snmp-devel package contains the development libraries and
138 header files for use with the net-snmp project's network management
141 %description devel -l es
142 Estas son las bibliotecas y archivos de inclusión para desarrollo con
143 el SNMP de la UCD. Con este paquete es posible la creación de
144 programas para uso en la gestión de redes.
146 %description devel -l pl
147 Pakiet zawiera pliki nag³ówkowe i bilioteki potrzebne do rozwoju
148 aplikacji u¿ywaj±cych protoko³u SNMP.
150 %description devel -l pt_BR
151 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
152 com o SNMP da UCD. Com este pacote é possível a criação de programas
153 para uso no gerenciamento de redes.
155 %description devel -l ru
156 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
157 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ net-snmp.
159 %description devel -l uk
160 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
161 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ net-snmp.
164 Summary: Static net-snmp libraries
165 Summary(pl): Statyczne biblioteki net-snmp
166 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
167 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ net-snmp
168 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ net-snmp
169 Group: Development/Libraries
170 Requires: %{name}-devel = %{version}
171 Obsoletes: ucd-snmp-static
174 Static net-snmp libraries.
176 %description static -l pl
177 Statyczne biblioteki net-snmp.
179 %description static -l pt_BR
180 Bibliotecas estáticas para desenvolvimento com net-snmp.
183 Summary: UCD SNMP libraries
184 Summary(pl): Biblioteki UCD SNMP
186 Obsoletes: ucd-snmp-libs
187 Requires: %{name}-mibs = %{version}
189 %description compat-libs
192 %description compat-libs -l pl
195 %package compat-devel
196 Summary: The development environment for the UCD-SNMP project
197 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
198 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek UCD-SNMP
199 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
200 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
201 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
202 Group: Development/Libraries
203 Requires: %{name}-compat-libs = %{version}
204 Requires: openssl-devel >= 0.9.7
205 Obsoletes: cmu-snmp-devel
206 Obsoletes: ucd-snmp-devel
208 %description compat-devel
209 The ucd-snmp-devel package contains the development libraries and
210 header files for use with the UCD-SNMP project's network management
213 %description compat-devel -l es
214 Estas son las bibliotecas y archivos de inclusión para desarrollo con
215 el SNMP de la UCD. Con este paquete es posible la creación de
216 programas para uso en la gestión de redes.
218 %description compat-devel -l pl
219 Pakiet zawiera pliki nag³ówkowe i bilioteki potrzebne do rozwoju
220 aplikacji u¿ywaj±cych protoko³u SNMP.
222 %description compat-devel -l pt_BR
223 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
224 com o SNMP da UCD. Com este pacote é possível a criação de programas
225 para uso no gerenciamento de redes.
227 %description compat-devel -l ru
228 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
229 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
231 %description compat-devel -l uk
232 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
233 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
235 %package compat-static
236 Summary: Static UCD-SNMP libraries
237 Summary(pl): Statyczne biblioteki UCD-SNMP
238 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
239 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
240 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
241 Group: Development/Libraries
242 Requires: %{name}-compat-devel = %{version}
243 Obsoletes: ucd-snmp-static
245 %description compat-static
246 Static UCD-SNMP libraries.
248 %description compat-static -l pl
249 Statyczne biblioteki UCD-SNMP.
251 %description compat-static -l pt_BR
252 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
255 Summary: MIB database
256 Summary(pl): Baza danych MIB
257 Group: Applications/System
262 %description mibs -l pl
266 Summary: SNMP trap daemon
267 Summary(pl): Demon obs³uguj±cy pu³apki SNMP
268 Group: Applications/System
269 PreReq: %{name} = %{version}
270 PreReq: rc-scripts >= 0.2.0
271 Requires(post,preun): /sbin/chkconfig
272 Obsoletes: cmu-snmp-utils
273 Obsoletes: ucd-snmp-snmptrapd
275 %description snmptrapd
276 The ucd-snmp-snmptrapd package contains snmp trap daemon.
278 %description snmptrapd -l pl
279 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
282 Summary: Network management utilities using SNMP, from the NET-SNMP project
283 Summary(es): Utilitarios del SNMP de la UCD
284 Summary(pl): Narzêdzia u¿ywaj±ce protoko³u SNMP
285 Summary(pt_BR): Utilitários do SNMP da UCD
286 Summary(ru): õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
287 Summary(uk): õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
288 Group: Applications/System
289 Requires: %{name}-libs = %{version}
290 Obsoletes: cmu-snmp-utils
291 Obsoletes: ucd-snmp-utils
294 This package contains various utilities for managing your network
295 using the SNMP protocol.
297 %description utils -l es
298 Varios utilitarios para uso con el SNMP de la UCD. Contiene
299 utilitarios como: snmpwalk, snmptest y otros.
301 %description utils -l pl
302 Ró¿nego rodzaju narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u
305 %description utils -l pt_BR
306 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
307 como: snmpwalk, snmptest e outros.
309 %description utils -l ru
310 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
311 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ net-snmp.
313 %description utils -l uk
314 ðÁËÅÔ ucd-snmp-utils ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
315 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ net-snmp.
317 %package -n perl-SNMP
318 Summary: SNMP and NetSNMP::* Perl modules
319 Summary(pl): Modu³y Perla SNMP oraz NetSNMP::*
320 Group: Development/Languages/Perl
321 Requires: %{name}-libs = %{version}
323 %description -n perl-SNMP
324 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
326 %description -n perl-SNMP -l pl
327 Modu³y Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
330 Summary: Perl utilities for network management using SNMP
331 Summary(pl): Perlowe narzêdzia u¿ywaj±ce protoko³u SNMP
332 Group: Applications/System
333 Requires: perl-SNMP = %{version}
334 Obsoletes: cmu-snmp-utils
335 Obsoletes: ucd-snmp-utils-perl
337 %description utils-perl
338 This package contains various Perl utilities for managing your network
339 using the SNMP protocol.
341 %description utils-perl -l pl
342 Perlowe narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u SNMP.
345 Summary: snmpconf - creating and modifying SNMP configuration files
346 Summary(pl): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
347 Group: Applications/System
348 Requires: %{name} = %{version}
349 Requires: perl-SNMP = %{version}
351 %description snmpconf
352 snmpconf is a simple Perl script that walks you through setting up a
353 configuration file step by step. It should be fairly straight forward
356 %description snmpconf -l pl
357 snmpconf to prosty skrypt Perla pozwalaj±cy na tworzenie pliku
358 konfiguracyjnego krok po kroku. Powinien byæ w miarê prosty w u¿yciu.
361 Summary: MIB browser in TK
362 Summary(pl): Przegl±darka MIB-ów w TK
363 Group: Applications/System
364 Requires: perl-SNMP = %{version}
370 %description tkmib -l pl
371 Przegl±darka MIB-ów w TK.
392 --with-logfile="%{logfile}" \
393 --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
394 --with-ldflags="%{rpmldflags}" \
395 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
396 --with-sys-location="Unknown" \
397 --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
398 agentx target misc/ipfwacc tunnel" \
399 --with-libwrap=%{_prefix} \
400 --with-openssl=%{_prefix} \
401 --disable-debugging \
402 --with-persistent-directory="/var/lib/net-snmp" \
405 --with-sys-contact="root@localhost" \
406 --enable-ucd-snmp-compatibility \
408 --with-default-snmp-version=3 \
414 sed -e "s@-L/usr/lib@-L${TDIR}/snmplib/.libs -L${TDIR}/agent/.libs -L${TDIR}/agent/helpers/.libs@" \
415 ../net-snmp-config > net-snmp-config
416 chmod +x net-snmp-config
419 %{__perl} Makefile.PL \
421 OPTIMIZE="%{rpmcflags} -I`pwd`/../include" \
423 # avoid rpaths generated by MakeMaker
424 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
429 rm -rf $RPM_BUILD_ROOT
430 install -d $RPM_BUILD_ROOT/{etc/{snmp,rc.d/init.d,sysconfig},/var/log}
432 %{__make} install DESTDIR=$RPM_BUILD_ROOT
434 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
435 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
436 :> $RPM_BUILD_ROOT%{logfile}
438 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
439 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
440 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
442 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
443 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
444 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
446 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
447 # $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
451 DESTDIR=$RPM_BUILD_ROOT
452 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
453 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
456 rm -rf $RPM_BUILD_ROOT
459 /sbin/chkconfig --add snmpd
460 if [ -f /var/lock/subsys/snmpd ]; then
461 /etc/rc.d/init.d/snmpd restart >&2
463 echo "Run \"/etc/rc.d/init.d/snmpd start\" to start snmpd daemon." >&2
469 if [ "$1" = "0" ]; then
470 if [ -f /var/lock/subsys/snmpd ]; then
471 /etc/rc.d/init.d/snmpd stop >&2
473 /sbin/chkconfig --del snmpd
476 %post libs -p /sbin/ldconfig
477 %postun libs -p /sbin/ldconfig
479 %post compat-libs -p /sbin/ldconfig
480 %postun compat-libs -p /sbin/ldconfig
483 /sbin/chkconfig --add snmptrapd
484 if [ -f /var/lock/subsys/snmptrapd ]; then
485 /etc/rc.d/init.d/snmptrapd restart >&2
487 echo "Run \"/etc/rc.d/init.d/snmptrapd start\" to start snmp trap daemon." >&2
493 if [ "$1" = "0" ]; then
494 if [ -f /var/lock/subsys/snmptrapd ]; then
495 /etc/rc.d/init.d/snmptrapd stop >&2
497 /sbin/chkconfig --del snmptrapd
501 %defattr(644,root,root,755)
503 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
504 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
506 %attr(754,root,root) /etc/rc.d/init.d/snmpd
507 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmpd
509 %dir %{_sysconfdir}/snmp
510 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.conf
511 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.local.conf
513 %attr(755,root,root) %{_sbindir}/snmpd
515 %{_mandir}/man5/snmpd.conf.5*
516 %{_mandir}/man5/variables.5*
517 %{_mandir}/man8/snmpd.8*
519 %attr(640,root,root) %ghost %{logfile}
522 %defattr(644,root,root,755)
523 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
526 %defattr(644,root,root,755)
527 %attr(755,root,root) %{_bindir}/mib2c
528 %attr(755,root,root) %{_bindir}/net-snmp-config
529 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
530 %{_libdir}/libnet*.la
531 %{_includedir}/net-snmp
532 %{_datadir}/snmp/mib2c*
533 %{_mandir}/man1/mib2c.1*
537 %defattr(644,root,root,755)
541 %defattr(644,root,root,755)
542 %attr(755,root,root) %{_libdir}/libsnmp.so.*.*
545 %defattr(644,root,root,755)
546 %attr(755,root,root) %{_libdir}/libsnmp.so
547 %{_libdir}/libsnmp.la
548 %{_includedir}/ucd-snmp
551 %defattr(644,root,root,755)
555 %defattr(644,root,root,755)
556 %dir %{_datadir}/snmp
557 %{_datadir}/snmp/mibs
560 %defattr(644,root,root,755)
561 %attr(755,root,root) %{_sbindir}/snmptrapd
562 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
563 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmptrapd
564 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmptrapd.conf
565 %{_mandir}/man5/snmptrapd.conf.5*
566 %{_mandir}/man8/snmptrapd.8*
569 %defattr(644,root,root,755)
570 %attr(755,root,root) %{_bindir}/encode_keychange
571 %attr(755,root,root) %{_bindir}/snmpbulkget
572 %attr(755,root,root) %{_bindir}/snmpbulkwalk
573 %attr(755,root,root) %{_bindir}/snmpdelta
574 %attr(755,root,root) %{_bindir}/snmpget
575 %attr(755,root,root) %{_bindir}/snmpgetnext
576 %attr(755,root,root) %{_bindir}/snmpnetstat
577 %attr(755,root,root) %{_bindir}/snmpset
578 %attr(755,root,root) %{_bindir}/snmpstatus
579 %attr(755,root,root) %{_bindir}/snmptable
580 %attr(755,root,root) %{_bindir}/snmptest
581 %attr(755,root,root) %{_bindir}/snmptranslate
582 %attr(755,root,root) %{_bindir}/snmptrap
583 %attr(755,root,root) %{_bindir}/snmpusm
584 %attr(755,root,root) %{_bindir}/snmpwalk
585 %attr(755,root,root) %{_bindir}/snmpdf
586 %attr(755,root,root) %{_bindir}/snmpinform
587 %attr(755,root,root) %{_bindir}/snmpvacm
589 #%%{_datadir}/snmp/snmpconf/snmp.conf
591 %{_mandir}/man1/snmpbulkget.1*
592 %{_mandir}/man1/snmpbulkwalk.1*
593 %{_mandir}/man1/snmpcmd.1*
594 %{_mandir}/man1/snmpdelta.1*
595 %{_mandir}/man1/snmpget.1*
596 %{_mandir}/man1/snmpgetnext.1*
597 %{_mandir}/man1/snmpnetstat.1*
598 %{_mandir}/man1/snmpset.1*
599 %{_mandir}/man1/snmpstatus.1*
600 %{_mandir}/man1/snmptable.1*
601 %{_mandir}/man1/snmptest.1*
602 %{_mandir}/man1/snmptranslate.1*
603 %{_mandir}/man1/snmptrap.1*
604 %{_mandir}/man1/snmpusm.1*
605 %{_mandir}/man1/snmpwalk.1*
606 %{_mandir}/man1/snmpdf.1*
607 %{_mandir}/man1/snmpinform.1*
608 %{_mandir}/man5/snmp.conf.5*
609 %{_mandir}/man5/snmp_config.5*
612 %defattr(644,root,root,755)
613 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
614 %{perl_vendorarch}/SNMP.pm
615 %{perl_vendorarch}/NetSNMP
616 %dir %{perl_vendorarch}/auto/SNMP
617 %{perl_vendorarch}/auto/SNMP/autosplit.ix
618 %{perl_vendorarch}/auto/SNMP/SNMP.bs
619 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
620 %dir %{perl_vendorarch}/auto/NetSNMP
621 %dir %{perl_vendorarch}/auto/NetSNMP/*
622 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
623 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
624 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
625 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
626 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
627 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
628 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
629 %{_mandir}/man3/NetSNMP::*.3*
630 %{_mandir}/man3/SNMP.3*
631 %{_examplesdir}/perl-SNMP-%{version}
634 %defattr(644,root,root,755)
635 %attr(755,root,root) %{_bindir}/snmpcheck
636 %attr(755,root,root) %{_bindir}/traptoemail
639 %attr(755,root,root) %{_bindir}/snmpconf
640 %{_mandir}/man1/snmpconf.1*
641 %{_datadir}/snmp/snmpconf-data
644 %defattr(644,root,root,755)
645 %attr(0755,root,root) %{_bindir}/tkmib