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: db5995ff8fae154cbe7417a4a6f2ca60
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 URL: http://www.net-snmp.org/
37 BuildRequires: autoconf >= 2.57-3
38 BuildRequires: automake
39 BuildRequires: elfutils-devel
40 BuildRequires: libtool >= 1.4
41 BuildRequires: libwrap-devel
42 BuildRequires: lm_sensors-devel
43 BuildRequires: openssl-devel >= 0.9.7d
44 %{?with_autodeps:BuildRequires: perl-Term-ReadKey}
45 BuildRequires: perl-devel >= 1:5.8.0
46 BuildRequires: rpm-devel >= 4.0
47 BuildRequires: rpm-perlprov >= 3.0.3-16
48 BuildRequires: rpmbuild(macros) >= 1.176
49 Requires(post,preun): /sbin/chkconfig
50 Requires: %{name}-libs = %{version}-%{release}
51 Requires: /usr/bin/setsid
52 Requires: rc-scripts >= 0.2.0
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 %define logfile /var/log/snmpd.log
62 SNMP (Simple Network Management Protocol) is a protocol used for
63 network management (hence the name). The net-snmp project includes
64 various SNMP tools: an extensible agent, an SNMP library, tools for
65 requesting or setting information from SNMP agents, tools for
66 generating and handling SNMP traps, a version of the netstat command
67 which uses SNMP, and a Tk/Perl mib browser. This package contains the
68 snmpd daemon, documentation, etc.
71 Este paquete se deriva de la implementación del Protocolo Simple de
72 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
73 Útil para administrar redes y hacer contabilidad.
76 SNMP (Simple Network Management Protocol) jest protoko³em u¿ywanym do
77 zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
78 agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
79 informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
80 pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
81 w Tk/Perl, demona, dokumentacjê itp.
84 Este pacote é derivado da implementação do Protocolo Simples de
85 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
86 Mellon. Útil para gerenciar redes e fazer contabilidade.
89 SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
90 ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ net-snmp ×ËÌÀÞÁÅÔ
91 ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
92 ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
93 ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
94 ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
95 ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
98 SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
99 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ net-snmp
100 ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, ¦Â̦ÏÔÅËÁ
101 SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁæ§ ×¦Ä NMP-ÁÇÅÎÔ¦×,
102 ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁæ§ ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒÓ¦Ñ ËÏÍÁÎÄÉ netstat,
103 ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ
104 ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
107 Summary: NET SNMP libraries
108 Summary(pl): Biblioteki SNMP
110 Requires: %{name}-mibs = %{version}-%{release}
111 Obsoletes: net-snmp-compat-libs
112 Obsoletes: ucd-snmp-libs
117 %description libs -l pl
121 Summary: The development environment for the net-snmp project
122 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
123 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek net-snmp
124 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
125 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
126 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
127 Group: Development/Libraries
128 Requires: %{name}-libs = %{version}-%{release}
129 Requires: elfutils-devel
130 Requires: libwrap-devel
131 Requires: openssl-devel >= 0.9.7c
133 Obsoletes: ucd-snmp-devel
136 The ucd-snmp-devel package contains the development libraries and
137 header files for use with the net-snmp project's network management
140 %description devel -l es
141 Estas son las bibliotecas y archivos de inclusión para desarrollo con
142 el SNMP de la UCD. Con este paquete es posible la creación de
143 programas para uso en la gestión de redes.
145 %description devel -l pl
146 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
147 aplikacji u¿ywaj±cych protoko³u SNMP.
149 %description devel -l pt_BR
150 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
151 com o SNMP da UCD. Com este pacote é possível a criação de programas
152 para uso no gerenciamento de redes.
154 %description devel -l ru
155 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
156 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ net-snmp.
158 %description devel -l uk
159 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
160 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ net-snmp.
163 Summary: Static net-snmp libraries
164 Summary(pl): Statyczne biblioteki net-snmp
165 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
166 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ net-snmp
167 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ net-snmp
168 Group: Development/Libraries
169 Requires: %{name}-devel = %{version}-%{release}
170 Obsoletes: ucd-snmp-static
173 Static net-snmp libraries.
175 %description static -l pl
176 Statyczne biblioteki net-snmp.
178 %description static -l pt_BR
179 Bibliotecas estáticas para desenvolvimento com net-snmp.
181 %package compat-devel
182 Summary: The development environment for the UCD-SNMP project
183 Summary(es): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
184 Summary(pl): Pliki dla programistów u¿ywaj±cych bibliotek UCD-SNMP
185 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
186 Summary(ru): óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
187 Summary(uk): óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
188 Group: Development/Libraries
189 Requires: %{name}-libs = %{version}-%{release}
190 Requires: openssl-devel >= 0.9.7d
191 Obsoletes: cmu-snmp-devel
192 Obsoletes: ucd-snmp-devel
194 %description compat-devel
195 The ucd-snmp-devel package contains the development libraries and
196 header files for use with the UCD-SNMP project's network management
199 %description compat-devel -l es
200 Estas son las bibliotecas y archivos de inclusión para desarrollo con
201 el SNMP de la UCD. Con este paquete es posible la creación de
202 programas para uso en la gestión de redes.
204 %description compat-devel -l pl
205 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
206 aplikacji u¿ywaj±cych protoko³u SNMP.
208 %description compat-devel -l pt_BR
209 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
210 com o SNMP da UCD. Com este pacote é possível a criação de programas
211 para uso no gerenciamento de redes.
213 %description compat-devel -l ru
214 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
215 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
217 %description compat-devel -l uk
218 ðÁËÅÔ ucd-snmp-devel ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
219 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
221 %package compat-static
222 Summary: Static UCD-SNMP libraries
223 Summary(pl): Statyczne biblioteki UCD-SNMP
224 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
225 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
226 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
227 Group: Development/Libraries
228 Requires: %{name}-compat-devel = %{version}-%{release}
229 Obsoletes: ucd-snmp-static
231 %description compat-static
232 Static UCD-SNMP libraries.
234 %description compat-static -l pl
235 Statyczne biblioteki UCD-SNMP.
237 %description compat-static -l pt_BR
238 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
241 Summary: MIB database
242 Summary(pl): Baza danych MIB
243 Group: Applications/System
244 Conflicts: ucd-snmp-libs
249 %description mibs -l pl
253 Summary: SNMP trap daemon
254 Summary(pl): Demon obs³uguj±cy pu³apki SNMP
255 Group: Applications/System
256 Requires(post,preun): /sbin/chkconfig
257 Requires: %{name} = %{version}-%{release}
258 Requires: rc-scripts >= 0.2.0
259 Obsoletes: cmu-snmp-utils
260 Obsoletes: ucd-snmp-snmptrapd
262 %description snmptrapd
263 The ucd-snmp-snmptrapd package contains snmp trap daemon.
265 %description snmptrapd -l pl
266 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
269 Summary: Network management utilities using SNMP, from the NET-SNMP project
270 Summary(es): Utilitarios del SNMP de la UCD
271 Summary(pl): Narzêdzia u¿ywaj±ce protoko³u SNMP
272 Summary(pt_BR): Utilitários do SNMP da UCD
273 Summary(ru): õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
274 Summary(uk): õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
275 Group: Applications/System
276 Requires: %{name}-libs = %{version}-%{release}
277 Obsoletes: cmu-snmp-utils
278 Obsoletes: ucd-snmp-utils
281 This package contains various utilities for managing your network
282 using the SNMP protocol.
284 %description utils -l es
285 Varios utilitarios para uso con el SNMP de la UCD. Contiene
286 utilitarios como: snmpwalk, snmptest y otros.
288 %description utils -l pl
289 Ró¿nego rodzaju narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u
292 %description utils -l pt_BR
293 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
294 como: snmpwalk, snmptest e outros.
296 %description utils -l ru
297 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
298 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ net-snmp.
300 %description utils -l uk
301 ðÁËÅÔ ucd-snmp-utils ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
302 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ net-snmp.
304 %package -n perl-SNMP
305 Summary: SNMP and NetSNMP::* Perl modules
306 Summary(pl): Modu³y Perla SNMP oraz NetSNMP::*
307 Group: Development/Languages/Perl
308 Requires: %{name}-libs = %{version}-%{release}
309 Conflicts: ucd-snmp-utils-perl
311 %description -n perl-SNMP
312 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
314 %description -n perl-SNMP -l pl
315 Modu³y Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
318 Summary: Perl utilities for network management using SNMP
319 Summary(pl): Perlowe narzêdzia u¿ywaj±ce protoko³u SNMP
320 Group: Applications/System
321 Requires: perl-SNMP = %{version}-%{release}
322 Obsoletes: cmu-snmp-utils
323 Obsoletes: ucd-snmp-utils-perl
325 %description utils-perl
326 This package contains various Perl utilities for managing your network
327 using the SNMP protocol.
329 %description utils-perl -l pl
330 Perlowe narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u SNMP.
333 Summary: snmpconf - creating and modifying SNMP configuration files
334 Summary(pl): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
335 Group: Applications/System
336 Requires: %{name} = %{version}-%{release}
337 Requires: perl-SNMP = %{version}-%{release}
339 %description snmpconf
340 snmpconf is a simple Perl script that walks you through setting up a
341 configuration file step by step. It should be fairly straight forward
344 %description snmpconf -l pl
345 snmpconf to prosty skrypt Perla pozwalaj±cy na tworzenie pliku
346 konfiguracyjnego krok po kroku. Powinien byæ w miarê prosty w u¿yciu.
349 Summary: MIB browser in Tk
350 Summary(pl): Przegl±darka MIB-ów w Tk
351 Group: Applications/System
352 Requires: perl-SNMP = %{version}-%{release}
358 %description tkmib -l pl
359 Przegl±darka MIB-ów w Tk.
379 --with-logfile="%{logfile}" \
380 --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
381 --with-ldflags="%{rpmldflags}" \
382 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
383 --with-sys-location="Unknown" \
384 --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
385 %ifarch %{ix86} %{x8664}
386 ucd-snmp/lmSensors ucd-snmp/diskio \
388 agentx target misc/ipfwacc" \
391 --disable-debugging \
392 --with-persistent-directory="/var/lib/net-snmp" \
394 --with-sys-contact="root@localhost" \
395 --enable-ucd-snmp-compatibility \
397 --with-default-snmp-version=3 \
400 # --enable-reentrant is broken - snmpd deadlocks on send (tries to lock the same mutex twice):
401 # #4 0xb760f54e in siglongjmp () from /lib/tls/libpthread.so.0
402 # #5 0xb7e5e0cf in snmp_res_lock (groupID=0, resourceID=1) at mt_support.c:103
403 # #6 0xb7e45698 in snmp_sess_pointer (session=0x80ff868) at snmp_api.c:6975
404 # #7 0xb7e41aca in snmp_async_send (session=0x80ff868, pdu=0x8141848, callback=0, cb_data=0x0)
406 # #8 0xb7e41a6d in snmp_send (session=0x80ff868, pdu=0x8141848) at snmp_api.c:4551
407 # #9 0xb7ebf6fd in netsnmp_wrap_up_request (asp=0x812d828, status=0) at snmp_agent.c:1627
408 # #10 0xb7ec12e3 in netsnmp_handle_request (asp=0x812d828, status=0) at snmp_agent.c:2996
409 # #11 0xb7ebfa65 in handle_snmp_packet (op=1, session=0x80ff868, reqid=628270607, pdu=0x81419b8,
410 # magic=0x0) at snmp_agent.c:1792
411 # #12 0xb7e42b1c in _sess_process_packet (sessp=0x812c970, sp=0x80ff868, isp=0x812c698,
412 # transport=0x8142028, opaque=0x812c1a0, olength=16,
413 # packetptr=0x8145cb8 "0f\002\001\0030\021\002\004c [Ç\002\003", length=104) at snmp_api.c:5208
414 # #13 0xb7e434e6 in _sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5606
415 # #14 0xb7e43535 in snmp_sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5625
416 # #15 0xb7e42c44 in snmp_read (fdset=0xbfffe0e0) at snmp_api.c:5260
417 # #16 0x0804bbe5 in receive () at snmpd.c:1149
418 # #17 0x0804b53d in main (argc=5, argv=0xbffff344) at snmpd.c:993
419 # [res mutex with groupID=0, resourceID=1 already locked in snmp_read() at snmp_api.c:5258]
421 # build this subdir first. it's causing STRANGE compile failures # otherwise (for me at least). glen
422 %{__make} -C agent/mibgroup
427 %{__perl} Makefile.PL \
428 -NET-SNMP-IN-SOURCE=true \
430 OPTIMIZE="%{rpmcflags}" \
433 # avoid rpaths generated by MakeMaker
434 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
437 LDFLAGS="%{rpmldflags}"
440 rm -rf $RPM_BUILD_ROOT
441 install -d $RPM_BUILD_ROOT{/etc/{snmp,rc.d/init.d,sysconfig},/var/log}
444 INSTALL_PREFIX=$RPM_BUILD_ROOT
446 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
447 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
448 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
449 :> $RPM_BUILD_ROOT%{logfile}
451 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
452 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
453 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
455 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
456 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
457 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
459 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
460 # $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
464 DESTDIR=$RPM_BUILD_ROOT
466 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
467 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
470 # IP-Filter (non-Linux)
471 rm -f $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
474 rm -rf $RPM_BUILD_ROOT
477 /sbin/chkconfig --add snmpd
478 if [ -f /var/lock/subsys/snmpd ]; then
479 /etc/rc.d/init.d/snmpd restart >&2
481 %banner %{name} -e <<EOF
482 Run \"/etc/rc.d/init.d/snmpd start\" to start snmpd daemon.
490 if [ "$1" = "0" ]; then
491 if [ -f /var/lock/subsys/snmpd ]; then
492 /etc/rc.d/init.d/snmpd stop >&2
494 /sbin/chkconfig --del snmpd
497 %post libs -p /sbin/ldconfig
498 %postun libs -p /sbin/ldconfig
501 /sbin/chkconfig --add snmptrapd
502 if [ -f /var/lock/subsys/snmptrapd ]; then
503 /etc/rc.d/init.d/snmptrapd restart >&2
505 %banner %{name}-snmptrapd -e <<EOF
506 Run \"/etc/rc.d/init.d/snmptrapd start\" to start snmp trap daemon.
514 if [ "$1" = "0" ]; then
515 if [ -f /var/lock/subsys/snmptrapd ]; then
516 /etc/rc.d/init.d/snmptrapd stop >&2
518 /sbin/chkconfig --del snmptrapd
522 %defattr(644,root,root,755)
524 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
525 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
527 %attr(754,root,root) /etc/rc.d/init.d/snmpd
528 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
530 %dir %{_sysconfdir}/snmp
531 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
532 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
534 %attr(755,root,root) %{_sbindir}/snmpd
536 %{_mandir}/man5/snmpd.conf.5*
537 %{_mandir}/man5/snmpd.examples.5*
538 %{_mandir}/man5/snmpd.internal.5*
539 %{_mandir}/man5/variables.5*
540 %{_mandir}/man8/snmpd.8*
542 %attr(640,root,root) %ghost %{logfile}
545 %defattr(644,root,root,755)
546 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
549 %defattr(644,root,root,755)
550 %attr(755,root,root) %{_bindir}/mib2c
551 %attr(755,root,root) %{_bindir}/mib2c-update
552 %attr(755,root,root) %{_bindir}/net-snmp-config
553 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
554 %{_libdir}/libnet*.la
555 %{_includedir}/net-snmp
556 %{_datadir}/snmp/mib2c*
557 %{_mandir}/man1/mib2c.1*
558 %{_mandir}/man3/[!NS]*
559 %{_mandir}/man5/mib2c.conf.5*
562 %defattr(644,root,root,755)
566 %defattr(644,root,root,755)
567 %attr(755,root,root) %{_libdir}/libsnmp.so
568 %{_libdir}/libsnmp.la
569 %{_includedir}/ucd-snmp
572 %defattr(644,root,root,755)
576 %defattr(644,root,root,755)
577 %dir %{_datadir}/snmp
578 %{_datadir}/snmp/mibs
581 %defattr(644,root,root,755)
582 %attr(755,root,root) %{_sbindir}/snmptrapd
583 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
584 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
585 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
586 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
587 %{_mandir}/man5/snmptrapd.conf.5*
588 %{_mandir}/man8/snmptrapd.8*
591 %defattr(644,root,root,755)
592 %attr(755,root,root) %{_bindir}/encode_keychange
593 %attr(755,root,root) %{_bindir}/snmpbulkget
594 %attr(755,root,root) %{_bindir}/snmpbulkwalk
595 %attr(755,root,root) %{_bindir}/snmpdelta
596 %attr(755,root,root) %{_bindir}/snmpdf
597 %attr(755,root,root) %{_bindir}/snmpget
598 %attr(755,root,root) %{_bindir}/snmpgetnext
599 %attr(755,root,root) %{_bindir}/snmpinform
600 %attr(755,root,root) %{_bindir}/snmpnetstat
601 %attr(755,root,root) %{_bindir}/snmpset
602 %attr(755,root,root) %{_bindir}/snmpstatus
603 %attr(755,root,root) %{_bindir}/snmptable
604 %attr(755,root,root) %{_bindir}/snmptest
605 %attr(755,root,root) %{_bindir}/snmptranslate
606 %attr(755,root,root) %{_bindir}/snmptrap
607 %attr(755,root,root) %{_bindir}/snmpusm
608 %attr(755,root,root) %{_bindir}/snmpvacm
609 %attr(755,root,root) %{_bindir}/snmpwalk
611 %{_mandir}/man1/snmpbulkget.1*
612 %{_mandir}/man1/snmpbulkwalk.1*
613 %{_mandir}/man1/snmpcmd.1*
614 %{_mandir}/man1/snmpdelta.1*
615 %{_mandir}/man1/snmpdf.1*
616 %{_mandir}/man1/snmpget.1*
617 %{_mandir}/man1/snmpgetnext.1*
618 %{_mandir}/man1/snmpinform.1*
619 %{_mandir}/man1/snmpnetstat.1*
620 %{_mandir}/man1/snmpset.1*
621 %{_mandir}/man1/snmpstatus.1*
622 %{_mandir}/man1/snmptable.1*
623 %{_mandir}/man1/snmptest.1*
624 %{_mandir}/man1/snmptranslate.1*
625 %{_mandir}/man1/snmptrap.1*
626 %{_mandir}/man1/snmpusm.1*
627 %{_mandir}/man1/snmpvacm.1*
628 %{_mandir}/man1/snmpwalk.1*
629 %{_mandir}/man5/snmp.conf.5*
630 %{_mandir}/man5/snmp_config.5*
632 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
635 %defattr(644,root,root,755)
636 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
637 %{perl_vendorarch}/SNMP.pm
638 %{perl_vendorarch}/NetSNMP
639 %dir %{perl_vendorarch}/auto/SNMP
640 %{perl_vendorarch}/auto/SNMP/autosplit.ix
641 %{perl_vendorarch}/auto/SNMP/SNMP.bs
642 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
643 %dir %{perl_vendorarch}/auto/NetSNMP
644 %dir %{perl_vendorarch}/auto/NetSNMP/*
645 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
646 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
647 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
648 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
649 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
650 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
651 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
652 %{_mandir}/man3/NetSNMP::*.3*
653 %{_mandir}/man3/SNMP.3*
654 %{_examplesdir}/perl-SNMP-%{version}
657 %defattr(644,root,root,755)
658 %attr(755,root,root) %{_bindir}/fixproc
659 %attr(755,root,root) %{_bindir}/snmpcheck
660 %attr(755,root,root) %{_bindir}/traptoemail
663 %defattr(644,root,root,755)
664 %attr(755,root,root) %{_bindir}/snmpconf
665 %{_mandir}/man1/snmpconf.1*
666 %{_datadir}/snmp/snmpconf-data
669 %defattr(644,root,root,755)
670 %attr(755,root,root) %{_bindir}/tkmib