4 # - review %%files (add missing)
8 # - review ucd patches:
10 # -- init_master-libwrap
11 # - /usr/local/bin/perl fix
14 %bcond_without autodeps # don't BR packages only for deps resolving
16 %include /usr/lib/rpm/macros.perl
17 Summary: A collection of SNMP protocol tools
18 Summary(es): Agente SNMP de la UCD
19 Summary(pl): Kolekcja narzêdzi do obs³ugi protoko³u SNMP
20 Summary(pt_BR): Agente SNMP da UCD
21 Summary(ru): îÁÂÏÒ ÕÔÉÌÉÔ ÄÌÑ ÐÒÏÔÏËÏÌÁ SNMP ÏÔ UC-Davis
22 Summary(uk): îÁÂ¦Ò ÕÔÉÌ¦Ô ÄÌÑ ÐÒÏÔÏËÏÌÕ SNMP ×¦Ä UC-Davis
27 Group: Networking/Daemons
28 Source0: http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
29 # Source0-md5: 14217471edb2b805b0e28c4c3cfd8c75
30 Source1: %{name}d.init
31 Source2: %{name}d.conf
32 Source3: %{name}d.sysconfig
33 Source4: %{name}trapd.init
34 Source5: %{name}trapd.conf
35 Source6: %{name}trapd.sysconfig
36 Source7: ftp://ucd-snmp.ucdavis.edu/contrib/ucd-ipchains.tar.gz
37 # Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
38 Patch0: %{name}-acinclude.patch
39 Patch1: %{name}-acfix.patch
40 Patch2: %{name}-rpm-implicit-libs.patch
41 Patch3: %{name}-config-noflags.patch
42 Patch4: %{name}-dlopen-fix.patch
43 Patch5: %{name}-manpage.patch
44 Patch6: %{name}-link.patch
45 Patch7: %{name}-llinterfaces.patch
46 Patch8: %{name}-usr_local_bin_perl.patch
47 Patch9: %{name}-kernel_headers.patch
48 URL: http://www.net-snmp.org/
49 BuildRequires: autoconf >= 2.57-3
50 BuildRequires: automake
51 BuildRequires: elfutils-devel
52 BuildRequires: libtool >= 1.4
53 BuildRequires: libwrap-devel
54 BuildRequires: openssl-devel >= 0.9.7c
55 %{?with_autodeps:BuildRequires: perl-Term-ReadKey}
56 BuildRequires: perl-devel >= 1:5.8.0
57 BuildRequires: rpm-devel >= 4.0
58 BuildRequires: rpm-perlprov >= 3.0.3-16
59 PreReq: rc-scripts >= 0.2.0
60 PreReq: %{name}-libs = %{version}
61 Requires(post,preun): /sbin/chkconfig
62 Requires: /usr/bin/setsid
64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
69 %define logfile /var/log/snmpd.log
72 SNMP (Simple Network Management Protocol) is a protocol used for
73 network management (hence the name). The net-snmp project includes
74 various SNMP tools: an extensible agent, an SNMP library, tools for
75 requesting or setting information from SNMP agents, tools for
76 generating and handling SNMP traps, a version of the netstat command
77 which uses SNMP, and a Tk/Perl mib browser. This package contains the
78 snmpd daemon, documentation, etc.
81 Este paquete se deriva de la implementación del Protocolo Simple de
82 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
83 Útil para administrar redes y hacer contabilidad.
86 SNMP (Simple Network Management Protocol) jest protoko³ej u¿ywanym do
87 zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
88 agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
89 informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
90 pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
91 w Tk/Perl, deamona, dokumentacjê itp.
94 Este pacote é derivado da implementação do Protocolo Simples de
95 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
96 Mellon. Útil para gerenciar redes e fazer contabilidade.
99 SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
100 ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ net-snmp ×ËÌÀÞÁÅÔ
101 ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
102 ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
103 ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
104 ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
105 ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
108 SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
109 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ net-snmp
110 ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, ¦Â̦ÏÔÅËÁ
111 SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁæ§ ×¦Ä NMP-ÁÇÅÎÔ¦×,
112 ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁæ§ ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒÓ¦Ñ ËÏÍÁÎÄÉ netstat,
113 ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ
114 ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
117 Summary: NET SNMP libraries
118 Summary(pl): Biblioteki SNMP
120 Obsoletes: ucd-snmp-libs
121 Requires: %{name}-mibs = %{version}
126 %description libs -l pl
130 Summary: The development environment for the net-snmp project
131 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
132 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek net-snmp
133 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
134 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
135 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
136 Group: Development/Libraries
137 Requires: %{name}-libs = %{version}
138 Requires: elfutils-devel
139 Requires: openssl-devel >= 0.9.7c
140 Obsoletes: ucd-snmp-devel
143 The ucd-snmp-devel package contains the development libraries and
144 header files for use with the net-snmp project's network management
147 %description devel -l es
148 Estas son las bibliotecas y archivos de inclusión para desarrollo con
149 el SNMP de la UCD. Con este paquete es posible la creación de
150 programas para uso en la gestión de redes.
152 %description devel -l pl
153 Pakiet zawiera pliki nag³ówkowe i bilioteki potrzebne do rozwoju
154 aplikacji u¿ywaj±cych protoko³u SNMP.
156 %description devel -l pt_BR
157 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
158 com o SNMP da UCD. Com este pacote é possível a criação de programas
159 para uso no gerenciamento de redes.
161 %description devel -l ru
162 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
163 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ net-snmp.
165 %description devel -l uk
166 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
167 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ net-snmp.
170 Summary: Static net-snmp libraries
171 Summary(pl): Statyczne biblioteki net-snmp
172 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
173 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ net-snmp
174 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ net-snmp
175 Group: Development/Libraries
176 Requires: %{name}-devel = %{version}
177 Obsoletes: ucd-snmp-static
180 Static net-snmp libraries.
182 %description static -l pl
183 Statyczne biblioteki net-snmp.
185 %description static -l pt_BR
186 Bibliotecas estáticas para desenvolvimento com net-snmp.
189 Summary: UCD SNMP libraries
190 Summary(pl): Biblioteki UCD SNMP
192 Obsoletes: ucd-snmp-libs
193 Requires: %{name}-mibs = %{version}
195 %description compat-libs
198 %description compat-libs -l pl
201 %package compat-devel
202 Summary: The development environment for the UCD-SNMP project
203 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
204 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek UCD-SNMP
205 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
206 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
207 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
208 Group: Development/Libraries
209 Requires: %{name}-compat-libs = %{version}
210 Requires: openssl-devel >= 0.9.7c
211 Obsoletes: cmu-snmp-devel
212 Obsoletes: ucd-snmp-devel
214 %description compat-devel
215 The ucd-snmp-devel package contains the development libraries and
216 header files for use with the UCD-SNMP project's network management
219 %description compat-devel -l es
220 Estas son las bibliotecas y archivos de inclusión para desarrollo con
221 el SNMP de la UCD. Con este paquete es posible la creación de
222 programas para uso en la gestión de redes.
224 %description compat-devel -l pl
225 Pakiet zawiera pliki nag³ówkowe i bilioteki potrzebne do rozwoju
226 aplikacji u¿ywaj±cych protoko³u SNMP.
228 %description compat-devel -l pt_BR
229 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
230 com o SNMP da UCD. Com este pacote é possível a criação de programas
231 para uso no gerenciamento de redes.
233 %description compat-devel -l ru
234 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
235 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
237 %description compat-devel -l uk
238 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
239 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
241 %package compat-static
242 Summary: Static UCD-SNMP libraries
243 Summary(pl): Statyczne biblioteki UCD-SNMP
244 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
245 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
246 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
247 Group: Development/Libraries
248 Requires: %{name}-compat-devel = %{version}
249 Obsoletes: ucd-snmp-static
251 %description compat-static
252 Static UCD-SNMP libraries.
254 %description compat-static -l pl
255 Statyczne biblioteki UCD-SNMP.
257 %description compat-static -l pt_BR
258 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
261 Summary: MIB database
262 Summary(pl): Baza danych MIB
263 Group: Applications/System
268 %description mibs -l pl
272 Summary: SNMP trap daemon
273 Summary(pl): Demon obs³uguj±cy pu³apki SNMP
274 Group: Applications/System
275 PreReq: %{name} = %{version}
276 PreReq: rc-scripts >= 0.2.0
277 Requires(post,preun): /sbin/chkconfig
278 Obsoletes: cmu-snmp-utils
279 Obsoletes: ucd-snmp-snmptrapd
281 %description snmptrapd
282 The ucd-snmp-snmptrapd package contains snmp trap daemon.
284 %description snmptrapd -l pl
285 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
288 Summary: Network management utilities using SNMP, from the NET-SNMP project
289 Summary(es): Utilitarios del SNMP de la UCD
290 Summary(pl): Narzêdzia u¿ywaj±ce protoko³u SNMP
291 Summary(pt_BR): Utilitários do SNMP da UCD
292 Summary(ru): õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
293 Summary(uk): õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
294 Group: Applications/System
295 Requires: %{name}-libs = %{version}
296 Obsoletes: cmu-snmp-utils
297 Obsoletes: ucd-snmp-utils
300 This package contains various utilities for managing your network
301 using the SNMP protocol.
303 %description utils -l es
304 Varios utilitarios para uso con el SNMP de la UCD. Contiene
305 utilitarios como: snmpwalk, snmptest y otros.
307 %description utils -l pl
308 Ró¿nego rodzaju narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u
311 %description utils -l pt_BR
312 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
313 como: snmpwalk, snmptest e outros.
315 %description utils -l ru
316 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
317 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ net-snmp.
319 %description utils -l uk
320 ðÁËÅÔ ucd-snmp-utils ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
321 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ net-snmp.
323 %package -n perl-SNMP
324 Summary: SNMP and NetSNMP::* Perl modules
325 Summary(pl): Modu³y Perla SNMP oraz NetSNMP::*
326 Group: Development/Languages/Perl
327 Requires: %{name}-libs = %{version}
329 %description -n perl-SNMP
330 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
332 %description -n perl-SNMP -l pl
333 Modu³y Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
336 Summary: Perl utilities for network management using SNMP
337 Summary(pl): Perlowe narzêdzia u¿ywaj±ce protoko³u SNMP
338 Group: Applications/System
339 Requires: perl-SNMP = %{version}
340 Obsoletes: cmu-snmp-utils
341 Obsoletes: ucd-snmp-utils-perl
343 %description utils-perl
344 This package contains various Perl utilities for managing your network
345 using the SNMP protocol.
347 %description utils-perl -l pl
348 Perlowe narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u SNMP.
351 Summary: snmpconf - creating and modifying SNMP configuration files
352 Summary(pl): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
353 Group: Applications/System
354 Requires: %{name} = %{version}
355 Requires: perl-SNMP = %{version}
357 %description snmpconf
358 snmpconf is a simple Perl script that walks you through setting up a
359 configuration file step by step. It should be fairly straight forward
362 %description snmpconf -l pl
363 snmpconf to prosty skrypt Perla pozwalaj±cy na tworzenie pliku
364 konfiguracyjnego krok po kroku. Powinien byæ w miarê prosty w u¿yciu.
367 Summary: MIB browser in TK
368 Summary(pl): Przegl±darka MIB-ów w TK
369 Group: Applications/System
370 Requires: perl-SNMP = %{version}
376 %description tkmib -l pl
377 Przegl±darka MIB-ów w TK.
398 --with-logfile="%{logfile}" \
399 --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
400 --with-ldflags="%{rpmldflags}" \
401 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
402 --with-sys-location="Unknown" \
403 --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
404 agentx target misc/ipfwacc tunnel" \
407 --disable-debugging \
408 --with-persistent-directory="/var/lib/net-snmp" \
411 --with-sys-contact="root@localhost" \
412 --enable-ucd-snmp-compatibility \
414 --with-default-snmp-version=3 \
420 sed -e "s@-L/usr/lib@-L${TDIR}/snmplib/.libs -L${TDIR}/agent/.libs -L${TDIR}/agent/helpers/.libs@" \
421 ../net-snmp-config > net-snmp-config
422 chmod +x net-snmp-config
425 %{__perl} Makefile.PL \
427 OPTIMIZE="%{rpmcflags} -I`pwd`/../include" \
429 # avoid rpaths generated by MakeMaker
430 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
433 LDFLAGS="%{rpmldflags}"
436 rm -rf $RPM_BUILD_ROOT
437 install -d $RPM_BUILD_ROOT{/etc/{snmp,rc.d/init.d,sysconfig},/var/log}
440 INSTALL_PREFIX=$RPM_BUILD_ROOT
442 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
443 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
444 :> $RPM_BUILD_ROOT%{logfile}
446 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
447 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
448 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
450 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
451 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
452 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
454 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
455 # $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
459 DESTDIR=$RPM_BUILD_ROOT
460 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
461 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
464 rm -rf $RPM_BUILD_ROOT
467 /sbin/chkconfig --add snmpd
468 if [ -f /var/lock/subsys/snmpd ]; then
469 /etc/rc.d/init.d/snmpd restart >&2
471 echo "Run \"/etc/rc.d/init.d/snmpd start\" to start snmpd daemon." >&2
477 if [ "$1" = "0" ]; then
478 if [ -f /var/lock/subsys/snmpd ]; then
479 /etc/rc.d/init.d/snmpd stop >&2
481 /sbin/chkconfig --del snmpd
484 %post libs -p /sbin/ldconfig
485 %postun libs -p /sbin/ldconfig
487 %post compat-libs -p /sbin/ldconfig
488 %postun compat-libs -p /sbin/ldconfig
491 /sbin/chkconfig --add snmptrapd
492 if [ -f /var/lock/subsys/snmptrapd ]; then
493 /etc/rc.d/init.d/snmptrapd restart >&2
495 echo "Run \"/etc/rc.d/init.d/snmptrapd start\" to start snmp trap daemon." >&2
501 if [ "$1" = "0" ]; then
502 if [ -f /var/lock/subsys/snmptrapd ]; then
503 /etc/rc.d/init.d/snmptrapd stop >&2
505 /sbin/chkconfig --del snmptrapd
509 %defattr(644,root,root,755)
511 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
512 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
514 %attr(754,root,root) /etc/rc.d/init.d/snmpd
515 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmpd
517 %dir %{_sysconfdir}/snmp
518 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.conf
519 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.local.conf
521 %attr(755,root,root) %{_sbindir}/snmpd
523 %{_mandir}/man5/snmpd.conf.5*
524 %{_mandir}/man5/variables.5*
525 %{_mandir}/man8/snmpd.8*
527 %attr(640,root,root) %ghost %{logfile}
530 %defattr(644,root,root,755)
531 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
534 %defattr(644,root,root,755)
535 %attr(755,root,root) %{_bindir}/mib2c
536 %attr(755,root,root) %{_bindir}/net-snmp-config
537 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
538 %{_libdir}/libnet*.la
539 %{_includedir}/net-snmp
540 %{_datadir}/snmp/mib2c*
541 %{_mandir}/man1/mib2c.1*
545 %defattr(644,root,root,755)
549 %defattr(644,root,root,755)
550 %attr(755,root,root) %{_libdir}/libsnmp.so.*.*
553 %defattr(644,root,root,755)
554 %attr(755,root,root) %{_libdir}/libsnmp.so
555 %{_libdir}/libsnmp.la
556 %{_includedir}/ucd-snmp
559 %defattr(644,root,root,755)
563 %defattr(644,root,root,755)
564 %dir %{_datadir}/snmp
565 %{_datadir}/snmp/mibs
568 %defattr(644,root,root,755)
569 %attr(755,root,root) %{_sbindir}/snmptrapd
570 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
571 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmptrapd
572 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmptrapd.conf
573 %{_mandir}/man5/snmptrapd.conf.5*
574 %{_mandir}/man8/snmptrapd.8*
577 %defattr(644,root,root,755)
578 %attr(755,root,root) %{_bindir}/encode_keychange
579 %attr(755,root,root) %{_bindir}/snmpbulkget
580 %attr(755,root,root) %{_bindir}/snmpbulkwalk
581 %attr(755,root,root) %{_bindir}/snmpdelta
582 %attr(755,root,root) %{_bindir}/snmpdf
583 %attr(755,root,root) %{_bindir}/snmpget
584 %attr(755,root,root) %{_bindir}/snmpgetnext
585 %attr(755,root,root) %{_bindir}/snmpinform
586 %attr(755,root,root) %{_bindir}/snmpnetstat
587 %attr(755,root,root) %{_bindir}/snmpset
588 %attr(755,root,root) %{_bindir}/snmpstatus
589 %attr(755,root,root) %{_bindir}/snmptable
590 %attr(755,root,root) %{_bindir}/snmptest
591 %attr(755,root,root) %{_bindir}/snmptranslate
592 %attr(755,root,root) %{_bindir}/snmptrap
593 %attr(755,root,root) %{_bindir}/snmpusm
594 %attr(755,root,root) %{_bindir}/snmpvacm
595 %attr(755,root,root) %{_bindir}/snmpwalk
597 %{_mandir}/man1/snmpbulkget.1*
598 %{_mandir}/man1/snmpbulkwalk.1*
599 %{_mandir}/man1/snmpcmd.1*
600 %{_mandir}/man1/snmpdelta.1*
601 %{_mandir}/man1/snmpdf.1*
602 %{_mandir}/man1/snmpget.1*
603 %{_mandir}/man1/snmpgetnext.1*
604 %{_mandir}/man1/snmpinform.1*
605 %{_mandir}/man1/snmpnetstat.1*
606 %{_mandir}/man1/snmpset.1*
607 %{_mandir}/man1/snmpstatus.1*
608 %{_mandir}/man1/snmptable.1*
609 %{_mandir}/man1/snmptest.1*
610 %{_mandir}/man1/snmptranslate.1*
611 %{_mandir}/man1/snmptrap.1*
612 %{_mandir}/man1/snmpusm.1*
613 %{_mandir}/man1/snmpvacm.1*
614 %{_mandir}/man1/snmpwalk.1*
615 %{_mandir}/man5/snmp.conf.5*
616 %{_mandir}/man5/snmp_config.5*
619 %defattr(644,root,root,755)
620 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
621 %{perl_vendorarch}/SNMP.pm
622 %{perl_vendorarch}/NetSNMP
623 %dir %{perl_vendorarch}/auto/SNMP
624 %{perl_vendorarch}/auto/SNMP/autosplit.ix
625 %{perl_vendorarch}/auto/SNMP/SNMP.bs
626 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
627 %dir %{perl_vendorarch}/auto/NetSNMP
628 %dir %{perl_vendorarch}/auto/NetSNMP/*
629 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
630 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
631 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
632 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
633 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
634 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
635 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
636 %{_mandir}/man3/NetSNMP::*.3*
637 %{_mandir}/man3/SNMP.3*
638 %{_examplesdir}/perl-SNMP-%{version}
641 %defattr(644,root,root,755)
642 %attr(755,root,root) %{_bindir}/fixproc
643 %attr(755,root,root) %{_bindir}/snmpcheck
644 %attr(755,root,root) %{_bindir}/traptoemail
647 %defattr(644,root,root,755)
648 %attr(755,root,root) %{_bindir}/snmpconf
649 %{_mandir}/man1/snmpconf.1*
650 %{_datadir}/snmp/snmpconf-data
653 %defattr(644,root,root,755)
654 %attr(755,root,root) %{_bindir}/tkmib