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: 46d893281056ff476e597659cb91574d
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: ucd-ipchains.tar.gz
26 # Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
27 Patch0: %{name}-acfix.patch
28 Patch1: %{name}-rpm-implicit-libs.patch
29 Patch2: %{name}-config-noflags.patch
30 Patch3: %{name}-dlopen-fix.patch
31 Patch4: %{name}-manpage.patch
32 Patch5: %{name}-link.patch
33 Patch6: %{name}-llinterfaces.patch
34 Patch7: %{name}-kernel_headers.patch
35 Patch8: %{name}-rpmpath.patch
36 Patch9: %{name}-snmpksm.patch
37 URL: http://www.net-snmp.org/
38 BuildRequires: autoconf >= 2.57-3
39 BuildRequires: automake
40 BuildRequires: elfutils-devel
41 BuildRequires: heimdal-devel
42 BuildRequires: libtool >= 1.4
43 BuildRequires: libwrap-devel
44 BuildRequires: lm_sensors-devel
45 BuildRequires: openssl-devel >= 0.9.7d
46 %{?with_autodeps:BuildRequires: perl-Term-ReadKey}
47 BuildRequires: perl-devel >= 1:5.8.0
48 BuildRequires: python-devel
49 BuildRequires: rpm-devel >= 4.0
50 BuildRequires: rpm-perlprov >= 3.0.3-16
51 BuildRequires: rpmbuild(macros) >= 1.176
52 BuildRequires: rpmbuild(macros) >= 1.268
53 Requires(post,preun): /sbin/chkconfig
54 Requires: %{name}-libs = %{version}-%{release}
55 Requires: /usr/bin/setsid
56 Requires: rc-scripts >= 0.2.0
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 %define logfile /var/log/snmpd.log
64 %define filterout_ld -Wl,--as-needed
67 SNMP (Simple Network Management Protocol) is a protocol used for
68 network management (hence the name). The net-snmp project includes
69 various SNMP tools: an extensible agent, an SNMP library, tools for
70 requesting or setting information from SNMP agents, tools for
71 generating and handling SNMP traps, a version of the netstat command
72 which uses SNMP, and a Tk/Perl mib browser. This package contains the
73 snmpd daemon, documentation, etc.
76 Este paquete se deriva de la implementación del Protocolo Simple de
77 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
78 Útil para administrar redes y hacer contabilidad.
81 SNMP (Simple Network Management Protocol) jest protoko³em u¿ywanym do
82 zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
83 agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
84 informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
85 pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
86 w Tk/Perl, demona, dokumentacjê itp.
89 Este pacote é derivado da implementação do Protocolo Simples de
90 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
91 Mellon. Útil para gerenciar redes e fazer contabilidade.
94 SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
95 ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ net-snmp ×ËÌÀÞÁÅÔ
96 ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
97 ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
98 ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
99 ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
100 ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
103 SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
104 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ net-snmp
105 ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, ¦Â̦ÏÔÅËÁ
106 SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁæ§ ×¦Ä NMP-ÁÇÅÎÔ¦×,
107 ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁæ§ ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒÓ¦Ñ ËÏÍÁÎÄÉ netstat,
108 ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ
109 ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
112 Summary: NET SNMP libraries
113 Summary(pl): Biblioteki SNMP
115 Requires: %{name}-mibs = %{version}-%{release}
116 Obsoletes: net-snmp-compat-libs
117 Obsoletes: ucd-snmp-libs
122 %description libs -l pl
126 Summary: The development environment for the net-snmp project
127 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
128 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek net-snmp
129 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
130 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
131 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
132 Group: Development/Libraries
133 Requires: %{name}-libs = %{version}-%{release}
134 Requires: elfutils-devel
135 Requires: libwrap-devel
136 Requires: openssl-devel >= 0.9.7c
138 Obsoletes: ucd-snmp-devel
141 The ucd-snmp-devel package contains the development libraries and
142 header files for use with the net-snmp project's network management
145 %description devel -l es
146 Estas son las bibliotecas y archivos de inclusión para desarrollo con
147 el SNMP de la UCD. Con este paquete es posible la creación de
148 programas para uso en la gestión de redes.
150 %description devel -l pl
151 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
152 aplikacji u¿ywaj±cych protoko³u SNMP.
154 %description devel -l pt_BR
155 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
156 com o SNMP da UCD. Com este pacote é possível a criação de programas
157 para uso no gerenciamento de redes.
159 %description devel -l ru
160 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
161 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ net-snmp.
163 %description devel -l uk
164 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
165 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ net-snmp.
168 Summary: Static net-snmp libraries
169 Summary(pl): Statyczne biblioteki net-snmp
170 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
171 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ net-snmp
172 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ net-snmp
173 Group: Development/Libraries
174 Requires: %{name}-devel = %{version}-%{release}
175 Obsoletes: ucd-snmp-static
178 Static net-snmp libraries.
180 %description static -l pl
181 Statyczne biblioteki net-snmp.
183 %description static -l pt_BR
184 Bibliotecas estáticas para desenvolvimento com net-snmp.
186 %package compat-devel
187 Summary: The development environment for the UCD-SNMP project
188 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
189 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek UCD-SNMP
190 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
191 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
192 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
193 Group: Development/Libraries
194 Requires: %{name}-libs = %{version}-%{release}
195 Requires: openssl-devel >= 0.9.7d
196 Obsoletes: cmu-snmp-devel
197 Obsoletes: ucd-snmp-devel
199 %description compat-devel
200 The ucd-snmp-devel package contains the development libraries and
201 header files for use with the UCD-SNMP project's network management
204 %description compat-devel -l es
205 Estas son las bibliotecas y archivos de inclusión para desarrollo con
206 el SNMP de la UCD. Con este paquete es posible la creación de
207 programas para uso en la gestión de redes.
209 %description compat-devel -l pl
210 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
211 aplikacji u¿ywaj±cych protoko³u SNMP.
213 %description compat-devel -l pt_BR
214 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
215 com o SNMP da UCD. Com este pacote é possível a criação de programas
216 para uso no gerenciamento de redes.
218 %description compat-devel -l ru
219 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
220 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
222 %description compat-devel -l uk
223 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
224 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
226 %package compat-static
227 Summary: Static UCD-SNMP libraries
228 Summary(pl): Statyczne biblioteki UCD-SNMP
229 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
230 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
231 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
232 Group: Development/Libraries
233 Requires: %{name}-compat-devel = %{version}-%{release}
234 Obsoletes: ucd-snmp-static
236 %description compat-static
237 Static UCD-SNMP libraries.
239 %description compat-static -l pl
240 Statyczne biblioteki UCD-SNMP.
242 %description compat-static -l pt_BR
243 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
246 Summary: MIB database
247 Summary(pl): Baza danych MIB
248 Group: Applications/System
249 Conflicts: ucd-snmp-libs
254 %description mibs -l pl
258 Summary: SNMP trap daemon
259 Summary(pl): Demon obs³uguj±cy pu³apki SNMP
260 Group: Applications/System
261 Requires(post,preun): /sbin/chkconfig
262 Requires: %{name} = %{version}-%{release}
263 Requires: rc-scripts >= 0.2.0
264 Obsoletes: cmu-snmp-utils
265 Obsoletes: ucd-snmp-snmptrapd
267 %description snmptrapd
268 The ucd-snmp-snmptrapd package contains snmp trap daemon.
270 %description snmptrapd -l pl
271 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
274 Summary: Network management utilities using SNMP, from the NET-SNMP project
275 Summary(es): Utilitarios del SNMP de la UCD
276 Summary(pl): Narzêdzia u¿ywaj±ce protoko³u SNMP
277 Summary(pt_BR): Utilitários do SNMP da UCD
278 Summary(ru): õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
279 Summary(uk): õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
280 Group: Applications/System
281 Requires: %{name}-libs = %{version}-%{release}
282 Obsoletes: cmu-snmp-utils
283 Obsoletes: ucd-snmp-utils
286 This package contains various utilities for managing your network
287 using the SNMP protocol.
289 %description utils -l es
290 Varios utilitarios para uso con el SNMP de la UCD. Contiene
291 utilitarios como: snmpwalk, snmptest y otros.
293 %description utils -l pl
294 Ró¿nego rodzaju narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u
297 %description utils -l pt_BR
298 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
299 como: snmpwalk, snmptest e outros.
301 %description utils -l ru
302 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
303 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ net-snmp.
305 %description utils -l uk
306 ðÁËÅÔ ucd-snmp-utils ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
307 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ net-snmp.
309 %package -n perl-SNMP
310 Summary: SNMP and NetSNMP::* Perl modules
311 Summary(pl): Modu³y Perla SNMP oraz NetSNMP::*
312 Group: Development/Languages/Perl
313 Requires: %{name}-libs = %{version}-%{release}
314 Conflicts: ucd-snmp-utils-perl
316 %description -n perl-SNMP
317 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
319 %description -n perl-SNMP -l pl
320 Modu³y Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
323 Summary: Perl utilities for network management using SNMP
324 Summary(pl): Perlowe narzêdzia u¿ywaj±ce protoko³u SNMP
325 Group: Applications/System
326 Requires: perl-SNMP = %{version}-%{release}
327 Obsoletes: cmu-snmp-utils
328 Obsoletes: ucd-snmp-utils-perl
330 %description utils-perl
331 This package contains various Perl utilities for managing your network
332 using the SNMP protocol.
334 %description utils-perl -l pl
335 Perlowe narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u SNMP.
338 Summary: snmpconf - creating and modifying SNMP configuration files
339 Summary(pl): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
340 Group: Applications/System
341 Requires: %{name} = %{version}-%{release}
342 Requires: perl-SNMP = %{version}-%{release}
344 %description snmpconf
345 snmpconf is a simple Perl script that walks you through setting up a
346 configuration file step by step. It should be fairly straight forward
349 %description snmpconf -l pl
350 snmpconf to prosty skrypt Perla pozwalaj±cy na tworzenie pliku
351 konfiguracyjnego krok po kroku. Powinien byæ w miarê prosty w u¿yciu.
354 Summary: MIB browser in Tk
355 Summary(pl): Przegl±darka MIB-ów w Tk
356 Group: Applications/System
357 Requires: perl-SNMP = %{version}-%{release}
363 %description tkmib -l pl
364 Przegl±darka MIB-ów w Tk.
385 --with-logfile="%{logfile}" \
386 --with-cflags="%{rpmcflags} -I/usr/include/et" \
387 --with-ldflags="%{rpmldflags}" \
388 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
389 --with-sys-location="Unknown" \
390 --with-perl-modules \
391 --with-python-modules \
392 --with-security-modules="ksm" \
393 --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
394 %ifarch %{ix86} %{x8664}
395 ucd-snmp/lmSensors ucd-snmp/diskio \
397 agentx target misc/ipfwacc" \
401 --disable-debugging \
402 --with-persistent-directory="/var/lib/net-snmp" \
404 --with-sys-contact="root@localhost" \
405 --enable-ucd-snmp-compatibility \
407 --with-default-snmp-version=3 \
410 # --enable-reentrant is broken - snmpd deadlocks on send (tries to lock the same mutex twice):
411 # #4 0xb760f54e in siglongjmp () from /lib/tls/libpthread.so.0
412 # #5 0xb7e5e0cf in snmp_res_lock (groupID=0, resourceID=1) at mt_support.c:103
413 # #6 0xb7e45698 in snmp_sess_pointer (session=0x80ff868) at snmp_api.c:6975
414 # #7 0xb7e41aca in snmp_async_send (session=0x80ff868, pdu=0x8141848, callback=0, cb_data=0x0)
416 # #8 0xb7e41a6d in snmp_send (session=0x80ff868, pdu=0x8141848) at snmp_api.c:4551
417 # #9 0xb7ebf6fd in netsnmp_wrap_up_request (asp=0x812d828, status=0) at snmp_agent.c:1627
418 # #10 0xb7ec12e3 in netsnmp_handle_request (asp=0x812d828, status=0) at snmp_agent.c:2996
419 # #11 0xb7ebfa65 in handle_snmp_packet (op=1, session=0x80ff868, reqid=628270607, pdu=0x81419b8,
420 # magic=0x0) at snmp_agent.c:1792
421 # #12 0xb7e42b1c in _sess_process_packet (sessp=0x812c970, sp=0x80ff868, isp=0x812c698,
422 # transport=0x8142028, opaque=0x812c1a0, olength=16,
423 # packetptr=0x8145cb8 "0f\002\001\0030\021\002\004c [Ç\002\003", length=104) at snmp_api.c:5208
424 # #13 0xb7e434e6 in _sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5606
425 # #14 0xb7e43535 in snmp_sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5625
426 # #15 0xb7e42c44 in snmp_read (fdset=0xbfffe0e0) at snmp_api.c:5260
427 # #16 0x0804bbe5 in receive () at snmpd.c:1149
428 # #17 0x0804b53d in main (argc=5, argv=0xbffff344) at snmpd.c:993
429 # [res mutex with groupID=0, resourceID=1 already locked in snmp_read() at snmp_api.c:5258]
431 # build this subdir first. it's causing STRANGE compile failures # otherwise (for me at least). glen
432 %{__make} -C agent/mibgroup
437 %{__perl} Makefile.PL \
438 -NET-SNMP-IN-SOURCE=true \
440 OPTIMIZE="%{rpmcflags}" \
443 # avoid rpaths generated by MakeMaker
444 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
447 LDFLAGS="%{rpmldflags}"
450 rm -rf $RPM_BUILD_ROOT
451 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,snmp},/var/log}
454 INSTALL_PREFIX=$RPM_BUILD_ROOT
456 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
457 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
458 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
459 :> $RPM_BUILD_ROOT%{logfile}
461 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
462 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
463 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
465 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
466 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
467 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
469 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
470 # $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
474 DESTDIR=$RPM_BUILD_ROOT
476 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
477 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
480 # IP-Filter (non-Linux)
481 rm -f $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
484 rm -rf $RPM_BUILD_ROOT
489 /sbin/chkconfig --add snmpd
490 %service snmpd restart "snmpd daemon"
493 if [ "$1" = "0" ]; then
495 /sbin/chkconfig --del snmpd
498 %post libs -p /sbin/ldconfig
499 %postun libs -p /sbin/ldconfig
501 %triggerpostun -- ucd-snmp
502 /sbin/chkconfig --add snmpd
507 /sbin/chkconfig --add snmptrapd
508 %service snmptrapd restart "snmp trap daemon"
511 if [ "$1" = "0" ]; then
512 %service snmptrapd stop
513 /sbin/chkconfig --del snmptrapd
516 %triggerpostun snmptrapd -- ucd-snmp-snmptrapd
517 /sbin/chkconfig --add snmptrapd
520 %defattr(644,root,root,755)
522 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
523 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
525 %attr(754,root,root) /etc/rc.d/init.d/snmpd
526 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
528 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
529 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
531 %attr(755,root,root) %{_sbindir}/snmpd
533 %{_mandir}/man5/snmpd.conf.5*
534 %{_mandir}/man5/snmpd.examples.5*
535 %{_mandir}/man5/snmpd.internal.5*
536 %{_mandir}/man5/variables.5*
537 %{_mandir}/man8/snmpd.8*
539 %attr(640,root,root) %ghost %{logfile}
542 %defattr(644,root,root,755)
543 %dir %{_sysconfdir}/snmp
544 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
547 %defattr(644,root,root,755)
548 %attr(755,root,root) %{_bindir}/mib2c
549 %attr(755,root,root) %{_bindir}/mib2c-update
550 %attr(755,root,root) %{_bindir}/net-snmp-config
551 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
552 %{_libdir}/libnet*.la
553 %{_includedir}/net-snmp
554 %{_datadir}/snmp/mib2c*
555 %{_mandir}/man1/mib2c.1*
556 %{_mandir}/man3/[!NS]*
557 %{_mandir}/man5/mib2c.conf.5*
560 %defattr(644,root,root,755)
564 %defattr(644,root,root,755)
565 %attr(755,root,root) %{_libdir}/libsnmp.so
566 %{_libdir}/libsnmp.la
567 %{_includedir}/ucd-snmp
570 %defattr(644,root,root,755)
574 %defattr(644,root,root,755)
575 %dir %{_datadir}/snmp
576 %{_datadir}/snmp/mibs
579 %defattr(644,root,root,755)
580 %attr(755,root,root) %{_sbindir}/snmptrapd
581 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
582 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
583 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
584 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
585 %{_mandir}/man5/snmptrapd.conf.5*
586 %{_mandir}/man8/snmptrapd.8*
589 %defattr(644,root,root,755)
590 %attr(755,root,root) %{_bindir}/encode_keychange
591 %attr(755,root,root) %{_bindir}/snmpbulkget
592 %attr(755,root,root) %{_bindir}/snmpbulkwalk
593 %attr(755,root,root) %{_bindir}/snmpdelta
594 %attr(755,root,root) %{_bindir}/snmpdf
595 %attr(755,root,root) %{_bindir}/snmpget
596 %attr(755,root,root) %{_bindir}/snmpgetnext
597 %attr(755,root,root) %{_bindir}/snmpinform
598 %attr(755,root,root) %{_bindir}/snmpnetstat
599 %attr(755,root,root) %{_bindir}/snmpset
600 %attr(755,root,root) %{_bindir}/snmpstatus
601 %attr(755,root,root) %{_bindir}/snmptable
602 %attr(755,root,root) %{_bindir}/snmptest
603 %attr(755,root,root) %{_bindir}/snmptranslate
604 %attr(755,root,root) %{_bindir}/snmptrap
605 %attr(755,root,root) %{_bindir}/snmpusm
606 %attr(755,root,root) %{_bindir}/snmpvacm
607 %attr(755,root,root) %{_bindir}/snmpwalk
609 %{_mandir}/man1/snmpbulkget.1*
610 %{_mandir}/man1/snmpbulkwalk.1*
611 %{_mandir}/man1/snmpcmd.1*
612 %{_mandir}/man1/snmpdelta.1*
613 %{_mandir}/man1/snmpdf.1*
614 %{_mandir}/man1/snmpget.1*
615 %{_mandir}/man1/snmpgetnext.1*
616 %{_mandir}/man1/snmpinform.1*
617 %{_mandir}/man1/snmpnetstat.1*
618 %{_mandir}/man1/snmpset.1*
619 %{_mandir}/man1/snmpstatus.1*
620 %{_mandir}/man1/snmptable.1*
621 %{_mandir}/man1/snmptest.1*
622 %{_mandir}/man1/snmptranslate.1*
623 %{_mandir}/man1/snmptrap.1*
624 %{_mandir}/man1/snmpusm.1*
625 %{_mandir}/man1/snmpvacm.1*
626 %{_mandir}/man1/snmpwalk.1*
627 %{_mandir}/man5/snmp.conf.5*
628 %{_mandir}/man5/snmp_config.5*
630 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
633 %defattr(644,root,root,755)
634 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
635 %{perl_vendorarch}/SNMP.pm
636 %{perl_vendorarch}/NetSNMP
637 %dir %{perl_vendorarch}/auto/SNMP
638 %{perl_vendorarch}/auto/SNMP/autosplit.ix
639 %{perl_vendorarch}/auto/SNMP/SNMP.bs
640 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
641 %dir %{perl_vendorarch}/auto/NetSNMP
642 %dir %{perl_vendorarch}/auto/NetSNMP/*
643 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
644 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
645 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
646 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
647 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
648 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
649 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
650 %{_mandir}/man3/NetSNMP::*.3*
651 %{_mandir}/man3/SNMP.3*
652 %{_examplesdir}/perl-SNMP-%{version}
655 %defattr(644,root,root,755)
656 %attr(755,root,root) %{_bindir}/fixproc
657 %attr(755,root,root) %{_bindir}/snmpcheck
658 %attr(755,root,root) %{_bindir}/traptoemail
661 %defattr(644,root,root,755)
662 %attr(755,root,root) %{_bindir}/snmpconf
663 %{_mandir}/man1/snmpconf.1*
664 %{_datadir}/snmp/snmpconf-data
667 %defattr(644,root,root,755)
668 %attr(755,root,root) %{_bindir}/tkmib