3 # %{_datadir}/snmp/snmp_perl.pl
4 # - make noarch -n mibs-net-snmp package (need separate .spec then)
5 # - FHS: #define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
6 # - php-snmp (and likely other bindings) use only %{_libdir}/libnetsnmp.so.*, move other libs back to main (daemon) package?
9 %bcond_without autodeps # don't BR packages only for deps resolving
10 %bcond_without rpm # don't include RPM support
11 %bcond_without kerberos5 # don't include kerberos support
12 %bcond_without lm_sensors # don't include sensors support
13 %bcond_without perl # don't include Perl modules and utils
14 %bcond_without python # don't include Python modules
15 %bcond_without static_libs # don't build static library
17 %ifnarch %{ix86} %{x8664}
18 %undefine with_lm_sensors
23 %include /usr/lib/rpm/macros.perl
24 Summary: A collection of SNMP protocol tools
25 Summary(es.UTF-8): Agente SNMP de la UCD
26 Summary(pl.UTF-8): Kolekcja narzędzi do obsługi protokołu SNMP
27 Summary(pt_BR.UTF-8): Agente SNMP da UCD
28 Summary(ru.UTF-8): Набор утилит для протокола SNMP от UC-Davis
29 Summary(uk.UTF-8): Набір утиліт для протоколу SNMP від UC-Davis
34 Group: Networking/Daemons
35 Source0: http://downloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
36 # Source0-md5: 89b3a7a77e68daef925abee43a3f7018
37 Source1: %{name}d.init
38 Source2: %{name}d.conf
39 Source3: %{name}d.sysconfig
40 Source4: %{name}trapd.init
41 Source5: %{name}trapd.conf
42 Source6: %{name}trapd.sysconfig
43 Source7: ucd-ipchains.tar.gz
44 # Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
45 Patch0: %{name}-acfix.patch
46 Patch1: %{name}-rpm-implicit-libs.patch
47 Patch2: %{name}-config-noflags.patch
48 Patch3: %{name}-manpage.patch
49 Patch4: %{name}-link.patch
50 Patch5: %{name}-llinterfaces.patch
51 Patch6: %{name}-kernel_headers.patch
52 Patch7: %{name}-rpmpath.patch
53 Patch8: %{name}-snmpksm.patch
54 Patch9: %{name}-python.patch
55 Patch10: %{name}-lvalue.patch
56 Patch11: %{name}-defaultconfig.patch
57 Patch12: %{name}-use-rpm-hrmib.patch
58 Patch13: %{name}-TCP_STATS_CACHE_TIMEOUT.patch
59 Patch14: %{name}-nodebug.patch
60 URL: http://www.net-snmp.org/
61 BuildRequires: autoconf >= 2.61-3
62 BuildRequires: automake
63 BuildRequires: elfutils-devel
64 %{?with_kerberos5:BuildRequires: heimdal-devel}
65 BuildRequires: libnl-devel >= 1:1.1
66 BuildRequires: libtool >= 1.4
67 BuildRequires: libwrap-devel
68 %{?with_lm_sensors:BuildRequires: lm_sensors-devel >= 3.0.1}
69 BuildRequires: openssl-devel >= 0.9.7d
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.268
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.2.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}-libs = %{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"
457 --disable-debugging \
459 %{!?with_static_libs:--disable-static} \
460 --with-cflags="%{rpmcflags} %{rpmcppflags} -I/usr/include/et" \
461 --with-ldflags="%{rpmldflags}" \
463 --with-default-snmp-version=3 \
464 %{?with_kerberos5:--with-krb5=%{_prefix}} \
465 %{!?with_kerberos5:--without-krb5} \
466 --with-openssl=%{_prefix} \
467 --with-libwrap=%{_prefix} \
468 --with-logfile="%{logfile}" \
469 --with-zlib=%{_prefix} \
470 --with-bzip2=%{_prefix} \
471 --with%{!?with_perl:out}-perl-modules \
472 --with%{!?with_python:out}-python-modules \
473 --enable-local-smux \
474 --with-mibdirs='$HOME/.snmp/mibs:/usr/share/mibs:%{_datadir}/snmp/mibs' \
475 --with-mib-modules="$MIBS" \
476 %{?with_kerberos5:--with-security-modules="ksm"} \
477 --with-sys-contact="root@localhost" \
478 --with-sys-location="Unknown" \
479 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback" \
480 --with-persistent-directory="/var/lib/net-snmp" \
481 --enable-ucd-snmp-compatibility \
483 --with%{!?with_rpm:out}-rpm
489 %{__perl} Makefile.PL \
490 -NET-SNMP-IN-SOURCE=true \
492 OPTIMIZE="%{rpmcflags} %{rpmcppflags}" \
495 # avoid rpaths generated by MakeMaker
496 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
499 LDFLAGS="%{rpmldflags}"
502 rm -rf $RPM_BUILD_ROOT
503 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,snmp},/var/log,/var/lib/net-snmp,%{_libdir}/snmp/dlmod}
505 %{__make} -j1 install \
506 mibdir=%{_datadir}/mibs \
507 DESTDIR=$RPM_BUILD_ROOT
509 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
510 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
511 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
512 :> $RPM_BUILD_ROOT%{logfile}
514 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
515 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
516 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
518 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
519 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
520 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
523 %{__make} -j1 install \
524 DESTDIR=$RPM_BUILD_ROOT
526 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
527 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
530 # IP-Filter (non-Linux)
531 rm -f $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
533 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
534 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Bundle/Makefile.subs.pl
535 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Bundle/NetSNMP/.packlist
537 %if %{with static_libs}
538 # hack: convert DynaLoader.a inside .a file to .o, as strip(1) would otherwise say invalid argument
539 for a in $RPM_BUILD_ROOT%{_libdir}/libnet*.a; do
542 if [ -f DynaLoader.a ]; then
544 ar cr $a DynaLoader.o
546 # remove second file too
551 rm -f $RPM_BUILD_ROOT%{_libdir}/libsnmp.a
555 %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/tests
556 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/*.py
560 rm -rf $RPM_BUILD_ROOT
565 /sbin/chkconfig --add snmpd
566 %service snmpd restart "snmpd daemon"
569 if [ "$1" = "0" ]; then
571 /sbin/chkconfig --del snmpd
574 %post libs -p /sbin/ldconfig
575 %postun libs -p /sbin/ldconfig
577 %triggerpostun -- ucd-snmp
578 /sbin/chkconfig --add snmpd
583 /sbin/chkconfig --add snmptrapd
584 %service snmptrapd restart "snmp trap daemon"
587 if [ "$1" = "0" ]; then
588 %service snmptrapd stop
589 /sbin/chkconfig --del snmptrapd
592 %triggerpostun snmptrapd -- ucd-snmp-snmptrapd
593 /sbin/chkconfig --add snmptrapd
596 %defattr(644,root,root,755)
598 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
599 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
601 %attr(754,root,root) /etc/rc.d/init.d/snmpd
602 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
604 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
605 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
607 %attr(755,root,root) %{_sbindir}/snmpd
608 %attr(755,root,root) %{_bindir}/net-snmp-create-v3-user
611 %dir %{_libdir}/snmp/dlmod
613 %{_mandir}/man1/net-snmp-create-v3-user.1*
614 %{_mandir}/man5/snmpd.conf.5*
615 %{_mandir}/man5/snmpd.examples.5*
616 %{_mandir}/man5/snmpd.internal.5*
617 %{_mandir}/man5/variables.5*
618 %{_mandir}/man8/snmpd.8*
620 %dir %attr(700,root,root) /var/lib/net-snmp
622 %attr(640,root,root) %ghost %{logfile}
625 %defattr(644,root,root,755)
626 %dir %{_sysconfdir}/snmp
627 %dir %{_datadir}/snmp
628 %attr(755,root,root) %{_libdir}/libnetsnmp.so.*.*.*
629 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so.*.*.*
630 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so.*.*.*
631 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so.*.*.*
632 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so.*.*.*
633 %attr(755,root,root) %ghost %{_libdir}/libnetsnmp.so.%{so_version}
634 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpagent.so.%{so_version}
635 %attr(755,root,root) %ghost %{_libdir}/libnetsnmphelpers.so.%{so_version}
636 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpmibs.so.%{so_version}
637 %attr(755,root,root) %ghost %{_libdir}/libnetsnmptrapd.so.%{so_version}
640 %defattr(644,root,root,755)
641 %attr(755,root,root) %{_bindir}/mib2c
642 %attr(755,root,root) %{_bindir}/mib2c-update
643 %attr(755,root,root) %{_bindir}/net-snmp-config
644 %attr(755,root,root) %{_libdir}/libnetsnmp.so
645 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so
646 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so
647 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so
648 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so
649 %{_libdir}/libnetsnmp.la
650 %{_libdir}/libnetsnmpagent.la
651 %{_libdir}/libnetsnmphelpers.la
652 %{_libdir}/libnetsnmpmibs.la
653 %{_libdir}/libnetsnmptrapd.la
654 %{_includedir}/net-snmp
655 %{_datadir}/snmp/mib2c*
656 %{_mandir}/man1/mib2c.1*
657 %{_mandir}/man1/mib2c-update.1*
658 %{_mandir}/man1/net-snmp-config.1*
659 %{_mandir}/man3/[!NS]*
660 %{_mandir}/man5/mib2c.conf.5*
662 %if %{with static_libs}
664 %defattr(644,root,root,755)
665 %{_libdir}/libnetsnmp.a
666 %{_libdir}/libnetsnmpagent.a
667 %{_libdir}/libnetsnmphelpers.a
668 %{_libdir}/libnetsnmpmibs.a
669 %{_libdir}/libnetsnmptrapd.a
673 %defattr(644,root,root,755)
674 %attr(755,root,root) %{_libdir}/libsnmp.so
675 %{_libdir}/libsnmp.la
676 %{_includedir}/ucd-snmp
678 %if %{with static_libs}
680 %defattr(644,root,root,755)
684 %files -n mibs-net-snmp
685 %defattr(644,root,root,755)
686 %{_datadir}/mibs/*.txt
689 %defattr(644,root,root,755)
690 %attr(755,root,root) %{_sbindir}/snmptrapd
691 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
692 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
693 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
695 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
697 %{_mandir}/man5/snmptrapd.conf.5*
698 %{_mandir}/man8/snmptrapd.8*
701 %defattr(644,root,root,755)
702 %attr(755,root,root) %{_bindir}/agentxtrap
703 %attr(755,root,root) %{_bindir}/encode_keychange
704 %attr(755,root,root) %{_bindir}/snmpbulkget
705 %attr(755,root,root) %{_bindir}/snmpbulkwalk
706 %attr(755,root,root) %{_bindir}/snmpdelta
707 %attr(755,root,root) %{_bindir}/snmpdf
708 %attr(755,root,root) %{_bindir}/snmpget
709 %attr(755,root,root) %{_bindir}/snmpgetnext
710 %attr(755,root,root) %{_bindir}/snmpinform
711 %attr(755,root,root) %{_bindir}/snmpnetstat
712 %attr(755,root,root) %{_bindir}/snmpset
713 %attr(755,root,root) %{_bindir}/snmpstatus
714 %attr(755,root,root) %{_bindir}/snmptable
715 %attr(755,root,root) %{_bindir}/snmptest
716 %attr(755,root,root) %{_bindir}/snmptranslate
717 %attr(755,root,root) %{_bindir}/snmptrap
718 %attr(755,root,root) %{_bindir}/snmpusm
719 %attr(755,root,root) %{_bindir}/snmpvacm
720 %attr(755,root,root) %{_bindir}/snmpwalk
721 %{_mandir}/man1/agentxtrap.1*
722 %{_mandir}/man1/encode_keychange.1*
723 %{_mandir}/man1/snmpbulkget.1*
724 %{_mandir}/man1/snmpbulkwalk.1*
725 %{_mandir}/man1/snmpcmd.1*
726 %{_mandir}/man1/snmpdelta.1*
727 %{_mandir}/man1/snmpdf.1*
728 %{_mandir}/man1/snmpget.1*
729 %{_mandir}/man1/snmpgetnext.1*
730 %{_mandir}/man1/snmpinform.1*
731 %{_mandir}/man1/snmpnetstat.1*
732 %{_mandir}/man1/snmpset.1*
733 %{_mandir}/man1/snmpstatus.1*
734 %{_mandir}/man1/snmptable.1*
735 %{_mandir}/man1/snmptest.1*
736 %{_mandir}/man1/snmptranslate.1*
737 %{_mandir}/man1/snmptrap.1*
738 %{_mandir}/man1/snmpusm.1*
739 %{_mandir}/man1/snmpvacm.1*
740 %{_mandir}/man1/snmpwalk.1*
741 %{_mandir}/man5/snmp.conf.5*
742 %{_mandir}/man5/snmp_config.5*
744 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
748 %defattr(644,root,root,755)
749 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
750 %{perl_vendorarch}/SNMP.pm
751 %{perl_vendorarch}/NetSNMP
752 %dir %{perl_vendorarch}/auto/SNMP
753 %{perl_vendorarch}/auto/SNMP/autosplit.ix
754 %{perl_vendorarch}/auto/SNMP/SNMP.bs
755 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
756 %dir %{perl_vendorarch}/auto/NetSNMP
757 %dir %{perl_vendorarch}/auto/NetSNMP/*
758 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
759 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
760 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
761 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
762 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
763 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
764 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
765 %{_mandir}/man3/NetSNMP::*.3*
766 %{_mandir}/man3/SNMP.3*
767 %{_examplesdir}/perl-SNMP-%{version}
770 %defattr(644,root,root,755)
771 %attr(755,root,root) %{_bindir}/fixproc
772 %attr(755,root,root) %{_bindir}/net-snmp-cert
773 %attr(755,root,root) %{_bindir}/snmp-bridge-mib
774 %attr(755,root,root) %{_bindir}/snmpcheck
775 %attr(755,root,root) %{_bindir}/traptoemail
776 %{_mandir}/man1/fixproc.1*
777 %{_mandir}/man1/snmp-bridge-mib.1*
778 %{_mandir}/man1/traptoemail.1*
782 %defattr(644,root,root,755)
783 %attr(755,root,root) %{_bindir}/snmpconf
784 %{_mandir}/man1/snmpconf.1*
785 %{_datadir}/snmp/snmpconf-data
789 %defattr(644,root,root,755)
790 %attr(755,root,root) %{_bindir}/tkmib
791 %{_mandir}/man1/tkmib.1*
795 %files -n python-netsnmp
796 %defattr(644,root,root,755)
797 %dir %{py_sitedir}/netsnmp
798 %attr(755,root,root) %{py_sitedir}/netsnmp/*.so
799 %{py_sitedir}/netsnmp/*.py[co]
800 %{py_sitedir}/netsnmp_python-*.egg-info