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: 34159770a7fe418d99fdd416a75358b1
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 Source8: http://juniper.net/techpubs/software/junos/junos73/juniper-mibs-7.3R1.6.tgz
28 # Source8-md5: 380f8475a7f71e093b1dc98e4976c106
29 Patch0: %{name}-acinclude.patch
30 Patch1: %{name}-acfix.patch
31 Patch2: %{name}-rpm-implicit-libs.patch
32 Patch3: %{name}-config-noflags.patch
33 Patch4: %{name}-dlopen-fix.patch
34 Patch5: %{name}-manpage.patch
35 Patch6: %{name}-link.patch
36 Patch7: %{name}-llinterfaces.patch
37 Patch8: %{name}-usr_local_bin_perl.patch
38 Patch9: %{name}-kernel_headers.patch
39 Patch10: %{name}-syntax.patch
40 Patch11: %{name}-fix-insecure-fixproc.patch
41 URL: http://www.net-snmp.org/
42 BuildRequires: autoconf >= 2.57-3
43 BuildRequires: automake
44 BuildRequires: elfutils-devel
45 BuildRequires: libtool >= 1.4
46 BuildRequires: libwrap-devel
47 BuildRequires: lm_sensors-devel
48 BuildRequires: openssl-devel >= 0.9.7d
49 %{?with_autodeps:BuildRequires: perl-Term-ReadKey}
50 BuildRequires: perl-devel >= 1:5.8.0
51 BuildRequires: rpm-devel >= 4.0
52 BuildRequires: rpm-perlprov >= 3.0.3-16
53 BuildRequires: rpmbuild(macros) >= 1.176
54 PreReq: rc-scripts >= 0.2.0
55 PreReq: %{name}-libs = %{version}-%{release}
56 Requires(post,preun): /sbin/chkconfig
57 Requires: /usr/bin/setsid
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 %define logfile /var/log/snmpd.log
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: 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 PreReq: %{name} = %{version}-%{release}
260 PreReq: rc-scripts >= 0.2.0
261 Requires(post,preun): /sbin/chkconfig
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.
385 --with-logfile="%{logfile}" \
386 --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
387 --with-ldflags="%{rpmldflags}" \
388 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
389 --with-sys-location="Unknown" \
390 --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
391 %ifarch %{ix86} %{x8664}
392 ucd-snmp/lmSensors ucd-snmp/diskio \
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]
427 # build this subdir first. it's causing STRANGE compile failures # otherwise (for me at least). glen
428 %{__make} -C agent/mibgroup
433 sed -e "s@-L/usr/lib@-L${TDIR}/snmplib/.libs -L${TDIR}/agent/.libs -L${TDIR}/agent/helpers/.libs@" \
434 ../net-snmp-config > net-snmp-config
435 chmod +x net-snmp-config
438 %{__perl} Makefile.PL \
440 OPTIMIZE="%{rpmcflags} -I`pwd`/../include" \
442 # avoid rpaths generated by MakeMaker
443 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
446 LDFLAGS="%{rpmldflags}"
449 rm -rf $RPM_BUILD_ROOT
450 install -d $RPM_BUILD_ROOT{/etc/{snmp,rc.d/init.d,sysconfig},/var/log}
453 INSTALL_PREFIX=$RPM_BUILD_ROOT
455 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
456 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
457 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
458 :> $RPM_BUILD_ROOT%{logfile}
460 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
461 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
462 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
464 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
465 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
466 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
468 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
469 # $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
473 DESTDIR=$RPM_BUILD_ROOT
475 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
476 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
479 # IP-Filter (non-Linux)
480 rm -f $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
483 install JuniperMibs/*.txt $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
485 # Standard MIBs (Required by Juniper MIBs)
486 install StandardMibs/*.txt $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
489 rm -rf $RPM_BUILD_ROOT
492 /sbin/chkconfig --add snmpd
493 if [ -f /var/lock/subsys/snmpd ]; then
494 /etc/rc.d/init.d/snmpd restart >&2
496 %banner %{name} -e <<EOF
497 Run \"/etc/rc.d/init.d/snmpd start\" to start snmpd daemon.
505 if [ "$1" = "0" ]; then
506 if [ -f /var/lock/subsys/snmpd ]; then
507 /etc/rc.d/init.d/snmpd stop >&2
509 /sbin/chkconfig --del snmpd
512 %post libs -p /sbin/ldconfig
513 %postun libs -p /sbin/ldconfig
516 /sbin/chkconfig --add snmptrapd
517 if [ -f /var/lock/subsys/snmptrapd ]; then
518 /etc/rc.d/init.d/snmptrapd restart >&2
520 %banner %{name}-snmptrapd -e <<EOF
521 Run \"/etc/rc.d/init.d/snmptrapd start\" to start snmp trap daemon.
529 if [ "$1" = "0" ]; then
530 if [ -f /var/lock/subsys/snmptrapd ]; then
531 /etc/rc.d/init.d/snmptrapd stop >&2
533 /sbin/chkconfig --del snmptrapd
537 %defattr(644,root,root,755)
539 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
540 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
542 %attr(754,root,root) /etc/rc.d/init.d/snmpd
543 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
545 %dir %{_sysconfdir}/snmp
546 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
547 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
549 %attr(755,root,root) %{_sbindir}/snmpd
551 %{_mandir}/man5/snmpd.conf.5*
552 %{_mandir}/man5/variables.5*
553 %{_mandir}/man8/snmpd.8*
555 %attr(640,root,root) %ghost %{logfile}
558 %defattr(644,root,root,755)
559 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
562 %defattr(644,root,root,755)
563 %attr(755,root,root) %{_bindir}/mib2c
564 %attr(755,root,root) %{_bindir}/mib2c-update
565 %attr(755,root,root) %{_bindir}/net-snmp-config
566 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
567 %{_libdir}/libnet*.la
568 %{_includedir}/net-snmp
569 %{_datadir}/snmp/mib2c*
570 %{_mandir}/man1/mib2c.1*
571 %{_mandir}/man3/[!NS]*
572 %{_mandir}/man5/mib2c.conf.5*
575 %defattr(644,root,root,755)
579 %defattr(644,root,root,755)
580 %attr(755,root,root) %{_libdir}/libsnmp.so
581 %{_libdir}/libsnmp.la
582 %{_includedir}/ucd-snmp
585 %defattr(644,root,root,755)
589 %defattr(644,root,root,755)
590 %dir %{_datadir}/snmp
591 %{_datadir}/snmp/mibs
594 %defattr(644,root,root,755)
595 %attr(755,root,root) %{_sbindir}/snmptrapd
596 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
597 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
598 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
599 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
600 %{_mandir}/man5/snmptrapd.conf.5*
601 %{_mandir}/man8/snmptrapd.8*
604 %defattr(644,root,root,755)
605 %attr(755,root,root) %{_bindir}/encode_keychange
606 %attr(755,root,root) %{_bindir}/snmpbulkget
607 %attr(755,root,root) %{_bindir}/snmpbulkwalk
608 %attr(755,root,root) %{_bindir}/snmpdelta
609 %attr(755,root,root) %{_bindir}/snmpdf
610 %attr(755,root,root) %{_bindir}/snmpget
611 %attr(755,root,root) %{_bindir}/snmpgetnext
612 %attr(755,root,root) %{_bindir}/snmpinform
613 %attr(755,root,root) %{_bindir}/snmpnetstat
614 %attr(755,root,root) %{_bindir}/snmpset
615 %attr(755,root,root) %{_bindir}/snmpstatus
616 %attr(755,root,root) %{_bindir}/snmptable
617 %attr(755,root,root) %{_bindir}/snmptest
618 %attr(755,root,root) %{_bindir}/snmptranslate
619 %attr(755,root,root) %{_bindir}/snmptrap
620 %attr(755,root,root) %{_bindir}/snmpusm
621 %attr(755,root,root) %{_bindir}/snmpvacm
622 %attr(755,root,root) %{_bindir}/snmpwalk
624 %{_mandir}/man1/snmpbulkget.1*
625 %{_mandir}/man1/snmpbulkwalk.1*
626 %{_mandir}/man1/snmpcmd.1*
627 %{_mandir}/man1/snmpdelta.1*
628 %{_mandir}/man1/snmpdf.1*
629 %{_mandir}/man1/snmpget.1*
630 %{_mandir}/man1/snmpgetnext.1*
631 %{_mandir}/man1/snmpinform.1*
632 %{_mandir}/man1/snmpnetstat.1*
633 %{_mandir}/man1/snmpset.1*
634 %{_mandir}/man1/snmpstatus.1*
635 %{_mandir}/man1/snmptable.1*
636 %{_mandir}/man1/snmptest.1*
637 %{_mandir}/man1/snmptranslate.1*
638 %{_mandir}/man1/snmptrap.1*
639 %{_mandir}/man1/snmpusm.1*
640 %{_mandir}/man1/snmpvacm.1*
641 %{_mandir}/man1/snmpwalk.1*
642 %{_mandir}/man5/snmp.conf.5*
643 %{_mandir}/man5/snmp_config.5*
645 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
648 %defattr(644,root,root,755)
649 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
650 %{perl_vendorarch}/SNMP.pm
651 %{perl_vendorarch}/NetSNMP
652 %dir %{perl_vendorarch}/auto/SNMP
653 %{perl_vendorarch}/auto/SNMP/autosplit.ix
654 %{perl_vendorarch}/auto/SNMP/SNMP.bs
655 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
656 %dir %{perl_vendorarch}/auto/NetSNMP
657 %dir %{perl_vendorarch}/auto/NetSNMP/*
658 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
659 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
660 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
661 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
662 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
663 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
664 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
665 %{_mandir}/man3/NetSNMP::*.3*
666 %{_mandir}/man3/SNMP.3*
667 %{_examplesdir}/perl-SNMP-%{version}
670 %defattr(644,root,root,755)
671 %attr(755,root,root) %{_bindir}/fixproc
672 %attr(755,root,root) %{_bindir}/snmpcheck
673 %attr(755,root,root) %{_bindir}/traptoemail
676 %defattr(644,root,root,755)
677 %attr(755,root,root) %{_bindir}/snmpconf
678 %{_mandir}/man1/snmpconf.1*
679 %{_datadir}/snmp/snmpconf-data
682 %defattr(644,root,root,755)
683 %attr(755,root,root) %{_bindir}/tkmib