3 %bcond_without autodeps # don't BR packages only for deps resolving
5 %include /usr/lib/rpm/macros.perl
6 Summary: A collection of SNMP protocol tools
7 Summary(es): Agente SNMP de la UCD
8 Summary(pl): Kolekcja narzêdzi do obs³ugi protoko³u SNMP
9 Summary(pt_BR): Agente SNMP da UCD
10 Summary(ru): îÁÂÏÒ ÕÔÉÌÉÔ ÄÌÑ ÐÒÏÔÏËÏÌÁ SNMP ÏÔ UC-Davis
11 Summary(uk): îÁÂ¦Ò ÕÔÉÌ¦Ô ÄÌÑ ÐÒÏÔÏËÏÌÕ SNMP ×¦Ä UC-Davis
16 Group: Networking/Daemons
17 Source0: http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
18 # Source0-md5: 360a9783dbc853bab6bda90d961daee5
19 Source1: %{name}d.init
20 Source2: %{name}d.conf
21 Source3: %{name}d.sysconfig
22 Source4: %{name}trapd.init
23 Source5: %{name}trapd.conf
24 Source6: %{name}trapd.sysconfig
25 Source7: ftp://ucd-snmp.ucdavis.edu/contrib/ucd-ipchains.tar.gz
26 # Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
27 Patch0: %{name}-acinclude.patch
28 Patch1: %{name}-acfix.patch
29 Patch2: %{name}-rpm-implicit-libs.patch
30 Patch3: %{name}-config-noflags.patch
31 Patch4: %{name}-dlopen-fix.patch
32 Patch5: %{name}-manpage.patch
33 Patch6: %{name}-link.patch
34 Patch7: %{name}-llinterfaces.patch
35 Patch8: %{name}-kernel_headers.patch
36 Patch9: %{name}-rpmpath.patch
37 URL: http://www.net-snmp.org/
38 BuildRequires: autoconf >= 2.57-3
39 BuildRequires: automake
40 BuildRequires: elfutils-devel
41 BuildRequires: libtool >= 1.4
42 BuildRequires: libwrap-devel
43 BuildRequires: lm_sensors-devel
44 BuildRequires: openssl-devel >= 0.9.7d
45 %{?with_autodeps:BuildRequires: perl-Term-ReadKey}
46 BuildRequires: perl-devel >= 1:5.8.0
47 BuildRequires: rpm-devel >= 4.0
48 BuildRequires: rpm-perlprov >= 3.0.3-16
49 BuildRequires: rpmbuild(macros) >= 1.176
50 BuildRequires: rpmbuild(macros) >= 1.268
51 Requires(post,preun): /sbin/chkconfig
52 Requires: %{name}-libs = %{version}-%{release}
53 Requires: /usr/bin/setsid
54 Requires: rc-scripts >= 0.2.0
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61 %define logfile /var/log/snmpd.log
62 %define filterout_ld -Wl,--as-needed
65 SNMP (Simple Network Management Protocol) is a protocol used for
66 network management (hence the name). The net-snmp project includes
67 various SNMP tools: an extensible agent, an SNMP library, tools for
68 requesting or setting information from SNMP agents, tools for
69 generating and handling SNMP traps, a version of the netstat command
70 which uses SNMP, and a Tk/Perl mib browser. This package contains the
71 snmpd daemon, documentation, etc.
74 Este paquete se deriva de la implementación del Protocolo Simple de
75 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
76 Útil para administrar redes y hacer contabilidad.
79 SNMP (Simple Network Management Protocol) jest protoko³em u¿ywanym do
80 zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
81 agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
82 informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
83 pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
84 w Tk/Perl, demona, dokumentacjê itp.
87 Este pacote é derivado da implementação do Protocolo Simples de
88 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
89 Mellon. Útil para gerenciar redes e fazer contabilidade.
92 SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
93 ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ net-snmp ×ËÌÀÞÁÅÔ
94 ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
95 ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
96 ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
97 ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
98 ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
101 SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
102 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ net-snmp
103 ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, ¦Â̦ÏÔÅËÁ
104 SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁæ§ ×¦Ä NMP-ÁÇÅÎÔ¦×,
105 ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁæ§ ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒÓ¦Ñ ËÏÍÁÎÄÉ netstat,
106 ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ
107 ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
110 Summary: NET SNMP libraries
111 Summary(pl): Biblioteki SNMP
113 Requires: %{name}-mibs = %{version}-%{release}
114 Obsoletes: net-snmp-compat-libs
115 Obsoletes: ucd-snmp-libs
120 %description libs -l pl
124 Summary: The development environment for the net-snmp project
125 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
126 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek net-snmp
127 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
128 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
129 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
130 Group: Development/Libraries
131 Requires: %{name}-libs = %{version}-%{release}
132 Requires: elfutils-devel
133 Requires: libwrap-devel
134 Requires: openssl-devel >= 0.9.7c
136 Obsoletes: ucd-snmp-devel
139 The ucd-snmp-devel package contains the development libraries and
140 header files for use with the net-snmp project's network management
143 %description devel -l es
144 Estas son las bibliotecas y archivos de inclusión para desarrollo con
145 el SNMP de la UCD. Con este paquete es posible la creación de
146 programas para uso en la gestión de redes.
148 %description devel -l pl
149 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
150 aplikacji u¿ywaj±cych protoko³u SNMP.
152 %description devel -l pt_BR
153 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
154 com o SNMP da UCD. Com este pacote é possível a criação de programas
155 para uso no gerenciamento de redes.
157 %description devel -l ru
158 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
159 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ net-snmp.
161 %description devel -l uk
162 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
163 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ net-snmp.
166 Summary: Static net-snmp libraries
167 Summary(pl): Statyczne biblioteki net-snmp
168 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
169 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ net-snmp
170 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ net-snmp
171 Group: Development/Libraries
172 Requires: %{name}-devel = %{version}-%{release}
173 Obsoletes: ucd-snmp-static
176 Static net-snmp libraries.
178 %description static -l pl
179 Statyczne biblioteki net-snmp.
181 %description static -l pt_BR
182 Bibliotecas estáticas para desenvolvimento com net-snmp.
184 %package compat-devel
185 Summary: The development environment for the UCD-SNMP project
186 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
187 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek UCD-SNMP
188 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
189 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
190 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
191 Group: Development/Libraries
192 Requires: %{name}-libs = %{version}-%{release}
193 Requires: openssl-devel >= 0.9.7d
194 Obsoletes: cmu-snmp-devel
195 Obsoletes: ucd-snmp-devel
197 %description compat-devel
198 The ucd-snmp-devel package contains the development libraries and
199 header files for use with the UCD-SNMP project's network management
202 %description compat-devel -l es
203 Estas son las bibliotecas y archivos de inclusión para desarrollo con
204 el SNMP de la UCD. Con este paquete es posible la creación de
205 programas para uso en la gestión de redes.
207 %description compat-devel -l pl
208 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
209 aplikacji u¿ywaj±cych protoko³u SNMP.
211 %description compat-devel -l pt_BR
212 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
213 com o SNMP da UCD. Com este pacote é possível a criação de programas
214 para uso no gerenciamento de redes.
216 %description compat-devel -l ru
217 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
218 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
220 %description compat-devel -l uk
221 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
222 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
224 %package compat-static
225 Summary: Static UCD-SNMP libraries
226 Summary(pl): Statyczne biblioteki UCD-SNMP
227 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
228 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
229 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
230 Group: Development/Libraries
231 Requires: %{name}-compat-devel = %{version}-%{release}
232 Obsoletes: ucd-snmp-static
234 %description compat-static
235 Static UCD-SNMP libraries.
237 %description compat-static -l pl
238 Statyczne biblioteki UCD-SNMP.
240 %description compat-static -l pt_BR
241 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
244 Summary: MIB database
245 Summary(pl): Baza danych MIB
246 Group: Applications/System
247 Conflicts: ucd-snmp-libs
252 %description mibs -l pl
256 Summary: SNMP trap daemon
257 Summary(pl): Demon obs³uguj±cy pu³apki SNMP
258 Group: Applications/System
259 Requires(post,preun): /sbin/chkconfig
260 Requires: %{name} = %{version}-%{release}
261 Requires: rc-scripts >= 0.2.0
262 Obsoletes: cmu-snmp-utils
263 Obsoletes: ucd-snmp-snmptrapd
265 %description snmptrapd
266 The ucd-snmp-snmptrapd package contains snmp trap daemon.
268 %description snmptrapd -l pl
269 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
272 Summary: Network management utilities using SNMP, from the NET-SNMP project
273 Summary(es): Utilitarios del SNMP de la UCD
274 Summary(pl): Narzêdzia u¿ywaj±ce protoko³u SNMP
275 Summary(pt_BR): Utilitários do SNMP da UCD
276 Summary(ru): õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
277 Summary(uk): õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
278 Group: Applications/System
279 Requires: %{name}-libs = %{version}-%{release}
280 Obsoletes: cmu-snmp-utils
281 Obsoletes: ucd-snmp-utils
284 This package contains various utilities for managing your network
285 using the SNMP protocol.
287 %description utils -l es
288 Varios utilitarios para uso con el SNMP de la UCD. Contiene
289 utilitarios como: snmpwalk, snmptest y otros.
291 %description utils -l pl
292 Ró¿nego rodzaju narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u
295 %description utils -l pt_BR
296 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
297 como: snmpwalk, snmptest e outros.
299 %description utils -l ru
300 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
301 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ net-snmp.
303 %description utils -l uk
304 ðÁËÅÔ ucd-snmp-utils ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
305 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ net-snmp.
307 %package -n perl-SNMP
308 Summary: SNMP and NetSNMP::* Perl modules
309 Summary(pl): Modu³y Perla SNMP oraz NetSNMP::*
310 Group: Development/Languages/Perl
311 Requires: %{name}-libs = %{version}-%{release}
312 Conflicts: ucd-snmp-utils-perl
314 %description -n perl-SNMP
315 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
317 %description -n perl-SNMP -l pl
318 Modu³y Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
321 Summary: Perl utilities for network management using SNMP
322 Summary(pl): Perlowe narzêdzia u¿ywaj±ce protoko³u SNMP
323 Group: Applications/System
324 Requires: perl-SNMP = %{version}-%{release}
325 Obsoletes: cmu-snmp-utils
326 Obsoletes: ucd-snmp-utils-perl
328 %description utils-perl
329 This package contains various Perl utilities for managing your network
330 using the SNMP protocol.
332 %description utils-perl -l pl
333 Perlowe narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u SNMP.
336 Summary: snmpconf - creating and modifying SNMP configuration files
337 Summary(pl): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
338 Group: Applications/System
339 Requires: %{name} = %{version}-%{release}
340 Requires: perl-SNMP = %{version}-%{release}
342 %description snmpconf
343 snmpconf is a simple Perl script that walks you through setting up a
344 configuration file step by step. It should be fairly straight forward
347 %description snmpconf -l pl
348 snmpconf to prosty skrypt Perla pozwalaj±cy na tworzenie pliku
349 konfiguracyjnego krok po kroku. Powinien byæ w miarê prosty w u¿yciu.
352 Summary: MIB browser in Tk
353 Summary(pl): Przegl±darka MIB-ów w Tk
354 Group: Applications/System
355 Requires: perl-SNMP = %{version}-%{release}
361 %description tkmib -l pl
362 Przegl±darka MIB-ów w Tk.
383 --with-logfile="%{logfile}" \
384 --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
385 --with-ldflags="%{rpmldflags}" \
386 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
387 --with-sys-location="Unknown" \
388 --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
389 %ifarch %{ix86} %{x8664}
390 ucd-snmp/lmSensors ucd-snmp/diskio \
392 agentx target misc/ipfwacc" \
395 --disable-debugging \
396 --with-persistent-directory="/var/lib/net-snmp" \
398 --with-sys-contact="root@localhost" \
399 --enable-ucd-snmp-compatibility \
401 --with-default-snmp-version=3 \
404 # --enable-reentrant is broken - snmpd deadlocks on send (tries to lock the same mutex twice):
405 # #4 0xb760f54e in siglongjmp () from /lib/tls/libpthread.so.0
406 # #5 0xb7e5e0cf in snmp_res_lock (groupID=0, resourceID=1) at mt_support.c:103
407 # #6 0xb7e45698 in snmp_sess_pointer (session=0x80ff868) at snmp_api.c:6975
408 # #7 0xb7e41aca in snmp_async_send (session=0x80ff868, pdu=0x8141848, callback=0, cb_data=0x0)
410 # #8 0xb7e41a6d in snmp_send (session=0x80ff868, pdu=0x8141848) at snmp_api.c:4551
411 # #9 0xb7ebf6fd in netsnmp_wrap_up_request (asp=0x812d828, status=0) at snmp_agent.c:1627
412 # #10 0xb7ec12e3 in netsnmp_handle_request (asp=0x812d828, status=0) at snmp_agent.c:2996
413 # #11 0xb7ebfa65 in handle_snmp_packet (op=1, session=0x80ff868, reqid=628270607, pdu=0x81419b8,
414 # magic=0x0) at snmp_agent.c:1792
415 # #12 0xb7e42b1c in _sess_process_packet (sessp=0x812c970, sp=0x80ff868, isp=0x812c698,
416 # transport=0x8142028, opaque=0x812c1a0, olength=16,
417 # packetptr=0x8145cb8 "0f\002\001\0030\021\002\004c [Ç\002\003", length=104) at snmp_api.c:5208
418 # #13 0xb7e434e6 in _sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5606
419 # #14 0xb7e43535 in snmp_sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5625
420 # #15 0xb7e42c44 in snmp_read (fdset=0xbfffe0e0) at snmp_api.c:5260
421 # #16 0x0804bbe5 in receive () at snmpd.c:1149
422 # #17 0x0804b53d in main (argc=5, argv=0xbffff344) at snmpd.c:993
423 # [res mutex with groupID=0, resourceID=1 already locked in snmp_read() at snmp_api.c:5258]
425 # build this subdir first. it's causing STRANGE compile failures # otherwise (for me at least). glen
426 %{__make} -C agent/mibgroup
431 %{__perl} Makefile.PL \
432 -NET-SNMP-IN-SOURCE=true \
434 OPTIMIZE="%{rpmcflags}" \
437 # avoid rpaths generated by MakeMaker
438 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
441 LDFLAGS="%{rpmldflags}"
444 rm -rf $RPM_BUILD_ROOT
445 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,snmp},/var/log}
448 INSTALL_PREFIX=$RPM_BUILD_ROOT
450 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
451 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
452 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
453 :> $RPM_BUILD_ROOT%{logfile}
455 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
456 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
457 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
459 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
460 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
461 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
463 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
464 # $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
468 DESTDIR=$RPM_BUILD_ROOT
470 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
471 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
474 # IP-Filter (non-Linux)
475 rm -f $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
478 rm -rf $RPM_BUILD_ROOT
483 /sbin/chkconfig --add snmpd
484 %service snmpd restart "snmpd daemon"
487 if [ "$1" = "0" ]; then
489 /sbin/chkconfig --del snmpd
492 %post libs -p /sbin/ldconfig
493 %postun libs -p /sbin/ldconfig
495 %triggerpostun -- ucd-snmp
496 /sbin/chkconfig --add snmpd
501 /sbin/chkconfig --add snmptrapd
502 %service snmptrapd restart "snmp trap daemon"
505 if [ "$1" = "0" ]; then
506 %service snmptrapd stop
507 /sbin/chkconfig --del snmptrapd
510 %triggerpostun snmptrapd -- ucd-snmp-snmptrapd
511 /sbin/chkconfig --add snmptrapd
514 %defattr(644,root,root,755)
516 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
517 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
519 %attr(754,root,root) /etc/rc.d/init.d/snmpd
520 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
522 %dir %{_sysconfdir}/snmp
523 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
524 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
526 %attr(755,root,root) %{_sbindir}/snmpd
528 %{_mandir}/man5/snmpd.conf.5*
529 %{_mandir}/man5/snmpd.examples.5*
530 %{_mandir}/man5/snmpd.internal.5*
531 %{_mandir}/man5/variables.5*
532 %{_mandir}/man8/snmpd.8*
534 %attr(640,root,root) %ghost %{logfile}
537 %defattr(644,root,root,755)
538 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
541 %defattr(644,root,root,755)
542 %attr(755,root,root) %{_bindir}/mib2c
543 %attr(755,root,root) %{_bindir}/mib2c-update
544 %attr(755,root,root) %{_bindir}/net-snmp-config
545 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
546 %{_libdir}/libnet*.la
547 %{_includedir}/net-snmp
548 %{_datadir}/snmp/mib2c*
549 %{_mandir}/man1/mib2c.1*
550 %{_mandir}/man3/[!NS]*
551 %{_mandir}/man5/mib2c.conf.5*
554 %defattr(644,root,root,755)
558 %defattr(644,root,root,755)
559 %attr(755,root,root) %{_libdir}/libsnmp.so
560 %{_libdir}/libsnmp.la
561 %{_includedir}/ucd-snmp
564 %defattr(644,root,root,755)
568 %defattr(644,root,root,755)
569 %dir %{_datadir}/snmp
570 %{_datadir}/snmp/mibs
573 %defattr(644,root,root,755)
574 %attr(755,root,root) %{_sbindir}/snmptrapd
575 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
576 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
577 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
578 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
579 %{_mandir}/man5/snmptrapd.conf.5*
580 %{_mandir}/man8/snmptrapd.8*
583 %defattr(644,root,root,755)
584 %attr(755,root,root) %{_bindir}/encode_keychange
585 %attr(755,root,root) %{_bindir}/snmpbulkget
586 %attr(755,root,root) %{_bindir}/snmpbulkwalk
587 %attr(755,root,root) %{_bindir}/snmpdelta
588 %attr(755,root,root) %{_bindir}/snmpdf
589 %attr(755,root,root) %{_bindir}/snmpget
590 %attr(755,root,root) %{_bindir}/snmpgetnext
591 %attr(755,root,root) %{_bindir}/snmpinform
592 %attr(755,root,root) %{_bindir}/snmpnetstat
593 %attr(755,root,root) %{_bindir}/snmpset
594 %attr(755,root,root) %{_bindir}/snmpstatus
595 %attr(755,root,root) %{_bindir}/snmptable
596 %attr(755,root,root) %{_bindir}/snmptest
597 %attr(755,root,root) %{_bindir}/snmptranslate
598 %attr(755,root,root) %{_bindir}/snmptrap
599 %attr(755,root,root) %{_bindir}/snmpusm
600 %attr(755,root,root) %{_bindir}/snmpvacm
601 %attr(755,root,root) %{_bindir}/snmpwalk
603 %{_mandir}/man1/snmpbulkget.1*
604 %{_mandir}/man1/snmpbulkwalk.1*
605 %{_mandir}/man1/snmpcmd.1*
606 %{_mandir}/man1/snmpdelta.1*
607 %{_mandir}/man1/snmpdf.1*
608 %{_mandir}/man1/snmpget.1*
609 %{_mandir}/man1/snmpgetnext.1*
610 %{_mandir}/man1/snmpinform.1*
611 %{_mandir}/man1/snmpnetstat.1*
612 %{_mandir}/man1/snmpset.1*
613 %{_mandir}/man1/snmpstatus.1*
614 %{_mandir}/man1/snmptable.1*
615 %{_mandir}/man1/snmptest.1*
616 %{_mandir}/man1/snmptranslate.1*
617 %{_mandir}/man1/snmptrap.1*
618 %{_mandir}/man1/snmpusm.1*
619 %{_mandir}/man1/snmpvacm.1*
620 %{_mandir}/man1/snmpwalk.1*
621 %{_mandir}/man5/snmp.conf.5*
622 %{_mandir}/man5/snmp_config.5*
624 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
627 %defattr(644,root,root,755)
628 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
629 %{perl_vendorarch}/SNMP.pm
630 %{perl_vendorarch}/NetSNMP
631 %dir %{perl_vendorarch}/auto/SNMP
632 %{perl_vendorarch}/auto/SNMP/autosplit.ix
633 %{perl_vendorarch}/auto/SNMP/SNMP.bs
634 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
635 %dir %{perl_vendorarch}/auto/NetSNMP
636 %dir %{perl_vendorarch}/auto/NetSNMP/*
637 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
638 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
639 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
640 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
641 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
642 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
643 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
644 %{_mandir}/man3/NetSNMP::*.3*
645 %{_mandir}/man3/SNMP.3*
646 %{_examplesdir}/perl-SNMP-%{version}
649 %defattr(644,root,root,755)
650 %attr(755,root,root) %{_bindir}/fixproc
651 %attr(755,root,root) %{_bindir}/snmpcheck
652 %attr(755,root,root) %{_bindir}/traptoemail
655 %defattr(644,root,root,755)
656 %attr(755,root,root) %{_bindir}/snmpconf
657 %{_mandir}/man1/snmpconf.1*
658 %{_datadir}/snmp/snmpconf-data
661 %defattr(644,root,root,755)
662 %attr(755,root,root) %{_bindir}/tkmib