2 # - make noarch -n mibs-net-snmp package (need separate .spec then)
3 # - FHS: #define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
4 # - php-snmp (and likely other bindings) use only %{_libdir}/libnetsnmp.so.*, move other libs back to main (daemon) package?
7 %bcond_without autodeps # don't BR packages only for deps resolving
8 %bcond_without rpm # don't include RPM support
9 %bcond_without kerberos5 # don't include kerberos support
10 %bcond_without lm_sensors # don't include sensors support
11 %bcond_without perl # don't include Perl modules and utils
12 %bcond_without python # don't include Python modules
13 %bcond_without static_libs # don't build static library
15 %ifnarch %{ix86} %{x8664}
16 %undefine with_lm_sensors
20 %include /usr/lib/rpm/macros.perl
21 Summary: A collection of SNMP protocol tools
22 Summary(es.UTF-8): Agente SNMP de la UCD
23 Summary(pl.UTF-8): Kolekcja narzędzi do obsługi protokołu SNMP
24 Summary(pt_BR.UTF-8): Agente SNMP da UCD
25 Summary(ru.UTF-8): Набор утилит для протокола SNMP от UC-Davis
26 Summary(uk.UTF-8): Набір утиліт для протоколу SNMP від UC-Davis
31 Group: Networking/Daemons
32 Source0: http://downloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
33 # Source0-md5: 1038e960d6d616c64c0979180daf0e19
34 Source1: %{name}d.init
35 Source2: %{name}d.conf
36 Source3: %{name}d.sysconfig
37 Source4: %{name}trapd.init
38 Source5: %{name}trapd.conf
39 Source6: %{name}trapd.sysconfig
40 Source7: ucd-ipchains.tar.gz
41 # Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
42 Source8: snmpd.upstart
43 Patch0: %{name}-acfix.patch
44 Patch1: %{name}-rpm-implicit-libs.patch
45 Patch2: %{name}-config-noflags.patch
46 Patch3: %{name}-manpage.patch
47 Patch4: %{name}-link.patch
48 Patch5: %{name}-llinterfaces.patch
49 Patch6: %{name}-kernel_headers.patch
50 Patch7: %{name}-rpmpath.patch
51 Patch8: %{name}-snmpksm.patch
52 Patch9: %{name}-python.patch
53 Patch10: %{name}-lvalue.patch
54 Patch11: %{name}-defaultconfig.patch
55 Patch12: %{name}-use-rpm-hrmib.patch
56 Patch13: %{name}-TCP_STATS_CACHE_TIMEOUT.patch
57 Patch14: %{name}-libnl.patch
58 URL: http://www.net-snmp.org/
59 BuildRequires: autoconf >= 2.63
60 BuildRequires: automake
61 BuildRequires: elfutils-devel
62 %{?with_kerberos5:BuildRequires: heimdal-devel}
63 BuildRequires: libnl-devel >= 1:3.0
64 BuildRequires: libssh2-devel
65 BuildRequires: libtool >= 1.4
66 BuildRequires: libwrap-devel
67 %{?with_lm_sensors:BuildRequires: lm_sensors-devel >= 3.0.1}
68 BuildRequires: openssl-devel >= 0.9.7d
69 BuildRequires: pciutils-devel
70 %{?with_autodeps:BuildRequires: perl-Term-ReadKey}
71 BuildRequires: perl-devel >= 1:5.8.0
73 BuildRequires: python-devel
74 BuildRequires: python-modules
75 BuildRequires: python-setuptools
76 BuildRequires: rpm-pythonprov
80 BuildRequires: rpm-perlprov >= 3.0.3-16
82 BuildRequires: rpmbuild(macros) >= 1.527
83 Requires(post,preun): /sbin/chkconfig
84 Requires: %{name}-libs = %{version}-%{release}
85 Requires: /usr/bin/setsid
86 Requires: mibs-%{name} = %{version}-%{release}
87 Requires: rc-scripts >= 0.4.3.0
92 Conflicts: rpm < 4.4.9-43.11
93 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
95 # linking libraries is ugly in this package
96 %define no_install_post_check_so 1
98 %define logfile /var/log/snmpd.log
101 SNMP (Simple Network Management Protocol) is a protocol used for
102 network management (hence the name). The net-snmp project includes
103 various SNMP tools: an extensible agent, an SNMP library, tools for
104 requesting or setting information from SNMP agents, tools for
105 generating and handling SNMP traps, a version of the netstat command
106 which uses SNMP, and a Tk/Perl mib browser. This package contains the
107 snmpd daemon, documentation, etc.
109 %description -l es.UTF-8
110 Este paquete se deriva de la implementación del Protocolo Simple de
111 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
112 Útil para administrar redes y hacer contabilidad.
114 %description -l pl.UTF-8
115 SNMP (Simple Network Management Protocol) jest protokołem używanym do
116 zarządzania sieciami. Pakiet zawiera narzędzia: rozbudowywalnego
117 agenta, bibliotekę SNMP, narzędzia do odpytywania oraz ustawiania
118 informacji poprzez agentów SNMP, narzędzia do generowania i obsługi
119 pułapek SNMP, wersję komendy netstat używającą SNMP, przeglądarkę mib
120 w Tk/Perl, demona, dokumentację itp.
122 %description -l pt_BR.UTF-8
123 Este pacote é derivado da implementação do Protocolo Simples de
124 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
125 Mellon. Útil para gerenciar redes e fazer contabilidade.
127 %description -l ru.UTF-8
128 SNMP (Simple Network Management Protocol) - это протокол, используемый
129 для управления сетью (отсюда и название). Проект net-snmp включает
130 разнообразные SNMP-утилиты: расширяемый агент, библиотека SNMP,
131 утилиты для запроса или установки информации от SNMP-агентов, утилиты
132 для генерации и обработки SNMP-трапов, версия команды netstat,
133 использующей SNMP, и mib-браузер на Tk/Perl. Этот пакет содержит
134 демоны snmpd и snmptrapd, документацию и т.д.
136 %description -l uk.UTF-8
137 SNMP (Simple Network Management Protocol) - це протокол, який
138 використовують для керування мережею (звідси і назва). Проект net-snmp
139 містить різноманітні SNMP-утиліти: розширюваний агент, бібліотека
140 SNMP, утиліти для запросу та встановлення інформації від NMP-агентів,
141 утиліти для генерації та обробки SNMP-трапів, версія команди netstat,
142 яка використовує SNMP, та mib-браузер на Tk/Perl. Цей пакет містить
143 демони snmpd та snmptrapd, документацію і т.і.
146 Summary: NET SNMP libraries
147 Summary(pl.UTF-8): Biblioteki SNMP
149 Suggests: mibs-%{name}
150 Obsoletes: net-snmp-compat-libs
151 Obsoletes: ucd-snmp-libs
156 %description libs -l pl.UTF-8
160 Summary: The development environment for the net-snmp project
161 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
162 Summary(pl.UTF-8): Pliki dla programistów używających bibliotek net-snmp
163 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
164 Summary(ru.UTF-8): Среда разработки для проекта UCD-SNMP
165 Summary(uk.UTF-8): Середовище розробки для проекту UCD-SNMP
166 Group: Development/Libraries
167 Requires: %{name}-libs = %{version}-%{release}
168 Requires: elfutils-devel
169 %{?with_kerberos5:Requires: heimdal-devel}
170 Requires: libnl-devel >= 1:1.1
171 Requires: libwrap-devel
172 %{?with_lm_sensors:Requires: lm_sensors-devel >= 3.0.1}
173 Requires: openssl-devel >= 0.9.7c
174 Obsoletes: ucd-snmp-devel
177 The ucd-snmp-devel package contains the development libraries and
178 header files for use with the net-snmp project's network management
181 %description devel -l es.UTF-8
182 Estas son las bibliotecas y archivos de inclusión para desarrollo con
183 el SNMP de la UCD. Con este paquete es posible la creación de
184 programas para uso en la gestión de redes.
186 %description devel -l pl.UTF-8
187 Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
188 aplikacji używających protokołu SNMP.
190 %description devel -l pt_BR.UTF-8
191 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
192 com o SNMP da UCD. Com este pacote é possível a criação de programas
193 para uso no gerenciamento de redes.
195 %description devel -l ru.UTF-8
196 Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
197 использования с утилитами управления сетью проекта net-snmp.
199 %description devel -l uk.UTF-8
200 Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
201 використання з утилітами керування мережею проекту net-snmp.
204 Summary: Static net-snmp libraries
205 Summary(pl.UTF-8): Statyczne biblioteki net-snmp
206 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ucd-snmp
207 Summary(ru.UTF-8): Статические библиотеки для проекта net-snmp
208 Summary(uk.UTF-8): Статичні бібліотеки для проекту net-snmp
209 Group: Development/Libraries
210 Requires: %{name}-devel = %{version}-%{release}
211 Obsoletes: ucd-snmp-static
214 Static net-snmp libraries.
216 %description static -l pl.UTF-8
217 Statyczne biblioteki net-snmp.
219 %description static -l pt_BR.UTF-8
220 Bibliotecas estáticas para desenvolvimento com net-snmp.
222 %package compat-devel
223 Summary: The development environment for the UCD-SNMP project
224 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
225 Summary(pl.UTF-8): Pliki dla programistów używających bibliotek UCD-SNMP
226 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
227 Summary(ru.UTF-8): Среда разработки для проекта UCD-SNMP
228 Summary(uk.UTF-8): Середовище розробки для проекту UCD-SNMP
229 Group: Development/Libraries
230 Requires: %{name}-devel = %{version}-%{release}
231 Requires: openssl-devel >= 0.9.7d
232 Obsoletes: cmu-snmp-devel
233 Obsoletes: ucd-snmp-devel
235 %description compat-devel
236 The ucd-snmp-devel package contains the development libraries and
237 header files for use with the UCD-SNMP project's network management
240 %description compat-devel -l es.UTF-8
241 Estas son las bibliotecas y archivos de inclusión para desarrollo con
242 el SNMP de la UCD. Con este paquete es posible la creación de
243 programas para uso en la gestión de redes.
245 %description compat-devel -l pl.UTF-8
246 Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
247 aplikacji używających protokołu SNMP.
249 %description compat-devel -l pt_BR.UTF-8
250 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
251 com o SNMP da UCD. Com este pacote é possível a criação de programas
252 para uso no gerenciamento de redes.
254 %description compat-devel -l ru.UTF-8
255 Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
256 использования с утилитами управления сетью проекта UCD-SNMP.
258 %description compat-devel -l uk.UTF-8
259 Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
260 використання з утилітами керування мережею проекту UCD-SNMP.
262 %package compat-static
263 Summary: Static UCD-SNMP libraries
264 Summary(pl.UTF-8): Statyczne biblioteki UCD-SNMP
265 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ucd-snmp
266 Summary(ru.UTF-8): Статические библиотеки для проекта UCD-SNMP
267 Summary(uk.UTF-8): Статичні бібліотеки для проекту UCD-SNMP
268 Group: Development/Libraries
269 Requires: %{name}-compat-devel = %{version}-%{release}
270 Obsoletes: ucd-snmp-static
272 %description compat-static
273 Static UCD-SNMP libraries.
275 %description compat-static -l pl.UTF-8
276 Statyczne biblioteki UCD-SNMP.
278 %description compat-static -l pt_BR.UTF-8
279 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
281 %package -n mibs-net-snmp
282 Summary: Net-SNMP provided MIBs
283 Summary(pl.UTF-8): Baza danych MIB
284 Group: Applications/System
286 Obsoletes: net-snmp-mibs
287 Conflicts: ucd-snmp-libs
289 %description -n mibs-net-snmp
290 Net-SNMP provided MIBs (Management Information Base).
292 %description -n mibs-net-snmp -l pl.UTF-8
296 Summary: SNMP trap daemon
297 Summary(pl.UTF-8): Demon obsługujący pułapki SNMP
298 Group: Applications/System
299 Requires(post,preun): /sbin/chkconfig
300 Requires: %{name} = %{version}-%{release}
301 Requires: rc-scripts >= 0.2.0
302 Obsoletes: cmu-snmp-utils
303 Obsoletes: ucd-snmp-snmptrapd
305 %description snmptrapd
306 The ucd-snmp-snmptrapd package contains snmp trap daemon.
308 %description snmptrapd -l pl.UTF-8
309 Pakiet zawiera demon obsługujący pułapki SNMP.
312 Summary: Network management utilities using SNMP, from the NET-SNMP project
313 Summary(es.UTF-8): Utilitarios del SNMP de la UCD
314 Summary(pl.UTF-8): Narzędzia używające protokołu SNMP
315 Summary(pt_BR.UTF-8): Utilitários do SNMP da UCD
316 Summary(ru.UTF-8): Утилиты управления сетью по SNMP из проекта NET-SNMP
317 Summary(uk.UTF-8): Утиліти керування мережею по SNMP з проекту NET-SNMP
318 Group: Applications/System
319 Requires: %{name}-libs = %{version}-%{release}
320 Suggests: mibs-%{name} = %{version}-%{release}
321 Obsoletes: cmu-snmp-utils
322 Obsoletes: ucd-snmp-utils
325 This package contains various utilities for managing your network
326 using the SNMP protocol.
328 %description utils -l es.UTF-8
329 Varios utilitarios para uso con el SNMP de la UCD. Contiene
330 utilitarios como: snmpwalk, snmptest y otros.
332 %description utils -l pl.UTF-8
333 Różnego rodzaju narzędzia do zarządzania siecią przy użyciu protokołu
336 %description utils -l pt_BR.UTF-8
337 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
338 como: snmpwalk, snmptest e outros.
340 %description utils -l ru.UTF-8
341 Пакет ucd-snmp-utils содержит разнообразные утилиты для использования
342 в проекте управления сетью net-snmp.
344 %description utils -l uk.UTF-8
345 Пакет ucd-snmp-utils містить різноманітні утиліти для використання в
346 проекті керування мережею net-snmp.
348 %package -n perl-SNMP
349 Summary: SNMP and NetSNMP::* Perl modules
350 Summary(pl.UTF-8): Moduły Perla SNMP oraz NetSNMP::*
351 Group: Development/Languages/Perl
352 Requires: %{name}-libs = %{version}-%{release}
353 Conflicts: ucd-snmp-utils-perl
355 %description -n perl-SNMP
356 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
358 %description -n perl-SNMP -l pl.UTF-8
359 Moduły Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
362 Summary: Perl utilities for network management using SNMP
363 Summary(pl.UTF-8): Perlowe narzędzia używające protokołu SNMP
364 Group: Applications/System
365 Requires: perl-SNMP = %{version}-%{release}
366 Obsoletes: cmu-snmp-utils
367 Obsoletes: ucd-snmp-utils-perl
369 %description utils-perl
370 This package contains various Perl utilities for managing your network
371 using the SNMP protocol.
373 %description utils-perl -l pl.UTF-8
374 Perlowe narzędzia do zarządzania siecią przy użyciu protokołu SNMP.
377 Summary: snmpconf - creating and modifying SNMP configuration files
378 Summary(pl.UTF-8): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
379 Group: Applications/System
380 Requires: %{name} = %{version}-%{release}
381 Requires: perl-SNMP = %{version}-%{release}
383 %description snmpconf
384 snmpconf is a simple Perl script that walks you through setting up a
385 configuration file step by step. It should be fairly straight forward
388 %description snmpconf -l pl.UTF-8
389 snmpconf to prosty skrypt Perla pozwalający na tworzenie pliku
390 konfiguracyjnego krok po kroku. Powinien być w miarę prosty w użyciu.
393 Summary: MIB browser in Tk
394 Summary(pl.UTF-8): Przeglądarka MIB-ów w Tk
395 Group: Applications/System
396 Requires: perl-SNMP = %{version}-%{release}
402 %description tkmib -l pl.UTF-8
403 Przeglądarka MIB-ów w Tk.
405 %package -n python-netsnmp
406 Summary: Python netsnmp extension module
407 Summary(pl.UTF-8): Moduł rozszerzenia netsnmp dla Pythona
408 Group: Libraries/Python
409 Requires: %{name}-libs = %{version}-%{release}
411 %description -n python-netsnmp
412 The 'netsnmp' Python extension module provides a full featured,
413 tri-lingual SNMP (SNMPv3, SNMPv2c, SNMPv1) client API.
415 %description -n python-netsnmp -l pl.UTF-8
416 Moduł rozszerzenia netsnmp dla Pythona udostępnia pełne API klienckie
417 SNMP dla trzech wersji tego protokołu (SNMPv3, SNMPv2c, SNMPv1).
441 cp -f /usr/share/automake/config.sub .
446 disman/event disman/schedule \
452 %if %{with lm_sensors}
453 MIBS="$MIBS ucd-snmp/lmsensorsMib"
456 # ksm must be first in --with-security-modules
457 # usm is always enabled
459 --disable-debugging \
461 %{__disable static_libs static} \
462 --with-cflags="%{rpmcflags} %{rpmcppflags} -I/usr/include/et" \
463 --with-ldflags="%{rpmldflags}" \
465 --with-default-snmp-version=3 \
466 %{__with_without kerberos5 krb5} \
469 --with-logfile=%{logfile} \
473 %{__with_without perl perl-modules} \
474 %{__with_without python python-modules} \
475 --enable-local-smux \
476 --with-mibdirs='$HOME/.snmp/mibs:/usr/share/mibs:%{_datadir}/snmp/mibs' \
477 --with-mib-modules="$MIBS" \
478 --with-security-modules="%{?with_kerberos5:ksm }tsm" \
479 --with-sys-contact="root@localhost" \
480 --with-sys-location="Unknown" \
481 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback Alias DTLSUDP TLSTCP SSH" \
482 --with-persistent-directory="/var/lib/net-snmp" \
483 --enable-ucd-snmp-compatibility \
485 %{!?debug:--disable-debugging} \
486 %{__with_without rpm}
491 %{__perl} Makefile.PL \
492 -NET-SNMP-IN-SOURCE=true \
494 OPTIMIZE="%{rpmcflags} %{rpmcppflags}" \
497 # avoid rpaths generated by MakeMaker
498 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
501 LDFLAGS="%{rpmldflags}"
504 rm -rf $RPM_BUILD_ROOT
505 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,snmp},/var/log,/var/lib/net-snmp,%{_libdir}/snmp/dlmod}
507 %{__make} -j1 install \
508 mibdir=%{_datadir}/mibs \
509 DESTDIR=$RPM_BUILD_ROOT
511 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
512 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
513 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
514 :> $RPM_BUILD_ROOT%{logfile}
516 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
517 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
518 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
520 install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
521 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
522 cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
524 install -d $RPM_BUILD_ROOT/etc/init
525 cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/init/snmpd.conf
528 %{__make} -j1 install \
529 DESTDIR=$RPM_BUILD_ROOT
531 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
532 install -p SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
535 # IP-Filter (non-Linux)
536 %{__rm} $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
538 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Bundle/Makefile.subs.pl
539 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Bundle/NetSNMP/NetSNMP.{bs,so}
540 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
541 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Bundle/NetSNMP/.packlist
543 %if %{with static_libs}
544 # hack: convert DynaLoader.a inside .a file to .o, as strip(1) would otherwise say invalid argument
545 for a in $RPM_BUILD_ROOT%{_libdir}/libnet*.a; do
548 if [ -f DynaLoader.a ]; then
550 ar cr $a DynaLoader.o
552 # remove second file too
557 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsnmp.a
561 %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/tests
562 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/*.py
566 rm -rf $RPM_BUILD_ROOT
571 /sbin/chkconfig --add snmpd
572 %service snmpd restart "snmpd daemon"
575 if [ "$1" = "0" ]; then
577 /sbin/chkconfig --del snmpd
580 %post libs -p /sbin/ldconfig
581 %postun libs -p /sbin/ldconfig
583 %triggerpostun -- ucd-snmp
584 /sbin/chkconfig --add snmpd
589 /sbin/chkconfig --add snmptrapd
590 %service snmptrapd restart "snmp trap daemon"
593 if [ "$1" = "0" ]; then
594 %service snmptrapd stop
595 /sbin/chkconfig --del snmptrapd
598 %triggerpostun snmptrapd -- ucd-snmp-snmptrapd
599 /sbin/chkconfig --add snmptrapd
602 %defattr(644,root,root,755)
603 %doc AGENT.txt CHANGES COPYING ChangeLog EXAMPLE.conf{,.def} FAQ NEWS README{,.agent-mibs,.agentx,.snmpv3,.sql,.thread} TODO local
605 %attr(754,root,root) /etc/rc.d/init.d/snmpd
606 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
607 %config(noreplace) %verify(not md5 mtime size) /etc/init/snmpd.conf
609 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
610 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
612 %attr(755,root,root) %{_sbindir}/snmpd
613 %attr(755,root,root) %{_bindir}/net-snmp-create-v3-user
614 %attr(755,root,root) %{_bindir}/sshtosnmp
616 %dir %{_libdir}/snmp/dlmod
617 %attr(755,root,root) %{_datadir}/snmp/snmp_perl.pl
618 %{_mandir}/man1/net-snmp-create-v3-user.1*
619 %{_mandir}/man5/snmpd.conf.5*
620 %{_mandir}/man5/snmpd.examples.5*
621 %{_mandir}/man5/snmpd.internal.5*
622 %{_mandir}/man5/variables.5*
623 %{_mandir}/man8/snmpd.8*
625 %dir %attr(700,root,root) /var/lib/net-snmp
627 %attr(640,root,root) %ghost %{logfile}
630 %defattr(644,root,root,755)
631 %attr(755,root,root) %{_libdir}/libnetsnmp.so.*.*.*
632 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so.*.*.*
633 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so.*.*.*
634 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so.*.*.*
635 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so.*.*.*
636 %attr(755,root,root) %ghost %{_libdir}/libnetsnmp.so.%{so_version}
637 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpagent.so.%{so_version}
638 %attr(755,root,root) %ghost %{_libdir}/libnetsnmphelpers.so.%{so_version}
639 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpmibs.so.%{so_version}
640 %attr(755,root,root) %ghost %{_libdir}/libnetsnmptrapd.so.%{so_version}
641 %dir %{_sysconfdir}/snmp
642 %dir %{_datadir}/snmp
645 %defattr(644,root,root,755)
646 %attr(755,root,root) %{_bindir}/mib2c
647 %attr(755,root,root) %{_bindir}/mib2c-update
648 %attr(755,root,root) %{_bindir}/net-snmp-config
649 %attr(755,root,root) %{_libdir}/libnetsnmp.so
650 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so
651 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so
652 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so
653 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so
654 %{_libdir}/libnetsnmp.la
655 %{_libdir}/libnetsnmpagent.la
656 %{_libdir}/libnetsnmphelpers.la
657 %{_libdir}/libnetsnmpmibs.la
658 %{_libdir}/libnetsnmptrapd.la
659 %{_includedir}/net-snmp
660 %{_datadir}/snmp/mib2c*
661 %{_mandir}/man1/mib2c.1*
662 %{_mandir}/man1/mib2c-update.1*
663 %{_mandir}/man1/net-snmp-config.1*
664 %{_mandir}/man3/[!NS]*
665 %{_mandir}/man5/mib2c.conf.5*
667 %if %{with static_libs}
669 %defattr(644,root,root,755)
670 %{_libdir}/libnetsnmp.a
671 %{_libdir}/libnetsnmpagent.a
672 %{_libdir}/libnetsnmphelpers.a
673 %{_libdir}/libnetsnmpmibs.a
674 %{_libdir}/libnetsnmptrapd.a
678 %defattr(644,root,root,755)
679 %attr(755,root,root) %{_libdir}/libsnmp.so
680 %{_libdir}/libsnmp.la
681 %{_includedir}/ucd-snmp
683 %if %{with static_libs}
685 %defattr(644,root,root,755)
689 %files -n mibs-net-snmp
690 %defattr(644,root,root,755)
691 %{_datadir}/mibs/*.txt
694 %defattr(644,root,root,755)
695 %attr(755,root,root) %{_sbindir}/snmptrapd
696 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
697 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
698 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
700 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
702 %{_mandir}/man5/snmptrapd.conf.5*
703 %{_mandir}/man8/snmptrapd.8*
706 %defattr(644,root,root,755)
707 %attr(755,root,root) %{_bindir}/agentxtrap
708 %attr(755,root,root) %{_bindir}/encode_keychange
709 %attr(755,root,root) %{_bindir}/snmpbulkget
710 %attr(755,root,root) %{_bindir}/snmpbulkwalk
711 %attr(755,root,root) %{_bindir}/snmpdelta
712 %attr(755,root,root) %{_bindir}/snmpdf
713 %attr(755,root,root) %{_bindir}/snmpget
714 %attr(755,root,root) %{_bindir}/snmpgetnext
715 %attr(755,root,root) %{_bindir}/snmpinform
716 %attr(755,root,root) %{_bindir}/snmpnetstat
717 %attr(755,root,root) %{_bindir}/snmpset
718 %attr(755,root,root) %{_bindir}/snmpstatus
719 %attr(755,root,root) %{_bindir}/snmptable
720 %attr(755,root,root) %{_bindir}/snmptest
721 %attr(755,root,root) %{_bindir}/snmptls
722 %attr(755,root,root) %{_bindir}/snmptranslate
723 %attr(755,root,root) %{_bindir}/snmptrap
724 %attr(755,root,root) %{_bindir}/snmpusm
725 %attr(755,root,root) %{_bindir}/snmpvacm
726 %attr(755,root,root) %{_bindir}/snmpwalk
727 %{_mandir}/man1/agentxtrap.1*
728 %{_mandir}/man1/encode_keychange.1*
729 %{_mandir}/man1/snmpbulkget.1*
730 %{_mandir}/man1/snmpbulkwalk.1*
731 %{_mandir}/man1/snmpcmd.1*
732 %{_mandir}/man1/snmpdelta.1*
733 %{_mandir}/man1/snmpdf.1*
734 %{_mandir}/man1/snmpget.1*
735 %{_mandir}/man1/snmpgetnext.1*
736 %{_mandir}/man1/snmpinform.1*
737 %{_mandir}/man1/snmpnetstat.1*
738 %{_mandir}/man1/snmpset.1*
739 %{_mandir}/man1/snmpstatus.1*
740 %{_mandir}/man1/snmptable.1*
741 %{_mandir}/man1/snmptest.1*
742 %{_mandir}/man1/snmptranslate.1*
743 %{_mandir}/man1/snmptrap.1*
744 %{_mandir}/man1/snmpusm.1*
745 %{_mandir}/man1/snmpvacm.1*
746 %{_mandir}/man1/snmpwalk.1*
747 %{_mandir}/man5/snmp.conf.5*
748 %{_mandir}/man5/snmp_config.5*
750 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
754 %defattr(644,root,root,755)
755 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
756 %{perl_vendorarch}/SNMP.pm
757 %{perl_vendorarch}/NetSNMP
758 %dir %{perl_vendorarch}/auto/SNMP
759 %{perl_vendorarch}/auto/SNMP/autosplit.ix
760 %{perl_vendorarch}/auto/SNMP/SNMP.bs
761 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
762 %dir %{perl_vendorarch}/auto/NetSNMP
763 %dir %{perl_vendorarch}/auto/NetSNMP/*
764 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
765 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
766 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
767 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
768 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
769 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
770 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
771 %{_mandir}/man3/NetSNMP::*.3*
772 %{_mandir}/man3/SNMP.3*
773 %{_examplesdir}/perl-SNMP-%{version}
776 %defattr(644,root,root,755)
777 %attr(755,root,root) %{_bindir}/fixproc
778 %attr(755,root,root) %{_bindir}/net-snmp-cert
779 %attr(755,root,root) %{_bindir}/snmp-bridge-mib
780 %attr(755,root,root) %{_bindir}/snmpcheck
781 %attr(755,root,root) %{_bindir}/traptoemail
782 %{_mandir}/man1/fixproc.1*
783 %{_mandir}/man1/snmp-bridge-mib.1*
784 %{_mandir}/man1/traptoemail.1*
788 %defattr(644,root,root,755)
789 %attr(755,root,root) %{_bindir}/snmpconf
790 %{_mandir}/man1/snmpconf.1*
791 %{_datadir}/snmp/snmpconf-data
795 %defattr(644,root,root,755)
796 %attr(755,root,root) %{_bindir}/tkmib
797 %{_mandir}/man1/tkmib.1*
801 %files -n python-netsnmp
802 %defattr(644,root,root,755)
803 %dir %{py_sitedir}/netsnmp
804 %attr(755,root,root) %{py_sitedir}/netsnmp/*.so
805 %{py_sitedir}/netsnmp/*.py[co]
806 %{py_sitedir}/netsnmp_python-*.egg-info