2 # - init scripts (which, what?)
4 # - review ucd-snmp-ia64.patch patch
5 # - security http://security.gentoo.org/glsa/glsa-200505-18.xml
6 # - security http://security.gentoo.org/glsa/glsa-200509-05.xml
9 %bcond_without autodeps # don't BR packages only for deps resolving
11 %include /usr/lib/rpm/macros.perl
12 Summary: A collection of SNMP protocol tools
13 Summary(es): Agente SNMP de la UCD
14 Summary(pl): Kolekcja narzêdzi do obs³ugi protoko³u SNMP
15 Summary(pt_BR): Agente SNMP da UCD
16 Summary(ru): îÁÂÏÒ ÕÔÉÌÉÔ ÄÌÑ ÐÒÏÔÏËÏÌÁ SNMP ÏÔ UC-Davis
17 Summary(uk): îÁÂ¦Ò ÕÔÉÌ¦Ô ÄÌÑ ÐÒÏÔÏËÏÌÕ SNMP ×¦Ä UC-Davis
22 Group: Networking/Daemons
23 Source0: http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
24 # Source0-md5: 34159770a7fe418d99fdd416a75358b1
25 Source1: %{name}d.init
26 Source2: %{name}d.conf
27 Source3: %{name}d.sysconfig
28 Source4: %{name}trapd.init
29 Source5: %{name}trapd.conf
30 Source6: %{name}trapd.sysconfig
31 Source7: ftp://ucd-snmp.ucdavis.edu/contrib/ucd-ipchains.tar.gz
32 # Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
33 Source8: http://juniper.net/techpubs/software/junos/junos71/juniper-mibs-7.1R1.3.tgz
34 # Source8-md5: fa5b9a2a3b93c6c5a5994ac7f36b5bf9
35 Patch0: %{name}-acinclude.patch
36 Patch1: %{name}-acfix.patch
37 Patch2: %{name}-rpm-implicit-libs.patch
38 Patch3: %{name}-config-noflags.patch
39 Patch4: %{name}-dlopen-fix.patch
40 Patch5: %{name}-manpage.patch
41 Patch6: %{name}-link.patch
42 Patch7: %{name}-llinterfaces.patch
43 Patch8: %{name}-usr_local_bin_perl.patch
44 Patch9: %{name}-kernel_headers.patch
45 Patch10: %{name}-syntax.patch
46 URL: http://www.net-snmp.org/
47 BuildRequires: autoconf >= 2.57-3
48 BuildRequires: automake
49 BuildRequires: elfutils-devel
50 BuildRequires: libtool >= 1.4
51 BuildRequires: libwrap-devel
52 BuildRequires: openssl-devel >= 0.9.7d
53 %{?with_autodeps:BuildRequires: perl-Term-ReadKey}
54 BuildRequires: perl-devel >= 1:5.8.0
55 BuildRequires: rpm-devel >= 4.0
56 BuildRequires: rpm-perlprov >= 3.0.3-16
57 BuildRequires: rpmbuild(macros) >= 1.176
58 PreReq: rc-scripts >= 0.2.0
59 PreReq: %{name}-libs = %{version}-%{release}
60 Requires(post,preun): /sbin/chkconfig
61 Requires: /usr/bin/setsid
63 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68 %define logfile /var/log/snmpd.log
71 SNMP (Simple Network Management Protocol) is a protocol used for
72 network management (hence the name). The net-snmp project includes
73 various SNMP tools: an extensible agent, an SNMP library, tools for
74 requesting or setting information from SNMP agents, tools for
75 generating and handling SNMP traps, a version of the netstat command
76 which uses SNMP, and a Tk/Perl mib browser. This package contains the
77 snmpd daemon, documentation, etc.
80 Este paquete se deriva de la implementación del Protocolo Simple de
81 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
82 Útil para administrar redes y hacer contabilidad.
85 SNMP (Simple Network Management Protocol) jest protoko³em u¿ywanym do
86 zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
87 agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
88 informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
89 pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
90 w Tk/Perl, demona, dokumentacjê itp.
93 Este pacote é derivado da implementação do Protocolo Simples de
94 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
95 Mellon. Útil para gerenciar redes e fazer contabilidade.
98 SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
99 ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ net-snmp ×ËÌÀÞÁÅÔ
100 ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
101 ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
102 ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
103 ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
104 ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
107 SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
108 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ net-snmp
109 ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, ¦Â̦ÏÔÅËÁ
110 SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁæ§ ×¦Ä NMP-ÁÇÅÎÔ¦×,
111 ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁæ§ ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒÓ¦Ñ ËÏÍÁÎÄÉ netstat,
112 ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ
113 ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
116 Summary: NET SNMP libraries
117 Summary(pl): Biblioteki SNMP
119 Requires: %{name}-mibs = %{version}-%{release}
120 Obsoletes: net-snmp-compat-libs
121 Obsoletes: ucd-snmp-libs
126 %description libs -l pl
130 Summary: The development environment for the net-snmp project
131 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
132 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek net-snmp
133 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
134 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
135 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
136 Group: Development/Libraries
137 Requires: %{name}-libs = %{version}-%{release}
138 Requires: elfutils-devel
139 Requires: openssl-devel >= 0.9.7c
140 Obsoletes: ucd-snmp-devel
143 The ucd-snmp-devel package contains the development libraries and
144 header files for use with the net-snmp project's network management
147 %description devel -l es
148 Estas son las bibliotecas y archivos de inclusión para desarrollo con
149 el SNMP de la UCD. Con este paquete es posible la creación de
150 programas para uso en la gestión de redes.
152 %description devel -l pl
153 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
154 aplikacji u¿ywaj±cych protoko³u SNMP.
156 %description devel -l pt_BR
157 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
158 com o SNMP da UCD. Com este pacote é possível a criação de programas
159 para uso no gerenciamento de redes.
161 %description devel -l ru
162 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
163 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ net-snmp.
165 %description devel -l uk
166 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
167 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ net-snmp.
170 Summary: Static net-snmp libraries
171 Summary(pl): Statyczne biblioteki net-snmp
172 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
173 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ net-snmp
174 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ net-snmp
175 Group: Development/Libraries
176 Requires: %{name}-devel = %{version}-%{release}
177 Obsoletes: ucd-snmp-static
180 Static net-snmp libraries.
182 %description static -l pl
183 Statyczne biblioteki net-snmp.
185 %description static -l pt_BR
186 Bibliotecas estáticas para desenvolvimento com net-snmp.
188 %package compat-devel
189 Summary: The development environment for the UCD-SNMP project
190 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
191 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek UCD-SNMP
192 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
193 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
194 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
195 Group: Development/Libraries
196 Requires: %{name}-libs = %{version}-%{release}
197 Requires: openssl-devel >= 0.9.7d
198 Obsoletes: cmu-snmp-devel
199 Obsoletes: ucd-snmp-devel
201 %description compat-devel
202 The ucd-snmp-devel package contains the development libraries and
203 header files for use with the UCD-SNMP project's network management
206 %description compat-devel -l es
207 Estas son las bibliotecas y archivos de inclusión para desarrollo con
208 el SNMP de la UCD. Con este paquete es posible la creación de
209 programas para uso en la gestión de redes.
211 %description compat-devel -l pl
212 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
213 aplikacji u¿ywaj±cych protoko³u SNMP.
215 %description compat-devel -l pt_BR
216 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
217 com o SNMP da UCD. Com este pacote é possível a criação de programas
218 para uso no gerenciamento de redes.
220 %description compat-devel -l ru
221 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
222 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
224 %description compat-devel -l uk
225 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
226 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
228 %package compat-static
229 Summary: Static UCD-SNMP libraries
230 Summary(pl): Statyczne biblioteki UCD-SNMP
231 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
232 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
233 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
234 Group: Development/Libraries
235 Requires: %{name}-compat-devel = %{version}-%{release}
236 Obsoletes: ucd-snmp-static
238 %description compat-static
239 Static UCD-SNMP libraries.
241 %description compat-static -l pl
242 Statyczne biblioteki UCD-SNMP.
244 %description compat-static -l pt_BR
245 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
248 Summary: MIB database
249 Summary(pl): Baza danych MIB
250 Group: Applications/System
251 Conflicts: ucd-snmp-libs
256 %description mibs -l pl
260 Summary: SNMP trap daemon
261 Summary(pl): Demon obs³uguj±cy pu³apki SNMP
262 Group: Applications/System
263 PreReq: %{name} = %{version}-%{release}
264 PreReq: rc-scripts >= 0.2.0
265 Requires(post,preun): /sbin/chkconfig
266 Obsoletes: cmu-snmp-utils
267 Obsoletes: ucd-snmp-snmptrapd
269 %description snmptrapd
270 The ucd-snmp-snmptrapd package contains snmp trap daemon.
272 %description snmptrapd -l pl
273 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
276 Summary: Network management utilities using SNMP, from the NET-SNMP project
277 Summary(es): Utilitarios del SNMP de la UCD
278 Summary(pl): Narzêdzia u¿ywaj±ce protoko³u SNMP
279 Summary(pt_BR): Utilitários do SNMP da UCD
280 Summary(ru): õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
281 Summary(uk): õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
282 Group: Applications/System
283 Requires: %{name}-libs = %{version}-%{release}
284 Obsoletes: cmu-snmp-utils
285 Obsoletes: ucd-snmp-utils
288 This package contains various utilities for managing your network
289 using the SNMP protocol.
291 %description utils -l es
292 Varios utilitarios para uso con el SNMP de la UCD. Contiene
293 utilitarios como: snmpwalk, snmptest y otros.
295 %description utils -l pl
296 Ró¿nego rodzaju narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u
299 %description utils -l pt_BR
300 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
301 como: snmpwalk, snmptest e outros.
303 %description utils -l ru
304 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
305 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ net-snmp.
307 %description utils -l uk
308 ðÁËÅÔ ucd-snmp-utils ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
309 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ net-snmp.
311 %package -n perl-SNMP
312 Summary: SNMP and NetSNMP::* Perl modules
313 Summary(pl): Modu³y Perla SNMP oraz NetSNMP::*
314 Group: Development/Languages/Perl
315 Requires: %{name}-libs = %{version}-%{release}
316 Conflicts: ucd-snmp-utils-perl
318 %description -n perl-SNMP
319 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
321 %description -n perl-SNMP -l pl
322 Modu³y Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
325 Summary: Perl utilities for network management using SNMP
326 Summary(pl): Perlowe narzêdzia u¿ywaj±ce protoko³u SNMP
327 Group: Applications/System
328 Requires: perl-SNMP = %{version}-%{release}
329 Obsoletes: cmu-snmp-utils
330 Obsoletes: ucd-snmp-utils-perl
332 %description utils-perl
333 This package contains various Perl utilities for managing your network
334 using the SNMP protocol.
336 %description utils-perl -l pl
337 Perlowe narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u SNMP.
340 Summary: snmpconf - creating and modifying SNMP configuration files
341 Summary(pl): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
342 Group: Applications/System
343 Requires: %{name} = %{version}-%{release}
344 Requires: perl-SNMP = %{version}-%{release}
346 %description snmpconf
347 snmpconf is a simple Perl script that walks you through setting up a
348 configuration file step by step. It should be fairly straight forward
351 %description snmpconf -l pl
352 snmpconf to prosty skrypt Perla pozwalaj±cy na tworzenie pliku
353 konfiguracyjnego krok po kroku. Powinien byæ w miarê prosty w u¿yciu.
356 Summary: MIB browser in Tk
357 Summary(pl): Przegl±darka MIB-ów w Tk
358 Group: Applications/System
359 Requires: perl-SNMP = %{version}-%{release}
365 %description tkmib -l pl
366 Przegl±darka MIB-ów w Tk.
388 --with-logfile="%{logfile}" \
389 --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
390 --with-ldflags="%{rpmldflags}" \
391 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
392 --with-sys-location="Unknown" \
393 --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
394 agentx target misc/ipfwacc tunnel" \
397 --disable-debugging \
398 --with-persistent-directory="/var/lib/net-snmp" \
400 --with-sys-contact="root@localhost" \
401 --enable-ucd-snmp-compatibility \
403 --with-default-snmp-version=3 \
406 # --enable-reentrant is broken - snmpd deadlocks on send (tries to lock the same mutex twice):
407 # #4 0xb760f54e in siglongjmp () from /lib/tls/libpthread.so.0
408 # #5 0xb7e5e0cf in snmp_res_lock (groupID=0, resourceID=1) at mt_support.c:103
409 # #6 0xb7e45698 in snmp_sess_pointer (session=0x80ff868) at snmp_api.c:6975
410 # #7 0xb7e41aca in snmp_async_send (session=0x80ff868, pdu=0x8141848, callback=0, cb_data=0x0)
412 # #8 0xb7e41a6d in snmp_send (session=0x80ff868, pdu=0x8141848) at snmp_api.c:4551
413 # #9 0xb7ebf6fd in netsnmp_wrap_up_request (asp=0x812d828, status=0) at snmp_agent.c:1627
414 # #10 0xb7ec12e3 in netsnmp_handle_request (asp=0x812d828, status=0) at snmp_agent.c:2996
415 # #11 0xb7ebfa65 in handle_snmp_packet (op=1, session=0x80ff868, reqid=628270607, pdu=0x81419b8,
416 # magic=0x0) at snmp_agent.c:1792
417 # #12 0xb7e42b1c in _sess_process_packet (sessp=0x812c970, sp=0x80ff868, isp=0x812c698,
418 # transport=0x8142028, opaque=0x812c1a0, olength=16,
419 # packetptr=0x8145cb8 "0f\002\001\0030\021\002\004c [Ç\002\003", length=104) at snmp_api.c:5208
420 # #13 0xb7e434e6 in _sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5606
421 # #14 0xb7e43535 in snmp_sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5625
422 # #15 0xb7e42c44 in snmp_read (fdset=0xbfffe0e0) at snmp_api.c:5260
423 # #16 0x0804bbe5 in receive () at snmpd.c:1149
424 # #17 0x0804b53d in main (argc=5, argv=0xbffff344) at snmpd.c:993
425 # [res mutex with groupID=0, resourceID=1 already locked in snmp_read() at snmp_api.c:5258]
431 sed -e "s@-L/usr/lib@-L${TDIR}/snmplib/.libs -L${TDIR}/agent/.libs -L${TDIR}/agent/helpers/.libs@" \
432 ../net-snmp-config > net-snmp-config
433 chmod +x net-snmp-config
436 %{__perl} Makefile.PL \
438 OPTIMIZE="%{rpmcflags} -I`pwd`/../include" \
440 # avoid rpaths generated by MakeMaker
441 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
444 LDFLAGS="%{rpmldflags}"
447 rm -rf $RPM_BUILD_ROOT
448 install -d $RPM_BUILD_ROOT{/etc/{snmp,rc.d/init.d,sysconfig},/var/log}
451 INSTALL_PREFIX=$RPM_BUILD_ROOT
453 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
454 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
455 :> $RPM_BUILD_ROOT%{logfile}
457 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
458 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
459 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
461 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
462 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
463 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
465 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
466 # $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
470 DESTDIR=$RPM_BUILD_ROOT
472 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
473 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
476 # IP-Filter (non-Linux)
477 rm -f $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
480 install JuniperMibs/*.txt $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
483 rm -rf $RPM_BUILD_ROOT
486 /sbin/chkconfig --add snmpd
487 if [ -f /var/lock/subsys/snmpd ]; then
488 /etc/rc.d/init.d/snmpd restart >&2
490 %banner %{name} -e <<EOF
491 Run \"/etc/rc.d/init.d/snmpd start\" to start snmpd daemon.
499 if [ "$1" = "0" ]; then
500 if [ -f /var/lock/subsys/snmpd ]; then
501 /etc/rc.d/init.d/snmpd stop >&2
503 /sbin/chkconfig --del snmpd
506 %post libs -p /sbin/ldconfig
507 %postun libs -p /sbin/ldconfig
510 /sbin/chkconfig --add snmptrapd
511 if [ -f /var/lock/subsys/snmptrapd ]; then
512 /etc/rc.d/init.d/snmptrapd restart >&2
514 %banner %{name}-snmptrapd -e <<EOF
515 Run \"/etc/rc.d/init.d/snmptrapd start\" to start snmp trap daemon.
523 if [ "$1" = "0" ]; then
524 if [ -f /var/lock/subsys/snmptrapd ]; then
525 /etc/rc.d/init.d/snmptrapd stop >&2
527 /sbin/chkconfig --del snmptrapd
531 %defattr(644,root,root,755)
533 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
534 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
536 %attr(754,root,root) /etc/rc.d/init.d/snmpd
537 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmpd
539 %dir %{_sysconfdir}/snmp
540 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.conf
541 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.local.conf
543 %attr(755,root,root) %{_sbindir}/snmpd
545 %{_mandir}/man5/snmpd.conf.5*
546 %{_mandir}/man5/variables.5*
547 %{_mandir}/man8/snmpd.8*
549 %attr(640,root,root) %ghost %{logfile}
552 %defattr(644,root,root,755)
553 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
556 %defattr(644,root,root,755)
557 %attr(755,root,root) %{_bindir}/mib2c
558 %attr(755,root,root) %{_bindir}/mib2c-update
559 %attr(755,root,root) %{_bindir}/net-snmp-config
560 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
561 %{_libdir}/libnet*.la
562 %{_includedir}/net-snmp
563 %{_datadir}/snmp/mib2c*
564 %{_mandir}/man1/mib2c.1*
565 %{_mandir}/man3/[!NS]*
566 %{_mandir}/man5/mib2c.conf.5*
569 %defattr(644,root,root,755)
573 %defattr(644,root,root,755)
574 %attr(755,root,root) %{_libdir}/libsnmp.so
575 %{_libdir}/libsnmp.la
576 %{_includedir}/ucd-snmp
579 %defattr(644,root,root,755)
583 %defattr(644,root,root,755)
584 %dir %{_datadir}/snmp
585 %{_datadir}/snmp/mibs
588 %defattr(644,root,root,755)
589 %attr(755,root,root) %{_sbindir}/snmptrapd
590 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
591 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmptrapd
592 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmptrapd.conf
593 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
594 %{_mandir}/man5/snmptrapd.conf.5*
595 %{_mandir}/man8/snmptrapd.8*
598 %defattr(644,root,root,755)
599 %attr(755,root,root) %{_bindir}/encode_keychange
600 %attr(755,root,root) %{_bindir}/snmpbulkget
601 %attr(755,root,root) %{_bindir}/snmpbulkwalk
602 %attr(755,root,root) %{_bindir}/snmpdelta
603 %attr(755,root,root) %{_bindir}/snmpdf
604 %attr(755,root,root) %{_bindir}/snmpget
605 %attr(755,root,root) %{_bindir}/snmpgetnext
606 %attr(755,root,root) %{_bindir}/snmpinform
607 %attr(755,root,root) %{_bindir}/snmpnetstat
608 %attr(755,root,root) %{_bindir}/snmpset
609 %attr(755,root,root) %{_bindir}/snmpstatus
610 %attr(755,root,root) %{_bindir}/snmptable
611 %attr(755,root,root) %{_bindir}/snmptest
612 %attr(755,root,root) %{_bindir}/snmptranslate
613 %attr(755,root,root) %{_bindir}/snmptrap
614 %attr(755,root,root) %{_bindir}/snmpusm
615 %attr(755,root,root) %{_bindir}/snmpvacm
616 %attr(755,root,root) %{_bindir}/snmpwalk
618 %{_mandir}/man1/snmpbulkget.1*
619 %{_mandir}/man1/snmpbulkwalk.1*
620 %{_mandir}/man1/snmpcmd.1*
621 %{_mandir}/man1/snmpdelta.1*
622 %{_mandir}/man1/snmpdf.1*
623 %{_mandir}/man1/snmpget.1*
624 %{_mandir}/man1/snmpgetnext.1*
625 %{_mandir}/man1/snmpinform.1*
626 %{_mandir}/man1/snmpnetstat.1*
627 %{_mandir}/man1/snmpset.1*
628 %{_mandir}/man1/snmpstatus.1*
629 %{_mandir}/man1/snmptable.1*
630 %{_mandir}/man1/snmptest.1*
631 %{_mandir}/man1/snmptranslate.1*
632 %{_mandir}/man1/snmptrap.1*
633 %{_mandir}/man1/snmpusm.1*
634 %{_mandir}/man1/snmpvacm.1*
635 %{_mandir}/man1/snmpwalk.1*
636 %{_mandir}/man5/snmp.conf.5*
637 %{_mandir}/man5/snmp_config.5*
640 %defattr(644,root,root,755)
641 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
642 %{perl_vendorarch}/SNMP.pm
643 %{perl_vendorarch}/NetSNMP
644 %dir %{perl_vendorarch}/auto/SNMP
645 %{perl_vendorarch}/auto/SNMP/autosplit.ix
646 %{perl_vendorarch}/auto/SNMP/SNMP.bs
647 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
648 %dir %{perl_vendorarch}/auto/NetSNMP
649 %dir %{perl_vendorarch}/auto/NetSNMP/*
650 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
651 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
652 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
653 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
654 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
655 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
656 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
657 %{_mandir}/man3/NetSNMP::*.3*
658 %{_mandir}/man3/SNMP.3*
659 %{_examplesdir}/perl-SNMP-%{version}
662 %defattr(644,root,root,755)
663 %attr(755,root,root) %{_bindir}/fixproc
664 %attr(755,root,root) %{_bindir}/snmpcheck
665 %attr(755,root,root) %{_bindir}/traptoemail
668 %defattr(644,root,root,755)
669 %attr(755,root,root) %{_bindir}/snmpconf
670 %{_mandir}/man1/snmpconf.1*
671 %{_datadir}/snmp/snmpconf-data
674 %defattr(644,root,root,755)
675 %attr(755,root,root) %{_bindir}/tkmib