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: 5bddd02e2f82b62daa79f82717737a14
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 Obsoletes: ucd-snmp-devel
181 The ucd-snmp-devel package contains the development libraries and
182 header files for use with the net-snmp project's network management
185 %description devel -l es.UTF-8
186 Estas son las bibliotecas y archivos de inclusión para desarrollo con
187 el SNMP de la UCD. Con este paquete es posible la creación de
188 programas para uso en la gestión de redes.
190 %description devel -l pl.UTF-8
191 Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
192 aplikacji używających protokołu SNMP.
194 %description devel -l pt_BR.UTF-8
195 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
196 com o SNMP da UCD. Com este pacote é possível a criação de programas
197 para uso no gerenciamento de redes.
199 %description devel -l ru.UTF-8
200 Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
201 использования с утилитами управления сетью проекта net-snmp.
203 %description devel -l uk.UTF-8
204 Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
205 використання з утилітами керування мережею проекту net-snmp.
208 Summary: Static net-snmp libraries
209 Summary(pl.UTF-8): Statyczne biblioteki net-snmp
210 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ucd-snmp
211 Summary(ru.UTF-8): Статические библиотеки для проекта net-snmp
212 Summary(uk.UTF-8): Статичні бібліотеки для проекту net-snmp
213 Group: Development/Libraries
214 Requires: %{name}-devel = %{version}-%{release}
215 Obsoletes: ucd-snmp-static
218 Static net-snmp libraries.
220 %description static -l pl.UTF-8
221 Statyczne biblioteki net-snmp.
223 %description static -l pt_BR.UTF-8
224 Bibliotecas estáticas para desenvolvimento com net-snmp.
226 %package compat-devel
227 Summary: The development environment for the UCD-SNMP project
228 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
229 Summary(pl.UTF-8): Pliki dla programistów używających bibliotek UCD-SNMP
230 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
231 Summary(ru.UTF-8): Среда разработки для проекта UCD-SNMP
232 Summary(uk.UTF-8): Середовище розробки для проекту UCD-SNMP
233 Group: Development/Libraries
234 Requires: %{name}-devel = %{version}-%{release}
235 Requires: openssl-devel >= 0.9.7d
236 Obsoletes: cmu-snmp-devel
237 Obsoletes: ucd-snmp-devel
239 %description compat-devel
240 The ucd-snmp-devel package contains the development libraries and
241 header files for use with the UCD-SNMP project's network management
244 %description compat-devel -l es.UTF-8
245 Estas son las bibliotecas y archivos de inclusión para desarrollo con
246 el SNMP de la UCD. Con este paquete es posible la creación de
247 programas para uso en la gestión de redes.
249 %description compat-devel -l pl.UTF-8
250 Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
251 aplikacji używających protokołu SNMP.
253 %description compat-devel -l pt_BR.UTF-8
254 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
255 com o SNMP da UCD. Com este pacote é possível a criação de programas
256 para uso no gerenciamento de redes.
258 %description compat-devel -l ru.UTF-8
259 Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
260 использования с утилитами управления сетью проекта UCD-SNMP.
262 %description compat-devel -l uk.UTF-8
263 Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
264 використання з утилітами керування мережею проекту UCD-SNMP.
266 %package compat-static
267 Summary: Static UCD-SNMP libraries
268 Summary(pl.UTF-8): Statyczne biblioteki UCD-SNMP
269 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ucd-snmp
270 Summary(ru.UTF-8): Статические библиотеки для проекта UCD-SNMP
271 Summary(uk.UTF-8): Статичні бібліотеки для проекту UCD-SNMP
272 Group: Development/Libraries
273 Requires: %{name}-compat-devel = %{version}-%{release}
274 Obsoletes: ucd-snmp-static
276 %description compat-static
277 Static UCD-SNMP libraries.
279 %description compat-static -l pl.UTF-8
280 Statyczne biblioteki UCD-SNMP.
282 %description compat-static -l pt_BR.UTF-8
283 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
285 %package -n mibs-net-snmp
286 Summary: Net-SNMP provided MIBs
287 Summary(pl.UTF-8): Baza danych MIB
288 Group: Applications/System
290 Obsoletes: net-snmp-mibs
291 Conflicts: ucd-snmp-libs
293 %description -n mibs-net-snmp
294 Net-SNMP provided MIBs (Management Information Base).
296 %description -n mibs-net-snmp -l pl.UTF-8
300 Summary: SNMP trap daemon
301 Summary(pl.UTF-8): Demon obsługujący pułapki SNMP
302 Group: Applications/System
303 Requires(post,preun): /sbin/chkconfig
304 Requires: %{name} = %{version}-%{release}
305 Requires: rc-scripts >= 0.2.0
306 Obsoletes: cmu-snmp-utils
307 Obsoletes: ucd-snmp-snmptrapd
309 %description snmptrapd
310 The ucd-snmp-snmptrapd package contains snmp trap daemon.
312 %description snmptrapd -l pl.UTF-8
313 Pakiet zawiera demon obsługujący pułapki SNMP.
316 Summary: Network management utilities using SNMP, from the NET-SNMP project
317 Summary(es.UTF-8): Utilitarios del SNMP de la UCD
318 Summary(pl.UTF-8): Narzędzia używające protokołu SNMP
319 Summary(pt_BR.UTF-8): Utilitários do SNMP da UCD
320 Summary(ru.UTF-8): Утилиты управления сетью по SNMP из проекта NET-SNMP
321 Summary(uk.UTF-8): Утиліти керування мережею по SNMP з проекту NET-SNMP
322 Group: Applications/System
323 Requires: %{name}-libs = %{version}-%{release}
324 Suggests: mibs-%{name} = %{version}-%{release}
325 Obsoletes: cmu-snmp-utils
326 Obsoletes: ucd-snmp-utils
329 This package contains various utilities for managing your network
330 using the SNMP protocol.
332 %description utils -l es.UTF-8
333 Varios utilitarios para uso con el SNMP de la UCD. Contiene
334 utilitarios como: snmpwalk, snmptest y otros.
336 %description utils -l pl.UTF-8
337 Różnego rodzaju narzędzia do zarządzania siecią przy użyciu protokołu
340 %description utils -l pt_BR.UTF-8
341 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
342 como: snmpwalk, snmptest e outros.
344 %description utils -l ru.UTF-8
345 Пакет ucd-snmp-utils содержит разнообразные утилиты для использования
346 в проекте управления сетью net-snmp.
348 %description utils -l uk.UTF-8
349 Пакет ucd-snmp-utils містить різноманітні утиліти для використання в
350 проекті керування мережею net-snmp.
352 %package -n perl-SNMP
353 Summary: SNMP and NetSNMP::* Perl modules
354 Summary(pl.UTF-8): Moduły Perla SNMP oraz NetSNMP::*
355 Group: Development/Languages/Perl
356 Requires: %{name}-libs = %{version}-%{release}
357 Conflicts: ucd-snmp-utils-perl
359 %description -n perl-SNMP
360 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
362 %description -n perl-SNMP -l pl.UTF-8
363 Moduły Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
366 Summary: Perl utilities for network management using SNMP
367 Summary(pl.UTF-8): Perlowe narzędzia używające protokołu SNMP
368 Group: Applications/System
369 Requires: perl-SNMP = %{version}-%{release}
370 Obsoletes: cmu-snmp-utils
371 Obsoletes: ucd-snmp-utils-perl
373 %description utils-perl
374 This package contains various Perl utilities for managing your network
375 using the SNMP protocol.
377 %description utils-perl -l pl.UTF-8
378 Perlowe narzędzia do zarządzania siecią przy użyciu protokołu SNMP.
381 Summary: snmpconf - creating and modifying SNMP configuration files
382 Summary(pl.UTF-8): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
383 Group: Applications/System
384 Requires: %{name} = %{version}-%{release}
385 Requires: perl-SNMP = %{version}-%{release}
387 %description snmpconf
388 snmpconf is a simple Perl script that walks you through setting up a
389 configuration file step by step. It should be fairly straight forward
392 %description snmpconf -l pl.UTF-8
393 snmpconf to prosty skrypt Perla pozwalający na tworzenie pliku
394 konfiguracyjnego krok po kroku. Powinien być w miarę prosty w użyciu.
397 Summary: MIB browser in Tk
398 Summary(pl.UTF-8): Przeglądarka MIB-ów w Tk
399 Group: Applications/System
400 Requires: perl-SNMP = %{version}-%{release}
406 %description tkmib -l pl.UTF-8
407 Przeglądarka MIB-ów w Tk.
409 %package -n python-netsnmp
410 Summary: Python netsnmp extension module
411 Summary(pl.UTF-8): Moduł rozszerzenia netsnmp dla Pythona
412 Group: Libraries/Python
413 Requires: %{name}-libs = %{version}-%{release}
415 %description -n python-netsnmp
416 The 'netsnmp' Python extension module provides a full featured,
417 tri-lingual SNMP (SNMPv3, SNMPv2c, SNMPv1) client API.
419 %description -n python-netsnmp -l pl.UTF-8
420 Moduł rozszerzenia netsnmp dla Pythona udostępnia pełne API klienckie
421 SNMP dla trzech wersji tego protokołu (SNMPv3, SNMPv2c, SNMPv1).
448 cp -f /usr/share/automake/config.sub .
453 disman/event disman/schedule \
459 %if %{with lm_sensors}
460 MIBS="$MIBS ucd-snmp/lmsensorsMib"
463 # ksm must be first in --with-security-modules
464 # usm is always enabled
466 ac_cv_path_DPKG_QUERY_PATH= \
467 --disable-debugging \
469 %{__disable static_libs static} \
470 --with-cflags="%{rpmcflags} %{rpmcppflags} -I/usr/include/et" \
471 --with-ldflags="%{rpmldflags}" \
473 --with-default-snmp-version=3 \
474 %{__with_without kerberos5 krb5} \
477 --with-logfile=%{logfile} \
481 %{__with_without perl perl-modules} \
482 %{__with_without python python-modules} \
483 --enable-local-smux \
484 --with-mibdirs='$HOME/.snmp/mibs:/usr/share/mibs:%{_datadir}/snmp/mibs' \
485 --with-mib-modules="$MIBS" \
486 --with-security-modules="%{?with_kerberos5:ksm }tsm" \
487 --with-sys-contact="root@localhost" \
488 --with-sys-location="Unknown" \
489 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback Alias DTLSUDP TLSTCP SSH" \
490 --with-persistent-directory="/var/lib/net-snmp" \
491 --enable-ucd-snmp-compatibility \
493 %{!?debug:--disable-debugging} \
494 %{__with_without rpm}
499 %{__perl} Makefile.PL \
500 -NET-SNMP-IN-SOURCE=true \
502 OPTIMIZE="%{rpmcflags} %{rpmcppflags}" \
505 # avoid rpaths generated by MakeMaker
506 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
510 LDFLAGS="%{rpmldflags} -L$bd/snmplib/.libs/ -L$bd/agent/.libs/"
513 rm -rf $RPM_BUILD_ROOT
514 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,snmp},/var/log,/var/lib/net-snmp,%{_libdir}/snmp/dlmod}
516 %{__make} -j1 install \
517 mibdir=%{_datadir}/mibs \
518 DESTDIR=$RPM_BUILD_ROOT
520 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
521 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
522 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
523 :> $RPM_BUILD_ROOT%{logfile}
525 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
526 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
527 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
529 install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
530 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
531 cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
533 install -d $RPM_BUILD_ROOT/etc/init
534 cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/init/snmpd.conf
537 %{__make} -j1 install \
538 DESTDIR=$RPM_BUILD_ROOT
540 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
541 install -p SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
544 # IP-Filter (non-Linux)
545 %{__rm} $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
547 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Bundle/Makefile.subs.pl
548 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
549 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Bundle/NetSNMP/.packlist
551 %if %{with static_libs}
552 # hack: convert DynaLoader.a inside .a file to .o, as strip(1) would otherwise say invalid argument
553 for a in $RPM_BUILD_ROOT%{_libdir}/libnet*.a; do
556 if [ -f DynaLoader.a ]; then
558 ar cr $a DynaLoader.o
560 # remove second file too
565 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsnmp.a
569 %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/tests
570 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/*.py
574 rm -rf $RPM_BUILD_ROOT
579 /sbin/chkconfig --add snmpd
580 %service snmpd restart "snmpd daemon"
583 if [ "$1" = "0" ]; then
585 /sbin/chkconfig --del snmpd
588 %post libs -p /sbin/ldconfig
589 %postun libs -p /sbin/ldconfig
591 %triggerpostun -- ucd-snmp
592 /sbin/chkconfig --add snmpd
597 /sbin/chkconfig --add snmptrapd
598 %service snmptrapd restart "snmp trap daemon"
601 if [ "$1" = "0" ]; then
602 %service snmptrapd stop
603 /sbin/chkconfig --del snmptrapd
606 %triggerpostun snmptrapd -- ucd-snmp-snmptrapd
607 /sbin/chkconfig --add snmptrapd
610 %defattr(644,root,root,755)
611 %doc AGENT.txt CHANGES COPYING ChangeLog EXAMPLE.conf{,.def} FAQ NEWS README{,.agent-mibs,.agentx,.snmpv3,.sql,.thread} TODO local
613 %attr(754,root,root) /etc/rc.d/init.d/snmpd
614 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
615 %config(noreplace) %verify(not md5 mtime size) /etc/init/snmpd.conf
617 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
618 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
620 %attr(755,root,root) %{_sbindir}/snmpd
621 %attr(755,root,root) %{_bindir}/net-snmp-create-v3-user
622 %attr(755,root,root) %{_bindir}/sshtosnmp
624 %dir %{_libdir}/snmp/dlmod
625 %attr(755,root,root) %{_datadir}/snmp/snmp_perl.pl
626 %{_mandir}/man1/net-snmp-create-v3-user.1*
627 %{_mandir}/man5/snmpd.conf.5*
628 %{_mandir}/man5/snmpd.examples.5*
629 %{_mandir}/man5/snmpd.internal.5*
630 %{_mandir}/man5/variables.5*
631 %{_mandir}/man8/snmpd.8*
633 %dir %attr(700,root,root) /var/lib/net-snmp
635 %attr(640,root,root) %ghost %{logfile}
638 %defattr(644,root,root,755)
639 %attr(755,root,root) %{_libdir}/libnetsnmp.so.*.*.*
640 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so.*.*.*
641 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so.*.*.*
642 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so.*.*.*
643 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so.*.*.*
644 %attr(755,root,root) %ghost %{_libdir}/libnetsnmp.so.%{so_version}
645 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpagent.so.%{so_version}
646 %attr(755,root,root) %ghost %{_libdir}/libnetsnmphelpers.so.%{so_version}
647 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpmibs.so.%{so_version}
648 %attr(755,root,root) %ghost %{_libdir}/libnetsnmptrapd.so.%{so_version}
649 %dir %{_sysconfdir}/snmp
650 %dir %{_datadir}/snmp
653 %defattr(644,root,root,755)
654 %attr(755,root,root) %{_bindir}/mib2c
655 %attr(755,root,root) %{_bindir}/mib2c-update
656 %attr(755,root,root) %{_bindir}/net-snmp-config
657 %attr(755,root,root) %{_libdir}/libnetsnmp.so
658 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so
659 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so
660 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so
661 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so
662 %{_libdir}/libnetsnmp.la
663 %{_libdir}/libnetsnmpagent.la
664 %{_libdir}/libnetsnmphelpers.la
665 %{_libdir}/libnetsnmpmibs.la
666 %{_libdir}/libnetsnmptrapd.la
667 %{_includedir}/net-snmp
668 %{_datadir}/snmp/mib2c*
669 %{_mandir}/man1/mib2c.1*
670 %{_mandir}/man1/mib2c-update.1*
671 %{_mandir}/man1/net-snmp-config.1*
672 %{_mandir}/man3/[!NS]*
673 %{_mandir}/man5/mib2c.conf.5*
675 %if %{with static_libs}
677 %defattr(644,root,root,755)
678 %{_libdir}/libnetsnmp.a
679 %{_libdir}/libnetsnmpagent.a
680 %{_libdir}/libnetsnmphelpers.a
681 %{_libdir}/libnetsnmpmibs.a
682 %{_libdir}/libnetsnmptrapd.a
686 %defattr(644,root,root,755)
687 %attr(755,root,root) %{_libdir}/libsnmp.so
688 %{_libdir}/libsnmp.la
689 %{_includedir}/ucd-snmp
691 %if %{with static_libs}
693 %defattr(644,root,root,755)
697 %files -n mibs-net-snmp
698 %defattr(644,root,root,755)
699 %{_datadir}/mibs/*.txt
702 %defattr(644,root,root,755)
703 %attr(755,root,root) %{_sbindir}/snmptrapd
704 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
705 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
706 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
708 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
710 %{_mandir}/man5/snmptrapd.conf.5*
711 %{_mandir}/man8/snmptrapd.8*
714 %defattr(644,root,root,755)
715 %attr(755,root,root) %{_bindir}/agentxtrap
716 %attr(755,root,root) %{_bindir}/encode_keychange
717 %attr(755,root,root) %{_bindir}/snmpbulkget
718 %attr(755,root,root) %{_bindir}/snmpbulkwalk
719 %attr(755,root,root) %{_bindir}/snmpdelta
720 %attr(755,root,root) %{_bindir}/snmpdf
721 %attr(755,root,root) %{_bindir}/snmpget
722 %attr(755,root,root) %{_bindir}/snmpgetnext
723 %attr(755,root,root) %{_bindir}/snmpinform
724 %attr(755,root,root) %{_bindir}/snmpnetstat
725 %attr(755,root,root) %{_bindir}/snmpset
726 %attr(755,root,root) %{_bindir}/snmpstatus
727 %attr(755,root,root) %{_bindir}/snmptable
728 %attr(755,root,root) %{_bindir}/snmptest
729 %attr(755,root,root) %{_bindir}/snmptls
730 %attr(755,root,root) %{_bindir}/snmptranslate
731 %attr(755,root,root) %{_bindir}/snmptrap
732 %attr(755,root,root) %{_bindir}/snmpusm
733 %attr(755,root,root) %{_bindir}/snmpvacm
734 %attr(755,root,root) %{_bindir}/snmpwalk
735 %{_mandir}/man1/agentxtrap.1*
736 %{_mandir}/man1/encode_keychange.1*
737 %{_mandir}/man1/snmpbulkget.1*
738 %{_mandir}/man1/snmpbulkwalk.1*
739 %{_mandir}/man1/snmpcmd.1*
740 %{_mandir}/man1/snmpdelta.1*
741 %{_mandir}/man1/snmpdf.1*
742 %{_mandir}/man1/snmpget.1*
743 %{_mandir}/man1/snmpgetnext.1*
744 %{_mandir}/man1/snmpinform.1*
745 %{_mandir}/man1/snmpnetstat.1*
746 %{_mandir}/man1/snmpset.1*
747 %{_mandir}/man1/snmpstatus.1*
748 %{_mandir}/man1/snmptable.1*
749 %{_mandir}/man1/snmptest.1*
750 %{_mandir}/man1/snmptranslate.1*
751 %{_mandir}/man1/snmptrap.1*
752 %{_mandir}/man1/snmpusm.1*
753 %{_mandir}/man1/snmpvacm.1*
754 %{_mandir}/man1/snmpwalk.1*
755 %{_mandir}/man5/snmp.conf.5*
756 %{_mandir}/man5/snmp_config.5*
758 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
762 %defattr(644,root,root,755)
763 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
764 %{perl_vendorarch}/SNMP.pm
765 %{perl_vendorarch}/NetSNMP
766 %dir %{perl_vendorarch}/auto/SNMP
767 %{perl_vendorarch}/auto/SNMP/autosplit.ix
768 %{perl_vendorarch}/auto/SNMP/SNMP.bs
769 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
770 %dir %{perl_vendorarch}/auto/NetSNMP
771 %dir %{perl_vendorarch}/auto/NetSNMP/*
772 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
773 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
774 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
775 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
776 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
777 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
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