2 # - make noarch -n mibs-net-snmp package (need separate .spec then)
3 # - FHS: #define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
6 %bcond_without rpm # don't include RPM support
7 %bcond_without kerberos5 # don't include kerberos support
8 %bcond_without lm_sensors # don't include sensors support
9 %bcond_without perl # don't include Perl modules and utils
10 %bcond_without python # don't include Python modules
11 %bcond_without static_libs # don't build static library
13 %ifnarch %{ix86} %{x8664} x32
14 %undefine with_lm_sensors
18 %include /usr/lib/rpm/macros.perl
19 Summary: A collection of SNMP protocol tools
20 Summary(es.UTF-8): Agente SNMP de la UCD
21 Summary(pl.UTF-8): Kolekcja narzędzi do obsługi protokołu SNMP
22 Summary(pt_BR.UTF-8): Agente SNMP da UCD
23 Summary(ru.UTF-8): Набор утилит для протокола SNMP от UC-Davis
24 Summary(uk.UTF-8): Набір утиліт для протоколу SNMP від UC-Davis
26 # NOTE: 5.7.x is LTS version
30 Group: Networking/Daemons
31 Source0: http://downloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
32 # Source0-md5: 63bfc65fbb86cdb616598df1aff6458a
33 Source1: %{name}d.init
34 Source2: %{name}d.conf
35 Source3: %{name}d.sysconfig
36 Source4: %{name}trapd.init
37 Source5: %{name}trapd.conf
38 Source6: %{name}trapd.sysconfig
39 Source7: ucd-ipchains.tar.gz
40 # Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
41 Source9: snmpd.logrotate
42 Patch0: %{name}-acfix.patch
43 Patch1: %{name}-rpm-implicit-libs.patch
44 Patch2: %{name}-config-noflags.patch
45 Patch3: %{name}-manpage.patch
46 Patch4: %{name}-link.patch
47 Patch5: %{name}-llinterfaces.patch
48 Patch6: %{name}-kernel_headers.patch
49 Patch7: %{name}-rpmpath.patch
50 Patch8: %{name}-python.patch
51 Patch9: %{name}-lvalue.patch
52 Patch10: %{name}-defaultconfig.patch
53 Patch11: %{name}-use-rpm-hrmib.patch
54 Patch12: %{name}-TCP_STATS_CACHE_TIMEOUT.patch
55 Patch13: %{name}-logging.patch
56 Patch14: %{name}-Remove-U64-typedef.patch
57 Patch15: 1314610.patch
58 URL: http://www.net-snmp.org/
59 BuildRequires: autoconf >= 2.63
60 BuildRequires: automake
61 BuildRequires: elfutils-devel
62 %{?with_kerberos5:BuildRequires: heimdal-devel}
63 BuildRequires: libnl-devel >= 1:3.2
64 BuildRequires: libpcap-devel
65 BuildRequires: libssh2-devel
66 BuildRequires: libtool >= 1.4
67 BuildRequires: libwrap-devel
68 %{?with_lm_sensors:BuildRequires: lm_sensors-devel >= 3.0.1}
69 BuildRequires: ncurses-devel
70 BuildRequires: openssl-devel >= 0.9.7d
71 BuildRequires: pciutils-devel
72 BuildRequires: pcre-devel
73 BuildRequires: perl-devel >= 1:5.8.0
74 BuildRequires: pkgconfig >= 1:0.9.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}-agent-libs = %{version}-%{release}
88 Requires: %{name}-libs = %{version}-%{release}
89 Requires: /usr/bin/setsid
90 Requires: mibs-%{name} = %{version}-%{release}
91 Requires: rc-scripts >= 0.4.3.0
96 Conflicts: pciutils < 3.1.7-5
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 NET-SNMP runtime agent libraries
166 Summary(pl.UTF-8): Biblioteki uruchomieniowe agenta NET-SNMP
168 Requires: %{name}-libs = %{version}-%{release}
170 %description agent-libs
171 The net-snmp-agent-libs package contains the runtime agent libraries
172 for shared binaries and applications.
174 %description agent-libs -l pl.UTF-8
175 Ten pakiet zawiera biblioteki uruchomieniowe agenta SNMP.
178 Summary: The development environment for the net-snmp project
179 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
180 Summary(pl.UTF-8): Pliki dla programistów używających bibliotek net-snmp
181 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
182 Summary(ru.UTF-8): Среда разработки для проекта NET-SNMP
183 Summary(uk.UTF-8): Середовище розробки для проекту NET-SNMP
184 Group: Development/Libraries
185 Requires: %{name}-agent-libs = %{version}-%{release}
186 Requires: %{name}-libs = %{version}-%{release}
187 Requires: elfutils-devel
188 %{?with_kerberos5:Requires: heimdal-devel}
189 Requires: libnl-devel >= 1:3.2
190 Requires: libwrap-devel
191 %{?with_lm_sensors:Requires: lm_sensors-devel >= 3.0.1}
192 Requires: openssl-devel >= 0.9.7c
193 Requires: pciutils-devel
194 Obsoletes: ucd-snmp-devel
197 The ucd-snmp-devel package contains the development libraries and
198 header files for use with the net-snmp project's network management
201 %description devel -l es.UTF-8
202 Estas son las bibliotecas y archivos de inclusión para desarrollo con
203 el SNMP de la UCD. Con este paquete es posible la creación de
204 programas para uso en la gestión de redes.
206 %description devel -l pl.UTF-8
207 Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
208 aplikacji używających protokołu SNMP.
210 %description devel -l pt_BR.UTF-8
211 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
212 com o SNMP da UCD. Com este pacote é possível a criação de programas
213 para uso no gerenciamento de redes.
215 %description devel -l ru.UTF-8
216 Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
217 использования с утилитами управления сетью проекта net-snmp.
219 %description devel -l uk.UTF-8
220 Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
221 використання з утилітами керування мережею проекту net-snmp.
224 Summary: Static net-snmp libraries
225 Summary(pl.UTF-8): Statyczne biblioteki net-snmp
226 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ucd-snmp
227 Summary(ru.UTF-8): Статические библиотеки для проекта net-snmp
228 Summary(uk.UTF-8): Статичні бібліотеки для проекту net-snmp
229 Group: Development/Libraries
230 Requires: %{name}-devel = %{version}-%{release}
231 Obsoletes: ucd-snmp-static
234 Static net-snmp libraries.
236 %description static -l pl.UTF-8
237 Statyczne biblioteki net-snmp.
239 %description static -l pt_BR.UTF-8
240 Bibliotecas estáticas para desenvolvimento com net-snmp.
242 %package compat-devel
243 Summary: The development environment for the NET-SNMP project
244 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
245 Summary(pl.UTF-8): Pliki dla programistów używających bibliotek NET-SNMP
246 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
247 Summary(ru.UTF-8): Среда разработки для проекта NET-SNMP
248 Summary(uk.UTF-8): Середовище розробки для проекту NET-SNMP
249 Group: Development/Libraries
250 Requires: %{name}-devel = %{version}-%{release}
251 Requires: openssl-devel >= 0.9.7d
252 Obsoletes: cmu-snmp-devel
253 Obsoletes: ucd-snmp-devel
255 %description compat-devel
256 The ucd-snmp-devel package contains the development libraries and
257 header files for use with the NET-SNMP project's network management
260 %description compat-devel -l es.UTF-8
261 Estas son las bibliotecas y archivos de inclusión para desarrollo con
262 el SNMP de la UCD. Con este paquete es posible la creación de
263 programas para uso en la gestión de redes.
265 %description compat-devel -l pl.UTF-8
266 Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
267 aplikacji używających protokołu SNMP.
269 %description compat-devel -l pt_BR.UTF-8
270 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
271 com o SNMP da UCD. Com este pacote é possível a criação de programas
272 para uso no gerenciamento de redes.
274 %description compat-devel -l ru.UTF-8
275 Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
276 использования с утилитами управления сетью проекта NET-SNMP.
278 %description compat-devel -l uk.UTF-8
279 Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
280 використання з утилітами керування мережею проекту NET-SNMP.
282 %package compat-static
283 Summary: Static NET-SNMP libraries
284 Summary(pl.UTF-8): Statyczne biblioteki NET-SNMP
285 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ucd-snmp
286 Summary(ru.UTF-8): Статические библиотеки для проекта NET-SNMP
287 Summary(uk.UTF-8): Статичні бібліотеки для проекту NET-SNMP
288 Group: Development/Libraries
289 Requires: %{name}-compat-devel = %{version}-%{release}
290 Obsoletes: ucd-snmp-static
292 %description compat-static
293 Static NET-SNMP libraries.
295 %description compat-static -l pl.UTF-8
296 Statyczne biblioteki NET-SNMP.
298 %description compat-static -l pt_BR.UTF-8
299 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
301 %package -n mibs-net-snmp
302 Summary: Net-SNMP provided MIBs
303 Summary(pl.UTF-8): Baza danych MIB
304 Group: Applications/System
306 Obsoletes: net-snmp-mibs
307 Conflicts: ucd-snmp-libs
308 %if "%{_rpmversion}" >= "5"
312 %description -n mibs-net-snmp
313 Net-SNMP provided MIBs (Management Information Base).
315 %description -n mibs-net-snmp -l pl.UTF-8
319 Summary: SNMP trap daemon
320 Summary(pl.UTF-8): Demon obsługujący pułapki SNMP
321 Group: Applications/System
322 Requires(post,preun): /sbin/chkconfig
323 Requires: %{name} = %{version}-%{release}
324 Requires: rc-scripts >= 0.2.0
325 Obsoletes: cmu-snmp-utils
326 Obsoletes: ucd-snmp-snmptrapd
328 %description snmptrapd
329 The ucd-snmp-snmptrapd package contains snmp trap daemon.
331 %description snmptrapd -l pl.UTF-8
332 Pakiet zawiera demon obsługujący pułapki SNMP.
335 Summary: Network management utilities using SNMP, from the NET-SNMP project
336 Summary(es.UTF-8): Utilitarios del SNMP de la UCD
337 Summary(pl.UTF-8): Narzędzia używające protokołu SNMP
338 Summary(pt_BR.UTF-8): Utilitários do SNMP da UCD
339 Summary(ru.UTF-8): Утилиты управления сетью по SNMP из проекта NET-SNMP
340 Summary(uk.UTF-8): Утиліти керування мережею по SNMP з проекту NET-SNMP
341 Group: Applications/System
342 Requires: %{name}-libs = %{version}-%{release}
343 Requires: %{name}-agent-libs = %{version}-%{release}
344 Suggests: mibs-%{name} = %{version}-%{release}
345 Obsoletes: cmu-snmp-utils
346 Obsoletes: ucd-snmp-utils
349 This package contains various utilities for managing your network
350 using the SNMP protocol.
352 %description utils -l es.UTF-8
353 Varios utilitarios para uso con el SNMP de la UCD. Contiene
354 utilitarios como: snmpwalk, snmptest y otros.
356 %description utils -l pl.UTF-8
357 Różnego rodzaju narzędzia do zarządzania siecią przy użyciu protokołu
360 %description utils -l pt_BR.UTF-8
361 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
362 como: snmpwalk, snmptest e outros.
364 %description utils -l ru.UTF-8
365 Пакет ucd-snmp-utils содержит разнообразные утилиты для использования
366 в проекте управления сетью net-snmp.
368 %description utils -l uk.UTF-8
369 Пакет ucd-snmp-utils містить різноманітні утиліти для використання в
370 проекті керування мережею net-snmp.
372 %package -n perl-SNMP
373 Summary: SNMP and NetSNMP::* Perl modules
374 Summary(pl.UTF-8): Moduły Perla SNMP oraz NetSNMP::*
375 Group: Development/Languages/Perl
376 Requires: %{name}-agent-libs = %{version}-%{release}
377 Requires: %{name}-libs = %{version}-%{release}
378 Conflicts: ucd-snmp-utils-perl
380 %description -n perl-SNMP
381 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
383 %description -n perl-SNMP -l pl.UTF-8
384 Moduły Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
387 Summary: Perl utilities for network management using SNMP
388 Summary(pl.UTF-8): Perlowe narzędzia używające protokołu SNMP
389 Group: Applications/System
390 Requires: perl-SNMP = %{version}-%{release}
391 Obsoletes: cmu-snmp-utils
392 Obsoletes: ucd-snmp-utils-perl
394 %description utils-perl
395 This package contains various Perl utilities for managing your network
396 using the SNMP protocol.
398 %description utils-perl -l pl.UTF-8
399 Perlowe narzędzia do zarządzania siecią przy użyciu protokołu SNMP.
402 Summary: snmpconf - creating and modifying SNMP configuration files
403 Summary(pl.UTF-8): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
404 Group: Applications/System
405 Requires: %{name} = %{version}-%{release}
406 Requires: perl-SNMP = %{version}-%{release}
408 %description snmpconf
409 snmpconf is a simple Perl script that walks you through setting up a
410 configuration file step by step. It should be fairly straight forward
413 %description snmpconf -l pl.UTF-8
414 snmpconf to prosty skrypt Perla pozwalający na tworzenie pliku
415 konfiguracyjnego krok po kroku. Powinien być w miarę prosty w użyciu.
418 Summary: MIB browser in Tk
419 Summary(pl.UTF-8): Przeglądarka MIB-ów w Tk
420 Group: Applications/System
421 Requires: perl-SNMP = %{version}-%{release}
427 %description tkmib -l pl.UTF-8
428 Przeglądarka MIB-ów w Tk.
430 %package -n python-netsnmp
431 Summary: Python netsnmp extension module
432 Summary(pl.UTF-8): Moduł rozszerzenia netsnmp dla Pythona
433 Group: Libraries/Python
434 Requires: %{name}-libs = %{version}-%{release}
436 %description -n python-netsnmp
437 The 'netsnmp' Python extension module provides a full featured,
438 tri-lingual SNMP (SNMPv3, SNMPv2c, SNMPv1) client API.
440 %description -n python-netsnmp -l pl.UTF-8
441 Moduł rozszerzenia netsnmp dla Pythona udostępnia pełne API klienckie
442 SNMP dla trzech wersji tego protokołu (SNMPv3, SNMPv2c, SNMPv1).
471 disman/event disman/schedule \
477 %if %{with lm_sensors}
478 MIBS="$MIBS ucd-snmp/lmsensorsMib"
481 # ksm must be first in --with-security-modules
482 # usm is always enabled
484 ac_cv_path_DPKG_QUERY_PATH= \
486 %{__disable static_libs static} \
487 --with-cflags="%{rpmcflags} %{rpmcppflags} -I/usr/include/et" \
488 --with-ldflags="%{rpmldflags}" \
490 --with-default-snmp-version=3 \
491 %{__with_without kerberos5 krb5} \
494 --with-logfile=%{logfile} \
498 %{__with_without perl perl-modules} \
499 %{__with_without python python-modules} \
500 --enable-local-smux \
501 --with-mibdirs='$HOME/.snmp/mibs:/usr/share/mibs' \
502 --with-mib-modules="$MIBS" \
503 --with-security-modules="%{?with_kerberos5:ksm }tsm" \
504 --with-sys-contact="root@localhost" \
505 --with-sys-location="Unknown" \
506 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback Alias DTLSUDP TLSTCP SSH" \
507 --with-persistent-directory="/var/lib/net-snmp" \
508 --enable-ucd-snmp-compatibility \
510 %{!?debug:--disable-debugging} \
511 %{__with_without rpm}
516 %{__perl} -I. Makefile.PL \
517 -NET-SNMP-IN-SOURCE=true \
519 OPTIMIZE="%{rpmcflags} %{rpmcppflags}" \
522 # avoid rpaths generated by MakeMaker
523 %{__perl} -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
527 LDFLAGS="%{rpmldflags} -L$bd/snmplib/.libs/ -L$bd/agent/.libs/"
530 rm -rf $RPM_BUILD_ROOT
531 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,logrotate.d,sysconfig,snmp},/var/log,/var/lib/net-snmp,%{_libdir}/snmp/dlmod}
533 %{__make} -j1 install \
534 mibdir=%{_datadir}/mibs \
535 DESTDIR=$RPM_BUILD_ROOT
537 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
538 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
539 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
540 :> $RPM_BUILD_ROOT%{logfile}
542 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
543 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
544 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
546 install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
547 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
548 cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
550 cp -p %{SOURCE9} $RPM_BUILD_ROOT/etc/logrotate.d/snmpd
553 %{__make} -j1 install \
554 DESTDIR=$RPM_BUILD_ROOT
556 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
557 install -p SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
560 # IP-Filter (non-Linux)
561 %{__rm} $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
563 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Bundle/MakefileSubs.pm
564 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
565 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Bundle/NetSNMP/.packlist
567 %if %{with static_libs}
568 # hack: convert DynaLoader.a inside .a file to .o, as strip(1) would otherwise say invalid argument
569 for a in $RPM_BUILD_ROOT%{_libdir}/libnet*.a; do
572 if [ -f DynaLoader.a ]; then
574 ar cr $a DynaLoader.o
576 # remove second file too
581 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsnmp.a
585 %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/tests
586 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/*.py
590 rm -rf $RPM_BUILD_ROOT
595 /sbin/chkconfig --add snmpd
596 %service snmpd restart "snmpd daemon"
599 if [ "$1" = "0" ]; then
601 /sbin/chkconfig --del snmpd
604 %post libs -p /sbin/ldconfig
605 %postun libs -p /sbin/ldconfig
607 %post agent-libs -p /sbin/ldconfig
608 %postun agent-libs -p /sbin/ldconfig
610 %triggerpostun -- ucd-snmp
611 /sbin/chkconfig --add snmpd
616 /sbin/chkconfig --add snmptrapd
617 %service snmptrapd restart "snmp trap daemon"
620 if [ "$1" = "0" ]; then
621 %service snmptrapd stop
622 /sbin/chkconfig --del snmptrapd
625 %triggerpostun snmptrapd -- ucd-snmp-snmptrapd
626 /sbin/chkconfig --add snmptrapd
629 %defattr(644,root,root,755)
630 %doc AGENT.txt CHANGES COPYING ChangeLog EXAMPLE.conf{,.def} FAQ NEWS README{,.agent-mibs,.agentx,.snmpv3,.sql,.thread} TODO local
632 %attr(754,root,root) /etc/rc.d/init.d/snmpd
633 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
634 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/snmpd
636 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
637 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
639 %attr(755,root,root) %{_sbindir}/snmpd
640 %attr(755,root,root) %{_bindir}/net-snmp-create-v3-user
641 %attr(755,root,root) %{_bindir}/sshtosnmp
643 %dir %{_libdir}/snmp/dlmod
644 %attr(755,root,root) %{_datadir}/snmp/snmp_perl.pl
645 %{_mandir}/man1/net-snmp-create-v3-user.1*
646 %{_mandir}/man5/snmpd.conf.5*
647 %{_mandir}/man5/snmpd.examples.5*
648 %{_mandir}/man5/snmpd.internal.5*
649 %{_mandir}/man5/variables.5*
650 %{_mandir}/man8/snmpd.8*
652 %dir %attr(700,root,root) /var/lib/net-snmp
654 %attr(640,root,root) %ghost %{logfile}
657 %defattr(644,root,root,755)
658 %attr(755,root,root) %{_libdir}/libnetsnmp.so.*.*.*
659 %attr(755,root,root) %ghost %{_libdir}/libnetsnmp.so.%{so_version}
660 %dir %{_sysconfdir}/snmp
661 %dir %{_datadir}/snmp
664 %defattr(644,root,root,755)
665 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so.*.*.*
666 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpagent.so.%{so_version}
667 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so.*.*.*
668 %attr(755,root,root) %ghost %{_libdir}/libnetsnmphelpers.so.%{so_version}
669 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so.*.*.*
670 %attr(755,root,root) %ghost %{_libdir}/libnetsnmpmibs.so.%{so_version}
671 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so.*.*.*
672 %attr(755,root,root) %ghost %{_libdir}/libnetsnmptrapd.so.%{so_version}
675 %defattr(644,root,root,755)
676 %attr(755,root,root) %{_bindir}/mib2c
677 %attr(755,root,root) %{_bindir}/mib2c-update
678 %attr(755,root,root) %{_bindir}/net-snmp-config
679 %attr(755,root,root) %{_libdir}/libnetsnmp.so
680 %attr(755,root,root) %{_libdir}/libnetsnmpagent.so
681 %attr(755,root,root) %{_libdir}/libnetsnmphelpers.so
682 %attr(755,root,root) %{_libdir}/libnetsnmpmibs.so
683 %attr(755,root,root) %{_libdir}/libnetsnmptrapd.so
684 %{_libdir}/libnetsnmp.la
685 %{_libdir}/libnetsnmpagent.la
686 %{_libdir}/libnetsnmphelpers.la
687 %{_libdir}/libnetsnmpmibs.la
688 %{_libdir}/libnetsnmptrapd.la
689 %{_includedir}/net-snmp
690 %{_datadir}/snmp/mib2c*
691 %{_mandir}/man1/mib2c.1*
692 %{_mandir}/man1/mib2c-update.1*
693 %{_mandir}/man1/net-snmp-config.1*
694 %{_mandir}/man3/[!NS]*
695 %{_mandir}/man5/mib2c.conf.5*
697 %if %{with static_libs}
699 %defattr(644,root,root,755)
700 %{_libdir}/libnetsnmp.a
701 %{_libdir}/libnetsnmpagent.a
702 %{_libdir}/libnetsnmphelpers.a
703 %{_libdir}/libnetsnmpmibs.a
704 %{_libdir}/libnetsnmptrapd.a
708 %defattr(644,root,root,755)
709 %attr(755,root,root) %{_libdir}/libsnmp.so
710 %{_libdir}/libsnmp.la
711 %{_includedir}/ucd-snmp
713 %if %{with static_libs}
715 %defattr(644,root,root,755)
719 %files -n mibs-net-snmp
720 %defattr(644,root,root,755)
721 %{_datadir}/mibs/*.txt
724 %defattr(644,root,root,755)
725 %attr(755,root,root) %{_sbindir}/snmptrapd
726 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
727 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
728 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
730 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
732 %{_mandir}/man5/snmptrapd.conf.5*
733 %{_mandir}/man8/snmptrapd.8*
736 %defattr(644,root,root,755)
737 %attr(755,root,root) %{_bindir}/agentxtrap
738 %attr(755,root,root) %{_bindir}/encode_keychange
739 %attr(755,root,root) %{_bindir}/snmpbulkget
740 %attr(755,root,root) %{_bindir}/snmpbulkwalk
741 %attr(755,root,root) %{_bindir}/snmpdelta
742 %attr(755,root,root) %{_bindir}/snmpdf
743 %attr(755,root,root) %{_bindir}/snmpget
744 %attr(755,root,root) %{_bindir}/snmpgetnext
745 %attr(755,root,root) %{_bindir}/snmpinform
746 %attr(755,root,root) %{_bindir}/snmpnetstat
747 %attr(755,root,root) %{_bindir}/snmppcap
748 %attr(755,root,root) %{_bindir}/snmpping
749 %attr(755,root,root) %{_bindir}/snmpps
750 %attr(755,root,root) %{_bindir}/snmpset
751 %attr(755,root,root) %{_bindir}/snmpstatus
752 %attr(755,root,root) %{_bindir}/snmptable
753 %attr(755,root,root) %{_bindir}/snmptest
754 %attr(755,root,root) %{_bindir}/snmptls
755 %attr(755,root,root) %{_bindir}/snmptop
756 %attr(755,root,root) %{_bindir}/snmptranslate
757 %attr(755,root,root) %{_bindir}/snmptrap
758 %attr(755,root,root) %{_bindir}/snmpusm
759 %attr(755,root,root) %{_bindir}/snmpvacm
760 %attr(755,root,root) %{_bindir}/snmpwalk
761 %{_mandir}/man1/agentxtrap.1*
762 %{_mandir}/man1/encode_keychange.1*
763 %{_mandir}/man1/snmpbulkget.1*
764 %{_mandir}/man1/snmpbulkwalk.1*
765 %{_mandir}/man1/snmpcmd.1*
766 %{_mandir}/man1/snmpdelta.1*
767 %{_mandir}/man1/snmpdf.1*
768 %{_mandir}/man1/snmpget.1*
769 %{_mandir}/man1/snmpgetnext.1*
770 %{_mandir}/man1/snmpinform.1*
771 %{_mandir}/man1/snmpnetstat.1*
772 %{_mandir}/man1/snmpps.1*
773 %{_mandir}/man1/snmpset.1*
774 %{_mandir}/man1/snmpstatus.1*
775 %{_mandir}/man1/snmptable.1*
776 %{_mandir}/man1/snmptest.1*
777 %{_mandir}/man1/snmptop.1*
778 %{_mandir}/man1/snmptranslate.1*
779 %{_mandir}/man1/snmptrap.1*
780 %{_mandir}/man1/snmpusm.1*
781 %{_mandir}/man1/snmpvacm.1*
782 %{_mandir}/man1/snmpwalk.1*
783 %{_mandir}/man5/snmp.conf.5*
784 %{_mandir}/man5/snmp_config.5*
786 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
790 %defattr(644,root,root,755)
791 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
792 %{perl_vendorarch}/SNMP.pm
793 %{perl_vendorarch}/NetSNMP
794 %dir %{perl_vendorarch}/auto/SNMP
795 %{perl_vendorarch}/auto/SNMP/autosplit.ix
796 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
797 %dir %{perl_vendorarch}/auto/NetSNMP
798 %dir %{perl_vendorarch}/auto/NetSNMP/*
799 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
800 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
801 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
802 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
803 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
804 %{_mandir}/man3/NetSNMP::*.3*
805 %{_mandir}/man3/SNMP.3*
806 %{_examplesdir}/perl-SNMP-%{version}
809 %defattr(644,root,root,755)
810 %attr(755,root,root) %{_bindir}/checkbandwidth
811 %attr(755,root,root) %{_bindir}/fixproc
812 %attr(755,root,root) %{_bindir}/net-snmp-cert
813 %attr(755,root,root) %{_bindir}/snmp-bridge-mib
814 %attr(755,root,root) %{_bindir}/snmpcheck
815 %attr(755,root,root) %{_bindir}/traptoemail
816 %{_mandir}/man1/fixproc.1*
817 %{_mandir}/man1/snmp-bridge-mib.1*
818 %{_mandir}/man1/traptoemail.1*
822 %defattr(644,root,root,755)
823 %attr(755,root,root) %{_bindir}/snmpconf
824 %{_mandir}/man1/snmpconf.1*
825 %{_datadir}/snmp/snmpconf-data
829 %defattr(644,root,root,755)
830 %attr(755,root,root) %{_bindir}/tkmib
831 %{_mandir}/man1/tkmib.1*
835 %files -n python-netsnmp
836 %defattr(644,root,root,755)
837 %dir %{py_sitedir}/netsnmp
838 %attr(755,root,root) %{py_sitedir}/netsnmp/client_intf.so
839 %{py_sitedir}/netsnmp/*.py[co]
840 %{py_sitedir}/netsnmp_python-*.egg-info