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: 7db683faba037249837b226f64d566d4
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 Patch15: %{name}-libpci-init.patch
60 Patch17: %{name}-logging.patch
61 URL: http://www.net-snmp.org/
62 BuildRequires: autoconf >= 2.63
63 BuildRequires: automake
64 BuildRequires: elfutils-devel
65 %{?with_kerberos5:BuildRequires: heimdal-devel}
66 BuildRequires: libnl-devel >= 1:3.2
67 BuildRequires: libssh2-devel
68 BuildRequires: libtool >= 1.4
69 BuildRequires: libwrap-devel
70 %{?with_lm_sensors:BuildRequires: lm_sensors-devel >= 3.0.1}
71 BuildRequires: openssl-devel >= 0.9.7d
72 BuildRequires: pciutils-devel
73 %{?with_autodeps:BuildRequires: perl-Term-ReadKey}
74 BuildRequires: perl-devel >= 1:5.8.0
76 BuildRequires: python-devel
77 BuildRequires: python-modules
78 BuildRequires: python-setuptools
79 BuildRequires: rpm-pythonprov
83 BuildRequires: rpm-perlprov >= 3.0.3-16
85 BuildRequires: rpmbuild(macros) >= 1.527
86 Requires(post,preun): /sbin/chkconfig
87 Requires: %{name}-libs = %{version}-%{release}
88 Requires: /usr/bin/setsid
89 Requires: mibs-%{name} = %{version}-%{release}
90 Requires: pciutils >= 3.1.7-5
91 Requires: rc-scripts >= 0.4.3.0
96 Conflicts: rpm < 4.4.9-43.11
97 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
99 # linking libraries is ugly in this package
100 %define no_install_post_check_so 1
102 %define logfile /var/log/snmpd.log
105 SNMP (Simple Network Management Protocol) is a protocol used for
106 network management (hence the name). The net-snmp project includes
107 various SNMP tools: an extensible agent, an SNMP library, tools for
108 requesting or setting information from SNMP agents, tools for
109 generating and handling SNMP traps, a version of the netstat command
110 which uses SNMP, and a Tk/Perl mib browser. This package contains the
111 snmpd daemon, documentation, etc.
113 %description -l es.UTF-8
114 Este paquete se deriva de la implementación del Protocolo Simple de
115 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
116 Útil para administrar redes y hacer contabilidad.
118 %description -l pl.UTF-8
119 SNMP (Simple Network Management Protocol) jest protokołem używanym do
120 zarządzania sieciami. Pakiet zawiera narzędzia: rozbudowywalnego
121 agenta, bibliotekę SNMP, narzędzia do odpytywania oraz ustawiania
122 informacji poprzez agentów SNMP, narzędzia do generowania i obsługi
123 pułapek SNMP, wersję komendy netstat używającą SNMP, przeglądarkę mib
124 w Tk/Perl, demona, dokumentację itp.
126 %description -l pt_BR.UTF-8
127 Este pacote é derivado da implementação do Protocolo Simples de
128 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
129 Mellon. Útil para gerenciar redes e fazer contabilidade.
131 %description -l ru.UTF-8
132 SNMP (Simple Network Management Protocol) - это протокол, используемый
133 для управления сетью (отсюда и название). Проект net-snmp включает
134 разнообразные SNMP-утилиты: расширяемый агент, библиотека SNMP,
135 утилиты для запроса или установки информации от SNMP-агентов, утилиты
136 для генерации и обработки SNMP-трапов, версия команды netstat,
137 использующей SNMP, и mib-браузер на Tk/Perl. Этот пакет содержит
138 демоны snmpd и snmptrapd, документацию и т.д.
140 %description -l uk.UTF-8
141 SNMP (Simple Network Management Protocol) - це протокол, який
142 використовують для керування мережею (звідси і назва). Проект net-snmp
143 містить різноманітні SNMP-утиліти: розширюваний агент, бібліотека
144 SNMP, утиліти для запросу та встановлення інформації від NMP-агентів,
145 утиліти для генерації та обробки SNMP-трапів, версія команди netstat,
146 яка використовує SNMP, та mib-браузер на Tk/Perl. Цей пакет містить
147 демони snmpd та snmptrapd, документацію і т.і.
150 Summary: NET SNMP libraries
151 Summary(pl.UTF-8): Biblioteki SNMP
153 Suggests: mibs-%{name}
154 Obsoletes: net-snmp-compat-libs
155 Obsoletes: ucd-snmp-libs
160 %description libs -l pl.UTF-8
164 Summary: The development environment for the net-snmp project
165 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
166 Summary(pl.UTF-8): Pliki dla programistów używających bibliotek net-snmp
167 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
168 Summary(ru.UTF-8): Среда разработки для проекта UCD-SNMP
169 Summary(uk.UTF-8): Середовище розробки для проекту UCD-SNMP
170 Group: Development/Libraries
171 Requires: %{name}-libs = %{version}-%{release}
172 Requires: elfutils-devel
173 %{?with_kerberos5:Requires: heimdal-devel}
174 Requires: libnl-devel >= 1:3.2
175 Requires: libwrap-devel
176 %{?with_lm_sensors:Requires: lm_sensors-devel >= 3.0.1}
177 Requires: openssl-devel >= 0.9.7c
178 Requires: pciutils-devel
179 Obsoletes: ucd-snmp-devel
182 The ucd-snmp-devel package contains the development libraries and
183 header files for use with the net-snmp project's network management
186 %description devel -l es.UTF-8
187 Estas son las bibliotecas y archivos de inclusión para desarrollo con
188 el SNMP de la UCD. Con este paquete es posible la creación de
189 programas para uso en la gestión de redes.
191 %description devel -l pl.UTF-8
192 Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
193 aplikacji używających protokołu SNMP.
195 %description devel -l pt_BR.UTF-8
196 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
197 com o SNMP da UCD. Com este pacote é possível a criação de programas
198 para uso no gerenciamento de redes.
200 %description devel -l ru.UTF-8
201 Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
202 использования с утилитами управления сетью проекта net-snmp.
204 %description devel -l uk.UTF-8
205 Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
206 використання з утилітами керування мережею проекту net-snmp.
209 Summary: Static net-snmp libraries
210 Summary(pl.UTF-8): Statyczne biblioteki net-snmp
211 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ucd-snmp
212 Summary(ru.UTF-8): Статические библиотеки для проекта net-snmp
213 Summary(uk.UTF-8): Статичні бібліотеки для проекту net-snmp
214 Group: Development/Libraries
215 Requires: %{name}-devel = %{version}-%{release}
216 Obsoletes: ucd-snmp-static
219 Static net-snmp libraries.
221 %description static -l pl.UTF-8
222 Statyczne biblioteki net-snmp.
224 %description static -l pt_BR.UTF-8
225 Bibliotecas estáticas para desenvolvimento com net-snmp.
227 %package compat-devel
228 Summary: The development environment for the UCD-SNMP project
229 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
230 Summary(pl.UTF-8): Pliki dla programistów używających bibliotek UCD-SNMP
231 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
232 Summary(ru.UTF-8): Среда разработки для проекта UCD-SNMP
233 Summary(uk.UTF-8): Середовище розробки для проекту UCD-SNMP
234 Group: Development/Libraries
235 Requires: %{name}-devel = %{version}-%{release}
236 Requires: openssl-devel >= 0.9.7d
237 Obsoletes: cmu-snmp-devel
238 Obsoletes: ucd-snmp-devel
240 %description compat-devel
241 The ucd-snmp-devel package contains the development libraries and
242 header files for use with the UCD-SNMP project's network management
245 %description compat-devel -l es.UTF-8
246 Estas son las bibliotecas y archivos de inclusión para desarrollo con
247 el SNMP de la UCD. Con este paquete es posible la creación de
248 programas para uso en la gestión de redes.
250 %description compat-devel -l pl.UTF-8
251 Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
252 aplikacji używających protokołu SNMP.
254 %description compat-devel -l pt_BR.UTF-8
255 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
256 com o SNMP da UCD. Com este pacote é possível a criação de programas
257 para uso no gerenciamento de redes.
259 %description compat-devel -l ru.UTF-8
260 Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
261 использования с утилитами управления сетью проекта UCD-SNMP.
263 %description compat-devel -l uk.UTF-8
264 Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
265 використання з утилітами керування мережею проекту UCD-SNMP.
267 %package compat-static
268 Summary: Static UCD-SNMP libraries
269 Summary(pl.UTF-8): Statyczne biblioteki UCD-SNMP
270 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ucd-snmp
271 Summary(ru.UTF-8): Статические библиотеки для проекта UCD-SNMP
272 Summary(uk.UTF-8): Статичні бібліотеки для проекту UCD-SNMP
273 Group: Development/Libraries
274 Requires: %{name}-compat-devel = %{version}-%{release}
275 Obsoletes: ucd-snmp-static
277 %description compat-static
278 Static UCD-SNMP libraries.
280 %description compat-static -l pl.UTF-8
281 Statyczne biblioteki UCD-SNMP.
283 %description compat-static -l pt_BR.UTF-8
284 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
286 %package -n mibs-net-snmp
287 Summary: Net-SNMP provided MIBs
288 Summary(pl.UTF-8): Baza danych MIB
289 Group: Applications/System
291 Obsoletes: net-snmp-mibs
292 Conflicts: ucd-snmp-libs
293 %if "%{_rpmversion}" >= "5"
297 %description -n mibs-net-snmp
298 Net-SNMP provided MIBs (Management Information Base).
300 %description -n mibs-net-snmp -l pl.UTF-8
304 Summary: SNMP trap daemon
305 Summary(pl.UTF-8): Demon obsługujący pułapki SNMP
306 Group: Applications/System
307 Requires(post,preun): /sbin/chkconfig
308 Requires: %{name} = %{version}-%{release}
309 Requires: rc-scripts >= 0.2.0
310 Obsoletes: cmu-snmp-utils
311 Obsoletes: ucd-snmp-snmptrapd
313 %description snmptrapd
314 The ucd-snmp-snmptrapd package contains snmp trap daemon.
316 %description snmptrapd -l pl.UTF-8
317 Pakiet zawiera demon obsługujący pułapki SNMP.
320 Summary: Network management utilities using SNMP, from the NET-SNMP project
321 Summary(es.UTF-8): Utilitarios del SNMP de la UCD
322 Summary(pl.UTF-8): Narzędzia używające protokołu SNMP
323 Summary(pt_BR.UTF-8): Utilitários do SNMP da UCD
324 Summary(ru.UTF-8): Утилиты управления сетью по SNMP из проекта NET-SNMP
325 Summary(uk.UTF-8): Утиліти керування мережею по SNMP з проекту NET-SNMP
326 Group: Applications/System
327 Requires: %{name}-libs = %{version}-%{release}
328 Suggests: mibs-%{name} = %{version}-%{release}
329 Obsoletes: cmu-snmp-utils
330 Obsoletes: ucd-snmp-utils
333 This package contains various utilities for managing your network
334 using the SNMP protocol.
336 %description utils -l es.UTF-8
337 Varios utilitarios para uso con el SNMP de la UCD. Contiene
338 utilitarios como: snmpwalk, snmptest y otros.
340 %description utils -l pl.UTF-8
341 Różnego rodzaju narzędzia do zarządzania siecią przy użyciu protokołu
344 %description utils -l pt_BR.UTF-8
345 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
346 como: snmpwalk, snmptest e outros.
348 %description utils -l ru.UTF-8
349 Пакет ucd-snmp-utils содержит разнообразные утилиты для использования
350 в проекте управления сетью net-snmp.
352 %description utils -l uk.UTF-8
353 Пакет ucd-snmp-utils містить різноманітні утиліти для використання в
354 проекті керування мережею net-snmp.
356 %package -n perl-SNMP
357 Summary: SNMP and NetSNMP::* Perl modules
358 Summary(pl.UTF-8): Moduły Perla SNMP oraz NetSNMP::*
359 Group: Development/Languages/Perl
360 Requires: %{name}-libs = %{version}-%{release}
361 Conflicts: ucd-snmp-utils-perl
363 %description -n perl-SNMP
364 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
366 %description -n perl-SNMP -l pl.UTF-8
367 Moduły Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
370 Summary: Perl utilities for network management using SNMP
371 Summary(pl.UTF-8): Perlowe narzędzia używające protokołu SNMP
372 Group: Applications/System
373 Requires: perl-SNMP = %{version}-%{release}
374 Obsoletes: cmu-snmp-utils
375 Obsoletes: ucd-snmp-utils-perl
377 %description utils-perl
378 This package contains various Perl utilities for managing your network
379 using the SNMP protocol.
381 %description utils-perl -l pl.UTF-8
382 Perlowe narzędzia do zarządzania siecią przy użyciu protokołu SNMP.
385 Summary: snmpconf - creating and modifying SNMP configuration files
386 Summary(pl.UTF-8): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
387 Group: Applications/System
388 Requires: %{name} = %{version}-%{release}
389 Requires: perl-SNMP = %{version}-%{release}
391 %description snmpconf
392 snmpconf is a simple Perl script that walks you through setting up a
393 configuration file step by step. It should be fairly straight forward
396 %description snmpconf -l pl.UTF-8
397 snmpconf to prosty skrypt Perla pozwalający na tworzenie pliku
398 konfiguracyjnego krok po kroku. Powinien być w miarę prosty w użyciu.
401 Summary: MIB browser in Tk
402 Summary(pl.UTF-8): Przeglądarka MIB-ów w Tk
403 Group: Applications/System
404 Requires: perl-SNMP = %{version}-%{release}
410 %description tkmib -l pl.UTF-8
411 Przeglądarka MIB-ów w Tk.
413 %package -n python-netsnmp
414 Summary: Python netsnmp extension module
415 Summary(pl.UTF-8): Moduł rozszerzenia netsnmp dla Pythona
416 Group: Libraries/Python
417 Requires: %{name}-libs = %{version}-%{release}
419 %description -n python-netsnmp
420 The 'netsnmp' Python extension module provides a full featured,
421 tri-lingual SNMP (SNMPv3, SNMPv2c, SNMPv1) client API.
423 %description -n python-netsnmp -l pl.UTF-8
424 Moduł rozszerzenia netsnmp dla Pythona udostępnia pełne API klienckie
425 SNMP dla trzech wersji tego protokołu (SNMPv3, SNMPv2c, SNMPv1).
452 cp -f /usr/share/automake/config.sub .
457 disman/event disman/schedule \
463 %if %{with lm_sensors}
464 MIBS="$MIBS ucd-snmp/lmsensorsMib"
467 # ksm must be first in --with-security-modules
468 # usm is always enabled
470 ac_cv_path_DPKG_QUERY_PATH= \
472 %{__disable static_libs static} \
473 --with-cflags="%{rpmcflags} %{rpmcppflags} -I/usr/include/et" \
474 --with-ldflags="%{rpmldflags}" \
476 --with-default-snmp-version=3 \
477 %{__with_without kerberos5 krb5} \
480 --with-logfile=%{logfile} \
484 %{__with_without perl perl-modules} \
485 %{__with_without python python-modules} \
486 --enable-local-smux \
487 --with-mibdirs='$HOME/.snmp/mibs:/usr/share/mibs' \
488 --with-mib-modules="$MIBS" \
489 --with-security-modules="%{?with_kerberos5:ksm }tsm" \
490 --with-sys-contact="root@localhost" \
491 --with-sys-location="Unknown" \
492 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback Alias DTLSUDP TLSTCP SSH" \
493 --with-persistent-directory="/var/lib/net-snmp" \
494 --enable-ucd-snmp-compatibility \
496 %{!?debug:--disable-debugging} \
497 %{__with_without rpm}
502 %{__perl} Makefile.PL \
503 -NET-SNMP-IN-SOURCE=true \
505 OPTIMIZE="%{rpmcflags} %{rpmcppflags}" \
508 # avoid rpaths generated by MakeMaker
509 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
513 LDFLAGS="%{rpmldflags} -L$bd/snmplib/.libs/ -L$bd/agent/.libs/"
516 rm -rf $RPM_BUILD_ROOT
517 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,snmp},/var/log,/var/lib/net-snmp,%{_libdir}/snmp/dlmod}
519 %{__make} -j1 install \
520 mibdir=%{_datadir}/mibs \
521 DESTDIR=$RPM_BUILD_ROOT
523 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
524 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
525 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
526 :> $RPM_BUILD_ROOT%{logfile}
528 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
529 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
530 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
532 install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
533 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
534 cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
536 install -d $RPM_BUILD_ROOT/etc/init
537 cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/init/snmpd.conf
540 %{__make} -j1 install \
541 DESTDIR=$RPM_BUILD_ROOT
543 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
544 install -p SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
547 # IP-Filter (non-Linux)
548 %{__rm} $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
550 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Bundle/Makefile.subs.pl
551 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
552 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Bundle/NetSNMP/.packlist
554 %if %{with static_libs}
555 # hack: convert DynaLoader.a inside .a file to .o, as strip(1) would otherwise say invalid argument
556 for a in $RPM_BUILD_ROOT%{_libdir}/libnet*.a; do
559 if [ -f DynaLoader.a ]; then
561 ar cr $a DynaLoader.o
563 # remove second file too
568 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsnmp.a
572 %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/tests
573 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/*.py
577 rm -rf $RPM_BUILD_ROOT
582 /sbin/chkconfig --add snmpd
583 %service snmpd restart "snmpd daemon"
586 if [ "$1" = "0" ]; then
588 /sbin/chkconfig --del snmpd
591 %post libs -p /sbin/ldconfig
592 %postun libs -p /sbin/ldconfig
594 %triggerpostun -- ucd-snmp
595 /sbin/chkconfig --add snmpd
600 /sbin/chkconfig --add snmptrapd
601 %service snmptrapd restart "snmp trap daemon"
604 if [ "$1" = "0" ]; then
605 %service snmptrapd stop
606 /sbin/chkconfig --del snmptrapd
609 %triggerpostun snmptrapd -- ucd-snmp-snmptrapd
610 /sbin/chkconfig --add snmptrapd
613 %defattr(644,root,root,755)
614 %doc AGENT.txt CHANGES COPYING ChangeLog EXAMPLE.conf{,.def} FAQ NEWS README{,.agent-mibs,.agentx,.snmpv3,.sql,.thread} TODO local
616 %attr(754,root,root) /etc/rc.d/init.d/snmpd
617 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
618 %config(noreplace) %verify(not md5 mtime size) /etc/init/snmpd.conf
620 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
621 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
623 %attr(755,root,root) %{_sbindir}/snmpd
624 %attr(755,root,root) %{_bindir}/net-snmp-create-v3-user
625 %attr(755,root,root) %{_bindir}/sshtosnmp
627 %dir %{_libdir}/snmp/dlmod
628 %attr(755,root,root) %{_datadir}/snmp/snmp_perl.pl
629 %{_mandir}/man1/net-snmp-create-v3-user.1*
630 %{_mandir}/man5/snmpd.conf.5*
631 %{_mandir}/man5/snmpd.examples.5*
632 %{_mandir}/man5/snmpd.internal.5*
633 %{_mandir}/man5/variables.5*
634 %{_mandir}/man8/snmpd.8*
636 %dir %attr(700,root,root) /var/lib/net-snmp
638 %attr(640,root,root) %ghost %{logfile}
641 %defattr(644,root,root,755)
642 %attr(755,root,root) %{_libdir}/libnetsnmp.so.*.*.*
643 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so.*.*.*
644 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so.*.*.*
645 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so.*.*.*
646 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so.*.*.*
647 %attr(755,root,root) %ghost %{_libdir}/libnetsnmp.so.%{so_version}
648 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpagent.so.%{so_version}
649 %attr(755,root,root) %ghost %{_libdir}/libnetsnmphelpers.so.%{so_version}
650 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpmibs.so.%{so_version}
651 %attr(755,root,root) %ghost %{_libdir}/libnetsnmptrapd.so.%{so_version}
652 %dir %{_sysconfdir}/snmp
653 %dir %{_datadir}/snmp
656 %defattr(644,root,root,755)
657 %attr(755,root,root) %{_bindir}/mib2c
658 %attr(755,root,root) %{_bindir}/mib2c-update
659 %attr(755,root,root) %{_bindir}/net-snmp-config
660 %attr(755,root,root) %{_libdir}/libnetsnmp.so
661 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so
662 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so
663 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so
664 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so
665 %{_libdir}/libnetsnmp.la
666 %{_libdir}/libnetsnmpagent.la
667 %{_libdir}/libnetsnmphelpers.la
668 %{_libdir}/libnetsnmpmibs.la
669 %{_libdir}/libnetsnmptrapd.la
670 %{_includedir}/net-snmp
671 %{_datadir}/snmp/mib2c*
672 %{_mandir}/man1/mib2c.1*
673 %{_mandir}/man1/mib2c-update.1*
674 %{_mandir}/man1/net-snmp-config.1*
675 %{_mandir}/man3/[!NS]*
676 %{_mandir}/man5/mib2c.conf.5*
678 %if %{with static_libs}
680 %defattr(644,root,root,755)
681 %{_libdir}/libnetsnmp.a
682 %{_libdir}/libnetsnmpagent.a
683 %{_libdir}/libnetsnmphelpers.a
684 %{_libdir}/libnetsnmpmibs.a
685 %{_libdir}/libnetsnmptrapd.a
689 %defattr(644,root,root,755)
690 %attr(755,root,root) %{_libdir}/libsnmp.so
691 %{_libdir}/libsnmp.la
692 %{_includedir}/ucd-snmp
694 %if %{with static_libs}
696 %defattr(644,root,root,755)
700 %files -n mibs-net-snmp
701 %defattr(644,root,root,755)
702 %{_datadir}/mibs/*.txt
705 %defattr(644,root,root,755)
706 %attr(755,root,root) %{_sbindir}/snmptrapd
707 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
708 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
709 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
711 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
713 %{_mandir}/man5/snmptrapd.conf.5*
714 %{_mandir}/man8/snmptrapd.8*
717 %defattr(644,root,root,755)
718 %attr(755,root,root) %{_bindir}/agentxtrap
719 %attr(755,root,root) %{_bindir}/encode_keychange
720 %attr(755,root,root) %{_bindir}/snmpbulkget
721 %attr(755,root,root) %{_bindir}/snmpbulkwalk
722 %attr(755,root,root) %{_bindir}/snmpdelta
723 %attr(755,root,root) %{_bindir}/snmpdf
724 %attr(755,root,root) %{_bindir}/snmpget
725 %attr(755,root,root) %{_bindir}/snmpgetnext
726 %attr(755,root,root) %{_bindir}/snmpinform
727 %attr(755,root,root) %{_bindir}/snmpnetstat
728 %attr(755,root,root) %{_bindir}/snmpset
729 %attr(755,root,root) %{_bindir}/snmpstatus
730 %attr(755,root,root) %{_bindir}/snmptable
731 %attr(755,root,root) %{_bindir}/snmptest
732 %attr(755,root,root) %{_bindir}/snmptls
733 %attr(755,root,root) %{_bindir}/snmptranslate
734 %attr(755,root,root) %{_bindir}/snmptrap
735 %attr(755,root,root) %{_bindir}/snmpusm
736 %attr(755,root,root) %{_bindir}/snmpvacm
737 %attr(755,root,root) %{_bindir}/snmpwalk
738 %{_mandir}/man1/agentxtrap.1*
739 %{_mandir}/man1/encode_keychange.1*
740 %{_mandir}/man1/snmpbulkget.1*
741 %{_mandir}/man1/snmpbulkwalk.1*
742 %{_mandir}/man1/snmpcmd.1*
743 %{_mandir}/man1/snmpdelta.1*
744 %{_mandir}/man1/snmpdf.1*
745 %{_mandir}/man1/snmpget.1*
746 %{_mandir}/man1/snmpgetnext.1*
747 %{_mandir}/man1/snmpinform.1*
748 %{_mandir}/man1/snmpnetstat.1*
749 %{_mandir}/man1/snmpset.1*
750 %{_mandir}/man1/snmpstatus.1*
751 %{_mandir}/man1/snmptable.1*
752 %{_mandir}/man1/snmptest.1*
753 %{_mandir}/man1/snmptranslate.1*
754 %{_mandir}/man1/snmptrap.1*
755 %{_mandir}/man1/snmpusm.1*
756 %{_mandir}/man1/snmpvacm.1*
757 %{_mandir}/man1/snmpwalk.1*
758 %{_mandir}/man5/snmp.conf.5*
759 %{_mandir}/man5/snmp_config.5*
761 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
765 %defattr(644,root,root,755)
766 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
767 %{perl_vendorarch}/SNMP.pm
768 %{perl_vendorarch}/NetSNMP
769 %dir %{perl_vendorarch}/auto/SNMP
770 %{perl_vendorarch}/auto/SNMP/autosplit.ix
771 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
772 %dir %{perl_vendorarch}/auto/NetSNMP
773 %dir %{perl_vendorarch}/auto/NetSNMP/*
774 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
775 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
776 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
777 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
778 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
779 %{_mandir}/man3/NetSNMP::*.3*
780 %{_mandir}/man3/SNMP.3*
781 %{_examplesdir}/perl-SNMP-%{version}
784 %defattr(644,root,root,755)
785 %attr(755,root,root) %{_bindir}/fixproc
786 %attr(755,root,root) %{_bindir}/net-snmp-cert
787 %attr(755,root,root) %{_bindir}/snmp-bridge-mib
788 %attr(755,root,root) %{_bindir}/snmpcheck
789 %attr(755,root,root) %{_bindir}/traptoemail
790 %{_mandir}/man1/fixproc.1*
791 %{_mandir}/man1/snmp-bridge-mib.1*
792 %{_mandir}/man1/traptoemail.1*
796 %defattr(644,root,root,755)
797 %attr(755,root,root) %{_bindir}/snmpconf
798 %{_mandir}/man1/snmpconf.1*
799 %{_datadir}/snmp/snmpconf-data
803 %defattr(644,root,root,755)
804 %attr(755,root,root) %{_bindir}/tkmib
805 %{_mandir}/man1/tkmib.1*
809 %files -n python-netsnmp
810 %defattr(644,root,root,755)
811 %dir %{py_sitedir}/netsnmp
812 %attr(755,root,root) %{py_sitedir}/netsnmp/*.so
813 %{py_sitedir}/netsnmp/*.py[co]
814 %{py_sitedir}/netsnmp_python-*.egg-info