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?
7 # /usr/lib64/python2.4/site-packages/netsnmp_python-1.0a1-py2.4.egg-info/PKG-INFO
8 # /usr/lib64/python2.4/site-packages/netsnmp_python-1.0a1-py2.4.egg-info/SOURCES.txt
9 # /usr/lib64/python2.4/site-packages/netsnmp_python-1.0a1-py2.4.egg-info/dependency_links.txt
10 # /usr/lib64/python2.4/site-packages/netsnmp_python-1.0a1-py2.4.egg-info/top_level.txt
11 # /usr/share/snmp/snmp_perl.pl
14 %bcond_without autodeps # don't BR packages only for deps resolving
15 %bcond_without rpm # don't include RPM support
16 %bcond_without kerberos5 # don't include kerberos support
17 %bcond_without lm_sensors # don't include sensors support
18 %bcond_without perl # don't include Perl modules and utils
19 %bcond_without python # don't include Python modules
20 %bcond_without static_libs # don't build static library
22 %ifnarch %{ix86} %{x8664}
23 %undefine with_lm_sensors
26 %include /usr/lib/rpm/macros.perl
27 Summary: A collection of SNMP protocol tools
28 Summary(es.UTF-8): Agente SNMP de la UCD
29 Summary(pl.UTF-8): Kolekcja narzędzi do obsługi protokołu SNMP
30 Summary(pt_BR.UTF-8): Agente SNMP da UCD
31 Summary(ru.UTF-8): Набор утилит для протокола SNMP от UC-Davis
32 Summary(uk.UTF-8): Набір утиліт для протоколу SNMP від UC-Davis
37 Group: Networking/Daemons
38 Source0: http://downloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
39 # Source0-md5: 95aa054f3c99a1ce242807d7eaf98619
40 Source1: %{name}d.init
41 Source2: %{name}d.conf
42 Source3: %{name}d.sysconfig
43 Source4: %{name}trapd.init
44 Source5: %{name}trapd.conf
45 Source6: %{name}trapd.sysconfig
46 Source7: ucd-ipchains.tar.gz
47 # Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
48 Source9: snmpd.logrotate
49 Patch0: %{name}-acfix.patch
50 Patch2: %{name}-config-noflags.patch
51 Patch3: %{name}-manpage.patch
52 Patch4: %{name}-link.patch
53 Patch5: %{name}-llinterfaces.patch
54 Patch6: %{name}-kernel_headers.patch
55 Patch7: %{name}-rpmpath.patch
56 Patch8: %{name}-snmpksm.patch
57 Patch9: %{name}-python.patch
58 Patch10: %{name}-lvalue.patch
59 Patch11: %{name}-defaultconfig.patch
60 Patch12: %{name}-use-rpm-hrmib.patch
61 Patch13: %{name}-snmpnetstat-getbulk.patch
62 Patch16: %{name}-netlink.patch
63 Patch19: %{name}-loadave-writable.patch
64 Patch20: %{name}-logging.patch
65 URL: http://www.net-snmp.org/
66 BuildRequires: autoconf >= 2.61-3
67 BuildRequires: automake
68 BuildRequires: elfutils-devel
69 %{?with_kerberos5:BuildRequires: heimdal-devel}
70 BuildRequires: libnl-devel >= 0.5.0
71 BuildRequires: libtool >= 1.4
72 BuildRequires: libwrap-devel
73 %{?with_lm_sensors:BuildRequires: lm_sensors-devel}
74 BuildRequires: openssl-devel >= 0.9.7d
75 %{?with_autodeps:BuildRequires: perl-Term-ReadKey}
76 BuildRequires: perl-devel >= 1:5.8.0
78 BuildRequires: python-devel
79 BuildRequires: python-modules
80 BuildRequires: python-setuptools
81 BuildRequires: rpm-pythonprov
85 BuildRequires: rpm-perlprov >= 3.0.3-16
87 BuildRequires: rpmbuild(macros) >= 1.268
88 Requires(post,preun): /sbin/chkconfig
89 Requires: %{name}-libs = %{version}-%{release}
90 Requires: /usr/bin/setsid
91 Requires: mibs-%{name} = %{version}-%{release}
92 Requires: rc-scripts >= 0.2.0
97 Conflicts: rpm < 4.4.9-43.11
98 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
100 # linking libraries is ugly in this package
101 %define no_install_post_check_so 1
103 %define logfile /var/log/snmpd.log
106 SNMP (Simple Network Management Protocol) is a protocol used for
107 network management (hence the name). The net-snmp project includes
108 various SNMP tools: an extensible agent, an SNMP library, tools for
109 requesting or setting information from SNMP agents, tools for
110 generating and handling SNMP traps, a version of the netstat command
111 which uses SNMP, and a Tk/Perl mib browser. This package contains the
112 snmpd daemon, documentation, etc.
114 %description -l es.UTF-8
115 Este paquete se deriva de la implementación del Protocolo Simple de
116 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
117 Útil para administrar redes y hacer contabilidad.
119 %description -l pl.UTF-8
120 SNMP (Simple Network Management Protocol) jest protokołem używanym do
121 zarządzania sieciami. Pakiet zawiera narzędzia: rozbudowywalnego
122 agenta, bibliotekę SNMP, narzędzia do odpytywania oraz ustawiania
123 informacji poprzez agentów SNMP, narzędzia do generowania i obsługi
124 pułapek SNMP, wersję komendy netstat używającą SNMP, przeglądarkę mib
125 w Tk/Perl, demona, dokumentację itp.
127 %description -l pt_BR.UTF-8
128 Este pacote é derivado da implementação do Protocolo Simples de
129 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
130 Mellon. Útil para gerenciar redes e fazer contabilidade.
132 %description -l ru.UTF-8
133 SNMP (Simple Network Management Protocol) - это протокол, используемый
134 для управления сетью (отсюда и название). Проект net-snmp включает
135 разнообразные SNMP-утилиты: расширяемый агент, библиотека SNMP,
136 утилиты для запроса или установки информации от SNMP-агентов, утилиты
137 для генерации и обработки SNMP-трапов, версия команды netstat,
138 использующей SNMP, и mib-браузер на Tk/Perl. Этот пакет содержит
139 демоны snmpd и snmptrapd, документацию и т.д.
141 %description -l uk.UTF-8
142 SNMP (Simple Network Management Protocol) - це протокол, який
143 використовують для керування мережею (звідси і назва). Проект net-snmp
144 містить різноманітні SNMP-утиліти: розширюваний агент, бібліотека
145 SNMP, утиліти для запросу та встановлення інформації від NMP-агентів,
146 утиліти для генерації та обробки SNMP-трапів, версія команди netstat,
147 яка використовує SNMP, та mib-браузер на Tk/Perl. Цей пакет містить
148 демони snmpd та snmptrapd, документацію і т.і.
151 Summary: NET SNMP libraries
152 Summary(pl.UTF-8): Biblioteki SNMP
154 Suggests: mibs-%{name}
155 Obsoletes: net-snmp-compat-libs
156 Obsoletes: ucd-snmp-libs
161 %description libs -l pl.UTF-8
165 Summary: The development environment for the net-snmp project
166 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
167 Summary(pl.UTF-8): Pliki dla programistów używających bibliotek net-snmp
168 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
169 Summary(ru.UTF-8): Среда разработки для проекта UCD-SNMP
170 Summary(uk.UTF-8): Середовище розробки для проекту UCD-SNMP
171 Group: Development/Libraries
172 Requires: %{name}-libs = %{version}-%{release}
173 Requires: elfutils-devel
174 %{?with_kerberos5:Requires: heimdal-devel}
175 Requires: libwrap-devel
176 %{?with_lm_sensors:Requires: lm_sensors-devel}
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}-libs = %{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).
447 cp -f /usr/share/automake/config.sub .
452 disman/event disman/schedule \
458 %if %{with lm_sensors}
459 MIBS="$MIBS ucd-snmp/lmSensors"
463 --disable-debugging \
465 %{!?with_static_libs:--disable-static} \
466 --with-cflags="%{rpmcflags} -I/usr/include/et" \
467 --with-ldflags="%{rpmldflags}" \
469 --with-default-snmp-version=3 \
470 %{?with_kerberos5:--with-krb5=%{_prefix}} \
471 %{!?with_kerberos5:--without-krb5} \
472 --with-openssl=%{_prefix} \
473 --with-libwrap=%{_prefix} \
474 --with-logfile="%{logfile}" \
475 --with-zlib=%{_prefix} \
476 --with-bzip2=%{_prefix} \
477 --with%{!?with_perl:out}-perl-modules \
478 --with%{!?with_python:out}-python-modules \
479 --enable-local-smux \
480 --with-mibdirs='$HOME/.snmp/mibs:/usr/share/mibs:%{_datadir}/snmp/mibs' \
481 --with-mib-modules="$MIBS" \
482 %{?with_kerberos5:--with-security-modules="ksm"} \
483 --with-sys-contact="root@localhost" \
484 --with-sys-location="Unknown" \
485 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback" \
486 --with-persistent-directory="/var/lib/net-snmp" \
487 --enable-ucd-snmp-compatibility \
489 --with%{!?with_rpm:out}-rpm
492 PYMAKE='CFLAGS="%{rpmcflags} -DPy_ssize_t=int" python setup.py'
496 %{__perl} Makefile.PL \
497 -NET-SNMP-IN-SOURCE=true \
499 OPTIMIZE="%{rpmcflags}" \
502 # avoid rpaths generated by MakeMaker
503 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
506 LDFLAGS="%{rpmldflags}"
509 rm -rf $RPM_BUILD_ROOT
510 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,logrotate.d,sysconfig,snmp},/var/log,/var/lib/net-snmp,%{_libdir}/snmp/dlmod}
512 %{__make} -j1 install \
513 mibdir=%{_datadir}/mibs \
514 DESTDIR=$RPM_BUILD_ROOT
516 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
517 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
518 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
519 :> $RPM_BUILD_ROOT%{logfile}
521 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
522 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
523 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
525 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
526 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
527 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
529 cp -p %{SOURCE9} $RPM_BUILD_ROOT/etc/logrotate.d/snmpd
532 %{__make} -j1 install \
533 DESTDIR=$RPM_BUILD_ROOT
535 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
536 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
539 # IP-Filter (non-Linux)
540 rm -f $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
542 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
543 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Bundle/Makefile.subs.pl
544 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Bundle/NetSNMP/.packlist
546 %if %{with static_libs}
547 # hack: convert DynaLoader.a inside .a file to .o, as strip(1) would otherwise say invalid argument
548 for a in $RPM_BUILD_ROOT%{_libdir}/libnet*.a; do
551 if [ -f DynaLoader.a ]; then
553 ar cr $a DynaLoader.o
555 # remove second file too
560 rm -f $RPM_BUILD_ROOT%{_libdir}/libsnmp.a
564 %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/tests
565 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/*.py
569 rm -rf $RPM_BUILD_ROOT
574 /sbin/chkconfig --add snmpd
575 %service snmpd restart "snmpd daemon"
578 if [ "$1" = "0" ]; then
580 /sbin/chkconfig --del snmpd
583 %post libs -p /sbin/ldconfig
584 %postun libs -p /sbin/ldconfig
586 %triggerpostun -- ucd-snmp
587 /sbin/chkconfig --add snmpd
592 /sbin/chkconfig --add snmptrapd
593 %service snmptrapd restart "snmp trap daemon"
596 if [ "$1" = "0" ]; then
597 %service snmptrapd stop
598 /sbin/chkconfig --del snmptrapd
601 %triggerpostun snmptrapd -- ucd-snmp-snmptrapd
602 /sbin/chkconfig --add snmptrapd
605 %defattr(644,root,root,755)
607 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
608 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
610 %attr(754,root,root) /etc/rc.d/init.d/snmpd
611 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
612 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/snmpd
614 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
615 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
617 %attr(755,root,root) %{_sbindir}/snmpd
620 %dir %{_libdir}/snmp/dlmod
622 %{_mandir}/man5/snmpd.conf.5*
623 %{_mandir}/man5/snmpd.examples.5*
624 %{_mandir}/man5/snmpd.internal.5*
625 %{_mandir}/man5/variables.5*
626 %{_mandir}/man8/snmpd.8*
628 %dir %attr(700,root,root) /var/lib/net-snmp
630 %attr(640,root,root) %ghost %{logfile}
633 %defattr(644,root,root,755)
634 %dir %{_sysconfdir}/snmp
635 %dir %{_datadir}/snmp
636 %attr(755,root,root) %{_libdir}/libnetsnmp.so.*.*
637 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so.*.*
638 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so.*.*
639 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so.*.*
640 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so.*.*
641 %attr(755,root,root) %ghost %{_libdir}/libnetsnmp.so.15
642 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpagent.so.15
643 %attr(755,root,root) %ghost %{_libdir}/libnetsnmphelpers.so.15
644 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpmibs.so.15
645 %attr(755,root,root) %ghost %{_libdir}/libnetsnmptrapd.so.15
648 %defattr(644,root,root,755)
649 %attr(755,root,root) %{_bindir}/mib2c
650 %attr(755,root,root) %{_bindir}/mib2c-update
651 %attr(755,root,root) %{_bindir}/net-snmp-config
652 %attr(755,root,root) %{_libdir}/libnetsnmp.so
653 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so
654 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so
655 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so
656 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so
657 %{_libdir}/libnetsnmp.la
658 %{_libdir}/libnetsnmpagent.la
659 %{_libdir}/libnetsnmphelpers.la
660 %{_libdir}/libnetsnmpmibs.la
661 %{_libdir}/libnetsnmptrapd.la
662 %{_includedir}/net-snmp
663 %{_datadir}/snmp/mib2c*
664 %{_mandir}/man1/mib2c.1*
665 %{_mandir}/man1/mib2c-update.1*
666 %{_mandir}/man1/net-snmp-config.1*
667 %{_mandir}/man3/[!NS]*
668 %{_mandir}/man5/mib2c.conf.5*
670 %if %{with static_libs}
672 %defattr(644,root,root,755)
677 %defattr(644,root,root,755)
678 %attr(755,root,root) %{_libdir}/libsnmp.so
679 %{_libdir}/libsnmp.la
680 %{_includedir}/ucd-snmp
682 %if %{with static_libs}
684 %defattr(644,root,root,755)
688 %files -n mibs-net-snmp
689 %defattr(644,root,root,755)
690 %{_datadir}/mibs/*.txt
693 %defattr(644,root,root,755)
694 %attr(755,root,root) %{_sbindir}/snmptrapd
695 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
696 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
697 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
699 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
701 %{_mandir}/man5/snmptrapd.conf.5*
702 %{_mandir}/man8/snmptrapd.8*
705 %defattr(644,root,root,755)
706 %attr(755,root,root) %{_bindir}/encode_keychange
707 %attr(755,root,root) %{_bindir}/snmpbulkget
708 %attr(755,root,root) %{_bindir}/snmpbulkwalk
709 %attr(755,root,root) %{_bindir}/snmpdelta
710 %attr(755,root,root) %{_bindir}/snmpdf
711 %attr(755,root,root) %{_bindir}/snmpget
712 %attr(755,root,root) %{_bindir}/snmpgetnext
713 %attr(755,root,root) %{_bindir}/snmpinform
714 %attr(755,root,root) %{_bindir}/snmpnetstat
715 %attr(755,root,root) %{_bindir}/snmpset
716 %attr(755,root,root) %{_bindir}/snmpstatus
717 %attr(755,root,root) %{_bindir}/snmptable
718 %attr(755,root,root) %{_bindir}/snmptest
719 %attr(755,root,root) %{_bindir}/snmptranslate
720 %attr(755,root,root) %{_bindir}/snmptrap
721 %attr(755,root,root) %{_bindir}/snmpusm
722 %attr(755,root,root) %{_bindir}/snmpvacm
723 %attr(755,root,root) %{_bindir}/snmpwalk
724 %{_mandir}/man1/encode_keychange.1*
725 %{_mandir}/man1/snmpbulkget.1*
726 %{_mandir}/man1/snmpbulkwalk.1*
727 %{_mandir}/man1/snmpcmd.1*
728 %{_mandir}/man1/snmpdelta.1*
729 %{_mandir}/man1/snmpdf.1*
730 %{_mandir}/man1/snmpget.1*
731 %{_mandir}/man1/snmpgetnext.1*
732 %{_mandir}/man1/snmpinform.1*
733 %{_mandir}/man1/snmpnetstat.1*
734 %{_mandir}/man1/snmpset.1*
735 %{_mandir}/man1/snmpstatus.1*
736 %{_mandir}/man1/snmptable.1*
737 %{_mandir}/man1/snmptest.1*
738 %{_mandir}/man1/snmptranslate.1*
739 %{_mandir}/man1/snmptrap.1*
740 %{_mandir}/man1/snmpusm.1*
741 %{_mandir}/man1/snmpvacm.1*
742 %{_mandir}/man1/snmpwalk.1*
743 %{_mandir}/man5/snmp.conf.5*
744 %{_mandir}/man5/snmp_config.5*
746 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
750 %defattr(644,root,root,755)
751 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
752 %{perl_vendorarch}/SNMP.pm
753 %{perl_vendorarch}/NetSNMP
754 %dir %{perl_vendorarch}/auto/SNMP
755 %{perl_vendorarch}/auto/SNMP/autosplit.ix
756 %{perl_vendorarch}/auto/SNMP/SNMP.bs
757 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
758 %dir %{perl_vendorarch}/auto/NetSNMP
759 %dir %{perl_vendorarch}/auto/NetSNMP/*
760 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
761 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
762 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
763 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
764 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
765 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
766 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
767 %{_mandir}/man3/NetSNMP::*.3*
768 %{_mandir}/man3/SNMP.3*
769 %{_examplesdir}/perl-SNMP-%{version}
772 %defattr(644,root,root,755)
773 %attr(755,root,root) %{_bindir}/fixproc
774 %attr(755,root,root) %{_bindir}/snmpcheck
775 %attr(755,root,root) %{_bindir}/traptoemail
776 %{_mandir}/man1/fixproc.1*
777 %{_mandir}/man1/traptoemail.1*
781 %defattr(644,root,root,755)
782 %attr(755,root,root) %{_bindir}/snmpconf
783 %{_mandir}/man1/snmpconf.1*
784 %{_datadir}/snmp/snmpconf-data
788 %defattr(644,root,root,755)
789 %attr(755,root,root) %{_bindir}/tkmib
790 %{_mandir}/man1/tkmib.1*
794 %files -n python-netsnmp
795 %defattr(644,root,root,755)
796 %dir %{py_sitedir}/netsnmp
797 %attr(755,root,root) %{py_sitedir}/netsnmp/*.so
798 %{py_sitedir}/netsnmp/*.py[co]