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: elfutils-devel
48 BuildRequires: libtool >= 1.4
49 BuildRequires: libwrap-devel
50 BuildRequires: openssl-devel >= 0.9.7
51 %{!?_without_autodeps:BuildRequires: perl-Term-ReadKey}
52 BuildRequires: perl-devel >= 5.6.1
53 BuildRequires: rpm-devel >= 4.0
54 BuildRequires: rpm-perlprov >= 3.0.3-16
55 PreReq: rc-scripts >= 0.2.0
56 PreReq: %{name}-libs = %{version}
57 Requires(post,preun): /sbin/chkconfig
58 Requires: /usr/bin/setsid
60 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
65 %define logfile /var/log/snmpd.log
68 SNMP (Simple Network Management Protocol) is a protocol used for
69 network management (hence the name). The net-snmp project includes
70 various SNMP tools: an extensible agent, an SNMP library, tools for
71 requesting or setting information from SNMP agents, tools for
72 generating and handling SNMP traps, a version of the netstat command
73 which uses SNMP, and a Tk/Perl mib browser. This package contains the
74 snmpd daemon, documentation, etc.
77 Este paquete se deriva de la implementación del Protocolo Simple de
78 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
79 Útil para administrar redes y hacer contabilidad.
82 SNMP (Simple Network Management Protocol) jest protoko³ej u¿ywanym do
83 zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
84 agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
85 informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
86 pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
87 w Tk/Perl, deamona, dokumentacjê itp.
90 Este pacote é derivado da implementação do Protocolo Simples de
91 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
92 Mellon. Útil para gerenciar redes e fazer contabilidade.
95 SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
96 ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ net-snmp ×ËÌÀÞÁÅÔ
97 ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
98 ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
99 ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
100 ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
101 ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
104 SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
105 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ net-snmp
106 ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, ¦Â̦ÏÔÅËÁ
107 SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁæ§ ×¦Ä NMP-ÁÇÅÎÔ¦×,
108 ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁæ§ ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒÓ¦Ñ ËÏÍÁÎÄÉ netstat,
109 ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ
110 ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
113 Summary: NET SNMP libraries
114 Summary(pl): Biblioteki SNMP
116 Obsoletes: ucd-snmp-libs
117 Requires: %{name}-mibs = %{version}
122 %description libs -l pl
126 Summary: The development environment for the net-snmp project
127 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
128 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek net-snmp
129 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
130 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
131 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
132 Group: Development/Libraries
133 Requires: %{name}-libs = %{version}
134 Requires: elfutils-devel
135 Requires: openssl-devel >= 0.9.7
136 Obsoletes: ucd-snmp-devel
139 The ucd-snmp-devel package contains the development libraries and
140 header files for use with the net-snmp project's network management
143 %description devel -l es
144 Estas son las bibliotecas y archivos de inclusión para desarrollo con
145 el SNMP de la UCD. Con este paquete es posible la creación de
146 programas para uso en la gestión de redes.
148 %description devel -l pl
149 Pakiet zawiera pliki nag³ówkowe i bilioteki potrzebne do rozwoju
150 aplikacji u¿ywaj±cych protoko³u SNMP.
152 %description devel -l pt_BR
153 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
154 com o SNMP da UCD. Com este pacote é possível a criação de programas
155 para uso no gerenciamento de redes.
157 %description devel -l ru
158 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
159 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ net-snmp.
161 %description devel -l uk
162 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
163 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ net-snmp.
166 Summary: Static net-snmp libraries
167 Summary(pl): Statyczne biblioteki net-snmp
168 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
169 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ net-snmp
170 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ net-snmp
171 Group: Development/Libraries
172 Requires: %{name}-devel = %{version}
173 Obsoletes: ucd-snmp-static
176 Static net-snmp libraries.
178 %description static -l pl
179 Statyczne biblioteki net-snmp.
181 %description static -l pt_BR
182 Bibliotecas estáticas para desenvolvimento com net-snmp.
185 Summary: UCD SNMP libraries
186 Summary(pl): Biblioteki UCD SNMP
188 Obsoletes: ucd-snmp-libs
189 Requires: %{name}-mibs = %{version}
191 %description compat-libs
194 %description compat-libs -l pl
197 %package compat-devel
198 Summary: The development environment for the UCD-SNMP project
199 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
200 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek UCD-SNMP
201 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
202 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
203 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
204 Group: Development/Libraries
205 Requires: %{name}-compat-libs = %{version}
206 Requires: openssl-devel >= 0.9.7
207 Obsoletes: cmu-snmp-devel
208 Obsoletes: ucd-snmp-devel
210 %description compat-devel
211 The ucd-snmp-devel package contains the development libraries and
212 header files for use with the UCD-SNMP project's network management
215 %description compat-devel -l es
216 Estas son las bibliotecas y archivos de inclusión para desarrollo con
217 el SNMP de la UCD. Con este paquete es posible la creación de
218 programas para uso en la gestión de redes.
220 %description compat-devel -l pl
221 Pakiet zawiera pliki nag³ówkowe i bilioteki potrzebne do rozwoju
222 aplikacji u¿ywaj±cych protoko³u SNMP.
224 %description compat-devel -l pt_BR
225 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
226 com o SNMP da UCD. Com este pacote é possível a criação de programas
227 para uso no gerenciamento de redes.
229 %description compat-devel -l ru
230 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
231 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
233 %description compat-devel -l uk
234 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
235 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
237 %package compat-static
238 Summary: Static UCD-SNMP libraries
239 Summary(pl): Statyczne biblioteki UCD-SNMP
240 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
241 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
242 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
243 Group: Development/Libraries
244 Requires: %{name}-compat-devel = %{version}
245 Obsoletes: ucd-snmp-static
247 %description compat-static
248 Static UCD-SNMP libraries.
250 %description compat-static -l pl
251 Statyczne biblioteki UCD-SNMP.
253 %description compat-static -l pt_BR
254 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
257 Summary: MIB database
258 Summary(pl): Baza danych MIB
259 Group: Applications/System
264 %description mibs -l pl
268 Summary: SNMP trap daemon
269 Summary(pl): Demon obs³uguj±cy pu³apki SNMP
270 Group: Applications/System
271 PreReq: %{name} = %{version}
272 PreReq: rc-scripts >= 0.2.0
273 Requires(post,preun): /sbin/chkconfig
274 Obsoletes: cmu-snmp-utils
275 Obsoletes: ucd-snmp-snmptrapd
277 %description snmptrapd
278 The ucd-snmp-snmptrapd package contains snmp trap daemon.
280 %description snmptrapd -l pl
281 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
284 Summary: Network management utilities using SNMP, from the NET-SNMP project
285 Summary(es): Utilitarios del SNMP de la UCD
286 Summary(pl): Narzêdzia u¿ywaj±ce protoko³u SNMP
287 Summary(pt_BR): Utilitários do SNMP da UCD
288 Summary(ru): õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
289 Summary(uk): õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
290 Group: Applications/System
291 Requires: %{name}-libs = %{version}
292 Obsoletes: cmu-snmp-utils
293 Obsoletes: ucd-snmp-utils
296 This package contains various utilities for managing your network
297 using the SNMP protocol.
299 %description utils -l es
300 Varios utilitarios para uso con el SNMP de la UCD. Contiene
301 utilitarios como: snmpwalk, snmptest y otros.
303 %description utils -l pl
304 Ró¿nego rodzaju narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u
307 %description utils -l pt_BR
308 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
309 como: snmpwalk, snmptest e outros.
311 %description utils -l ru
312 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
313 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ net-snmp.
315 %description utils -l uk
316 ðÁËÅÔ ucd-snmp-utils ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
317 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ net-snmp.
319 %package -n perl-SNMP
320 Summary: SNMP and NetSNMP::* Perl modules
321 Summary(pl): Modu³y Perla SNMP oraz NetSNMP::*
322 Group: Development/Languages/Perl
323 Requires: %{name}-libs = %{version}
325 %description -n perl-SNMP
326 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
328 %description -n perl-SNMP -l pl
329 Modu³y Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
332 Summary: Perl utilities for network management using SNMP
333 Summary(pl): Perlowe narzêdzia u¿ywaj±ce protoko³u SNMP
334 Group: Applications/System
335 Requires: perl-SNMP = %{version}
336 Obsoletes: cmu-snmp-utils
337 Obsoletes: ucd-snmp-utils-perl
339 %description utils-perl
340 This package contains various Perl utilities for managing your network
341 using the SNMP protocol.
343 %description utils-perl -l pl
344 Perlowe narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u SNMP.
347 Summary: snmpconf - creating and modifying SNMP configuration files
348 Summary(pl): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
349 Group: Applications/System
350 Requires: %{name} = %{version}
351 Requires: perl-SNMP = %{version}
353 %description snmpconf
354 snmpconf is a simple Perl script that walks you through setting up a
355 configuration file step by step. It should be fairly straight forward
358 %description snmpconf -l pl
359 snmpconf to prosty skrypt Perla pozwalaj±cy na tworzenie pliku
360 konfiguracyjnego krok po kroku. Powinien byæ w miarê prosty w u¿yciu.
363 Summary: MIB browser in TK
364 Summary(pl): Przegl±darka MIB-ów w TK
365 Group: Applications/System
366 Requires: perl-SNMP = %{version}
372 %description tkmib -l pl
373 Przegl±darka MIB-ów w TK.
394 --with-logfile="%{logfile}" \
395 --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
396 --with-ldflags="%{rpmldflags}" \
397 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
398 --with-sys-location="Unknown" \
399 --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
400 agentx target misc/ipfwacc tunnel" \
401 --with-libwrap=%{_prefix} \
402 --with-openssl=%{_prefix} \
403 --disable-debugging \
404 --with-persistent-directory="/var/lib/net-snmp" \
407 --with-sys-contact="root@localhost" \
408 --enable-ucd-snmp-compatibility \
410 --with-default-snmp-version=3 \
416 sed -e "s@-L/usr/lib@-L${TDIR}/snmplib/.libs -L${TDIR}/agent/.libs -L${TDIR}/agent/helpers/.libs@" \
417 ../net-snmp-config > net-snmp-config
418 chmod +x net-snmp-config
421 %{__perl} Makefile.PL \
423 OPTIMIZE="%{rpmcflags} -I`pwd`/../include" \
425 # avoid rpaths generated by MakeMaker
426 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
431 rm -rf $RPM_BUILD_ROOT
432 install -d $RPM_BUILD_ROOT/{etc/{snmp,rc.d/init.d,sysconfig},/var/log}
434 %{__make} install DESTDIR=$RPM_BUILD_ROOT
436 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
437 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
438 :> $RPM_BUILD_ROOT%{logfile}
440 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
441 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
442 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
444 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
445 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
446 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
448 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
449 # $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
453 DESTDIR=$RPM_BUILD_ROOT
454 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
455 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
458 rm -rf $RPM_BUILD_ROOT
461 /sbin/chkconfig --add snmpd
462 if [ -f /var/lock/subsys/snmpd ]; then
463 /etc/rc.d/init.d/snmpd restart >&2
465 echo "Run \"/etc/rc.d/init.d/snmpd start\" to start snmpd daemon." >&2
471 if [ "$1" = "0" ]; then
472 if [ -f /var/lock/subsys/snmpd ]; then
473 /etc/rc.d/init.d/snmpd stop >&2
475 /sbin/chkconfig --del snmpd
478 %post libs -p /sbin/ldconfig
479 %postun libs -p /sbin/ldconfig
481 %post compat-libs -p /sbin/ldconfig
482 %postun compat-libs -p /sbin/ldconfig
485 /sbin/chkconfig --add snmptrapd
486 if [ -f /var/lock/subsys/snmptrapd ]; then
487 /etc/rc.d/init.d/snmptrapd restart >&2
489 echo "Run \"/etc/rc.d/init.d/snmptrapd start\" to start snmp trap daemon." >&2
495 if [ "$1" = "0" ]; then
496 if [ -f /var/lock/subsys/snmptrapd ]; then
497 /etc/rc.d/init.d/snmptrapd stop >&2
499 /sbin/chkconfig --del snmptrapd
503 %defattr(644,root,root,755)
505 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
506 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
508 %attr(754,root,root) /etc/rc.d/init.d/snmpd
509 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmpd
511 %dir %{_sysconfdir}/snmp
512 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.conf
513 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.local.conf
515 %attr(755,root,root) %{_sbindir}/snmpd
517 %{_mandir}/man5/snmpd.conf.5*
518 %{_mandir}/man5/variables.5*
519 %{_mandir}/man8/snmpd.8*
521 %attr(640,root,root) %ghost %{logfile}
524 %defattr(644,root,root,755)
525 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
528 %defattr(644,root,root,755)
529 %attr(755,root,root) %{_bindir}/mib2c
530 %attr(755,root,root) %{_bindir}/net-snmp-config
531 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
532 %{_libdir}/libnet*.la
533 %{_includedir}/net-snmp
534 %{_datadir}/snmp/mib2c*
535 %{_mandir}/man1/mib2c.1*
539 %defattr(644,root,root,755)
543 %defattr(644,root,root,755)
544 %attr(755,root,root) %{_libdir}/libsnmp.so.*.*
547 %defattr(644,root,root,755)
548 %attr(755,root,root) %{_libdir}/libsnmp.so
549 %{_libdir}/libsnmp.la
550 %{_includedir}/ucd-snmp
553 %defattr(644,root,root,755)
557 %defattr(644,root,root,755)
558 %dir %{_datadir}/snmp
559 %{_datadir}/snmp/mibs
562 %defattr(644,root,root,755)
563 %attr(755,root,root) %{_sbindir}/snmptrapd
564 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
565 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmptrapd
566 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmptrapd.conf
567 %{_mandir}/man5/snmptrapd.conf.5*
568 %{_mandir}/man8/snmptrapd.8*
571 %defattr(644,root,root,755)
572 %attr(755,root,root) %{_bindir}/encode_keychange
573 %attr(755,root,root) %{_bindir}/snmpbulkget
574 %attr(755,root,root) %{_bindir}/snmpbulkwalk
575 %attr(755,root,root) %{_bindir}/snmpdelta
576 %attr(755,root,root) %{_bindir}/snmpget
577 %attr(755,root,root) %{_bindir}/snmpgetnext
578 %attr(755,root,root) %{_bindir}/snmpnetstat
579 %attr(755,root,root) %{_bindir}/snmpset
580 %attr(755,root,root) %{_bindir}/snmpstatus
581 %attr(755,root,root) %{_bindir}/snmptable
582 %attr(755,root,root) %{_bindir}/snmptest
583 %attr(755,root,root) %{_bindir}/snmptranslate
584 %attr(755,root,root) %{_bindir}/snmptrap
585 %attr(755,root,root) %{_bindir}/snmpusm
586 %attr(755,root,root) %{_bindir}/snmpwalk
587 %attr(755,root,root) %{_bindir}/snmpdf
588 %attr(755,root,root) %{_bindir}/snmpinform
589 %attr(755,root,root) %{_bindir}/snmpvacm
591 #%%{_datadir}/snmp/snmpconf/snmp.conf
593 %{_mandir}/man1/snmpbulkget.1*
594 %{_mandir}/man1/snmpbulkwalk.1*
595 %{_mandir}/man1/snmpcmd.1*
596 %{_mandir}/man1/snmpdelta.1*
597 %{_mandir}/man1/snmpget.1*
598 %{_mandir}/man1/snmpgetnext.1*
599 %{_mandir}/man1/snmpnetstat.1*
600 %{_mandir}/man1/snmpset.1*
601 %{_mandir}/man1/snmpstatus.1*
602 %{_mandir}/man1/snmptable.1*
603 %{_mandir}/man1/snmptest.1*
604 %{_mandir}/man1/snmptranslate.1*
605 %{_mandir}/man1/snmptrap.1*
606 %{_mandir}/man1/snmpusm.1*
607 %{_mandir}/man1/snmpwalk.1*
608 %{_mandir}/man1/snmpdf.1*
609 %{_mandir}/man1/snmpinform.1*
610 %{_mandir}/man5/snmp.conf.5*
611 %{_mandir}/man5/snmp_config.5*
614 %defattr(644,root,root,755)
615 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
616 %{perl_vendorarch}/SNMP.pm
617 %{perl_vendorarch}/NetSNMP
618 %dir %{perl_vendorarch}/auto/SNMP
619 %{perl_vendorarch}/auto/SNMP/autosplit.ix
620 %{perl_vendorarch}/auto/SNMP/SNMP.bs
621 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
622 %dir %{perl_vendorarch}/auto/NetSNMP
623 %dir %{perl_vendorarch}/auto/NetSNMP/*
624 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
625 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
626 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
627 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
628 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
629 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
630 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
631 %{_mandir}/man3/NetSNMP::*.3*
632 %{_mandir}/man3/SNMP.3*
633 %{_examplesdir}/perl-SNMP-%{version}
636 %defattr(644,root,root,755)
637 %attr(755,root,root) %{_bindir}/snmpcheck
638 %attr(755,root,root) %{_bindir}/traptoemail
641 %attr(755,root,root) %{_bindir}/snmpconf
642 %{_mandir}/man1/snmpconf.1*
643 %{_datadir}/snmp/snmpconf-data
646 %defattr(644,root,root,755)
647 %attr(0755,root,root) %{_bindir}/tkmib