]> git.pld-linux.org Git - packages/net-snmp.git/blob - net-snmp.spec
- use %service, adapterized, cosmetics
[packages/net-snmp.git] / net-snmp.spec
1 #
2 # Conditional build:
3 %bcond_without  autodeps        # don't BR packages only for deps resolving
4 #
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
12 Name:           net-snmp
13 Version:        5.3.0.1
14 Release:        0.1
15 License:        BSD-like
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 BuildRequires:  rpmbuild(macros) >= 1.268
50 Requires(post,preun):   /sbin/chkconfig
51 Requires:       %{name}-libs = %{version}-%{release}
52 Requires:       /usr/bin/setsid
53 Requires:       rc-scripts >= 0.2.0
54 Provides:       snmpd
55 Obsoletes:      cmu-snmp
56 Obsoletes:      snmpd
57 Obsoletes:      ucd-snmp
58 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59
60 %define         logfile         /var/log/snmpd.log
61
62 %description
63 SNMP (Simple Network Management Protocol) is a protocol used for
64 network management (hence the name). The net-snmp project includes
65 various SNMP tools: an extensible agent, an SNMP library, tools for
66 requesting or setting information from SNMP agents, tools for
67 generating and handling SNMP traps, a version of the netstat command
68 which uses SNMP, and a Tk/Perl mib browser. This package contains the
69 snmpd daemon, documentation, etc.
70
71 %description -l es
72 Este paquete se deriva de la implementación del Protocolo Simple de
73 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
74 Útil para administrar redes y hacer contabilidad.
75
76 %description -l pl
77 SNMP (Simple Network Management Protocol) jest protoko³em u¿ywanym do
78 zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
79 agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
80 informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
81 pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
82 w Tk/Perl, demona, dokumentacjê itp.
83
84 %description -l pt_BR
85 Este pacote é derivado da implementação do Protocolo Simples de
86 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
87 Mellon. Útil para gerenciar redes e fazer contabilidade.
88
89 %description -l ru
90 SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
91 ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ net-snmp ×ËÌÀÞÁÅÔ
92 ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
93 ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
94 ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
95 ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
96 ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
97
98 %description -l uk
99 SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
100 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ net-snmp
101 ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, Â¦Â̦ÏÔÅËÁ
102 SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁ槠צĠNMP-ÁÇÅÎÔ¦×,
103 ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁ槠ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒӦѠËÏÍÁÎÄÉ netstat,
104 ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ
105 ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
106
107 %package libs
108 Summary:        NET SNMP libraries
109 Summary(pl):    Biblioteki SNMP
110 Group:          Libraries
111 Requires:       %{name}-mibs = %{version}-%{release}
112 Obsoletes:      net-snmp-compat-libs
113 Obsoletes:      ucd-snmp-libs
114
115 %description libs
116 NET SNMP libraries.
117
118 %description libs -l pl
119 Biblioteki SNMP.
120
121 %package devel
122 Summary:        The development environment for the net-snmp project
123 Summary(es):    Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
124 Summary(pl):    Pliki dla programistów u¿ywaj±cych bibliotek net-snmp
125 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
126 Summary(ru):    óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
127 Summary(uk):    óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
128 Group:          Development/Libraries
129 Requires:       %{name}-libs = %{version}-%{release}
130 Requires:       elfutils-devel
131 Requires:       libwrap-devel
132 Requires:       openssl-devel >= 0.9.7c
133 Requires:       rpm-devel
134 Obsoletes:      ucd-snmp-devel
135
136 %description devel
137 The ucd-snmp-devel package contains the development libraries and
138 header files for use with the net-snmp project's network management
139 tools.
140
141 %description devel -l es
142 Estas son las bibliotecas y archivos de inclusión para desarrollo con
143 el SNMP de la UCD. Con este paquete es posible la creación de
144 programas para uso en la gestión de redes.
145
146 %description devel -l pl
147 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
148 aplikacji u¿ywaj±cych protoko³u SNMP.
149
150 %description devel -l pt_BR
151 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
152 com o SNMP da UCD. Com este pacote é possível a criação de programas
153 para uso no gerenciamento de redes.
154
155 %description devel -l ru
156 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
157 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ net-snmp.
158
159 %description devel -l uk
160 ðÁËÅÔ ucd-snmp-devel Í¦ÓÔÉÔؠ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
161 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ net-snmp.
162
163 %package static
164 Summary:        Static net-snmp libraries
165 Summary(pl):    Statyczne biblioteki net-snmp
166 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
167 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ net-snmp
168 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ net-snmp
169 Group:          Development/Libraries
170 Requires:       %{name}-devel = %{version}-%{release}
171 Obsoletes:      ucd-snmp-static
172
173 %description static
174 Static net-snmp libraries.
175
176 %description static -l pl
177 Statyczne biblioteki net-snmp.
178
179 %description static -l pt_BR
180 Bibliotecas estáticas para desenvolvimento com net-snmp.
181
182 %package compat-devel
183 Summary:        The development environment for the UCD-SNMP project
184 Summary(es):    Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
185 Summary(pl):    Pliki dla programistów u¿ywaj±cych bibliotek UCD-SNMP
186 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
187 Summary(ru):    óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
188 Summary(uk):    óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
189 Group:          Development/Libraries
190 Requires:       %{name}-libs = %{version}-%{release}
191 Requires:       openssl-devel >= 0.9.7d
192 Obsoletes:      cmu-snmp-devel
193 Obsoletes:      ucd-snmp-devel
194
195 %description compat-devel
196 The ucd-snmp-devel package contains the development libraries and
197 header files for use with the UCD-SNMP project's network management
198 tools.
199
200 %description compat-devel -l es
201 Estas son las bibliotecas y archivos de inclusión para desarrollo con
202 el SNMP de la UCD. Con este paquete es posible la creación de
203 programas para uso en la gestión de redes.
204
205 %description compat-devel -l pl
206 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do rozwoju
207 aplikacji u¿ywaj±cych protoko³u SNMP.
208
209 %description compat-devel -l pt_BR
210 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
211 com o SNMP da UCD. Com este pacote é possível a criação de programas
212 para uso no gerenciamento de redes.
213
214 %description compat-devel -l ru
215 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
216 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
217
218 %description compat-devel -l uk
219 ðÁËÅÔ ucd-snmp-devel Í¦ÓÔÉÔؠ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
220 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
221
222 %package compat-static
223 Summary:        Static UCD-SNMP libraries
224 Summary(pl):    Statyczne biblioteki UCD-SNMP
225 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
226 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
227 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
228 Group:          Development/Libraries
229 Requires:       %{name}-compat-devel = %{version}-%{release}
230 Obsoletes:      ucd-snmp-static
231
232 %description compat-static
233 Static UCD-SNMP libraries.
234
235 %description compat-static -l pl
236 Statyczne biblioteki UCD-SNMP.
237
238 %description compat-static -l pt_BR
239 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
240
241 %package mibs
242 Summary:        MIB database
243 Summary(pl):    Baza danych MIB
244 Group:          Applications/System
245 Conflicts:      ucd-snmp-libs
246
247 %description mibs
248 MIB database.
249
250 %description mibs -l pl
251 Baza danych MIB.
252
253 %package snmptrapd
254 Summary:        SNMP trap daemon
255 Summary(pl):    Demon obs³uguj±cy pu³apki SNMP
256 Group:          Applications/System
257 Requires(post,preun):   /sbin/chkconfig
258 Requires:       %{name} = %{version}-%{release}
259 Requires:       rc-scripts >= 0.2.0
260 Obsoletes:      cmu-snmp-utils
261 Obsoletes:      ucd-snmp-snmptrapd
262
263 %description snmptrapd
264 The ucd-snmp-snmptrapd package contains snmp trap daemon.
265
266 %description snmptrapd -l pl
267 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
268
269 %package utils
270 Summary:        Network management utilities using SNMP, from the NET-SNMP project
271 Summary(es):    Utilitarios del SNMP de la UCD
272 Summary(pl):    Narzêdzia u¿ywaj±ce protoko³u SNMP
273 Summary(pt_BR): Utilitários do SNMP da UCD
274 Summary(ru):    õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
275 Summary(uk):    õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
276 Group:          Applications/System
277 Requires:       %{name}-libs = %{version}-%{release}
278 Obsoletes:      cmu-snmp-utils
279 Obsoletes:      ucd-snmp-utils
280
281 %description utils
282 This package contains various utilities for managing your network
283 using the SNMP protocol.
284
285 %description utils -l es
286 Varios utilitarios para uso con el SNMP de la UCD. Contiene
287 utilitarios como: snmpwalk, snmptest y otros.
288
289 %description utils -l pl
290 Ró¿nego rodzaju narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u
291 SNMP.
292
293 %description utils -l pt_BR
294 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
295 como: snmpwalk, snmptest e outros.
296
297 %description utils -l ru
298 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
299 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ net-snmp.
300
301 %description utils -l uk
302 ðÁËÅÔ ucd-snmp-utils Í¦ÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
303 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ net-snmp.
304
305 %package -n perl-SNMP
306 Summary:        SNMP and NetSNMP::* Perl modules
307 Summary(pl):    Modu³y Perla SNMP oraz NetSNMP::*
308 Group:          Development/Languages/Perl
309 Requires:       %{name}-libs = %{version}-%{release}
310 Conflicts:      ucd-snmp-utils-perl
311
312 %description -n perl-SNMP
313 SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
314
315 %description -n perl-SNMP -l pl
316 Modu³y Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
317
318 %package utils-perl
319 Summary:        Perl utilities for network management using SNMP
320 Summary(pl):    Perlowe narzêdzia u¿ywaj±ce protoko³u SNMP
321 Group:          Applications/System
322 Requires:       perl-SNMP = %{version}-%{release}
323 Obsoletes:      cmu-snmp-utils
324 Obsoletes:      ucd-snmp-utils-perl
325
326 %description utils-perl
327 This package contains various Perl utilities for managing your network
328 using the SNMP protocol.
329
330 %description utils-perl -l pl
331 Perlowe narzêdzia do zarz±dzania sieci± przy u¿yciu protoko³u SNMP.
332
333 %package snmpconf
334 Summary:        snmpconf - creating and modifying SNMP configuration files
335 Summary(pl):    snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
336 Group:          Applications/System
337 Requires:       %{name} = %{version}-%{release}
338 Requires:       perl-SNMP = %{version}-%{release}
339
340 %description snmpconf
341 snmpconf is a simple Perl script that walks you through setting up a
342 configuration file step by step. It should be fairly straight forward
343 to use.
344
345 %description snmpconf -l pl
346 snmpconf to prosty skrypt Perla pozwalaj±cy na tworzenie pliku
347 konfiguracyjnego krok po kroku. Powinien byæ w miarê prosty w u¿yciu.
348
349 %package tkmib
350 Summary:        MIB browser in Tk
351 Summary(pl):    Przegl±darka MIB-ów w Tk
352 Group:          Applications/System
353 Requires:       perl-SNMP = %{version}-%{release}
354 Requires:       perl-Tk
355
356 %description tkmib
357 MIB browser in Tk.
358
359 %description tkmib -l pl
360 Przegl±darka MIB-ów w Tk.
361
362 %prep
363 %setup -q -a7
364 %patch0 -p1
365 %patch1 -p1
366 %patch2 -p1
367 %patch3 -p1
368 %patch4 -p1
369 %patch5 -p1
370 %patch6 -p1
371 %patch7 -p1
372 %patch8 -p1
373
374 %build
375 %{__libtoolize}
376 %{__aclocal}
377 %{__autoconf}
378 %{__autoheader}
379 %configure \
380         --with-logfile="%{logfile}" \
381         --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
382         --with-ldflags="%{rpmldflags}" \
383         --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
384         --with-sys-location="Unknown" \
385         --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
386 %ifarch %{ix86} %{x8664}
387                 ucd-snmp/lmSensors ucd-snmp/diskio \
388 %endif
389                 agentx target misc/ipfwacc" \
390         --with-libwrap \
391         --with-openssl \
392         --disable-debugging \
393         --with-persistent-directory="/var/lib/net-snmp" \
394         --enable-ipv6 \
395         --with-sys-contact="root@localhost" \
396         --enable-ucd-snmp-compatibility \
397         --with-defaults \
398         --with-default-snmp-version=3 \
399         --enable-shared
400
401 #       --enable-reentrant is broken - snmpd deadlocks on send (tries to lock the same mutex twice):
402 #   #4  0xb760f54e in siglongjmp () from /lib/tls/libpthread.so.0
403 #   #5  0xb7e5e0cf in snmp_res_lock (groupID=0, resourceID=1) at mt_support.c:103
404 #   #6  0xb7e45698 in snmp_sess_pointer (session=0x80ff868) at snmp_api.c:6975
405 #   #7  0xb7e41aca in snmp_async_send (session=0x80ff868, pdu=0x8141848, callback=0, cb_data=0x0)
406 #       at snmp_api.c:4564
407 #   #8  0xb7e41a6d in snmp_send (session=0x80ff868, pdu=0x8141848) at snmp_api.c:4551
408 #   #9  0xb7ebf6fd in netsnmp_wrap_up_request (asp=0x812d828, status=0) at snmp_agent.c:1627
409 #   #10 0xb7ec12e3 in netsnmp_handle_request (asp=0x812d828, status=0) at snmp_agent.c:2996
410 #   #11 0xb7ebfa65 in handle_snmp_packet (op=1, session=0x80ff868, reqid=628270607, pdu=0x81419b8,
411 #       magic=0x0) at snmp_agent.c:1792
412 #   #12 0xb7e42b1c in _sess_process_packet (sessp=0x812c970, sp=0x80ff868, isp=0x812c698,
413 #       transport=0x8142028, opaque=0x812c1a0, olength=16,
414 #       packetptr=0x8145cb8 "0f\002\001\0030\021\002\004c [Ç\002\003", length=104) at snmp_api.c:5208
415 #   #13 0xb7e434e6 in _sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5606
416 #   #14 0xb7e43535 in snmp_sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5625
417 #   #15 0xb7e42c44 in snmp_read (fdset=0xbfffe0e0) at snmp_api.c:5260
418 #   #16 0x0804bbe5 in receive () at snmpd.c:1149
419 #   #17 0x0804b53d in main (argc=5, argv=0xbffff344) at snmpd.c:993
420 # [res mutex with groupID=0, resourceID=1 already locked in snmp_read() at snmp_api.c:5258]
421
422 # build this subdir first. it's causing STRANGE compile failures # otherwise (for me at least). glen
423 %{__make} -C agent/mibgroup
424 %{__make}
425
426 cd perl
427
428 %{__perl} Makefile.PL \
429         -NET-SNMP-IN-SOURCE=true \
430         INSTALLDIRS=vendor \
431         OPTIMIZE="%{rpmcflags}" \
432         </dev/null
433
434 # avoid rpaths generated by MakeMaker
435 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
436
437 %{__make} \
438         LDFLAGS="%{rpmldflags}"
439
440 %install
441 rm -rf $RPM_BUILD_ROOT
442 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,snmp},/var/log}
443
444 %{__make} install \
445         INSTALL_PREFIX=$RPM_BUILD_ROOT
446
447 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
448 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
449 :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
450 :> $RPM_BUILD_ROOT%{logfile}
451
452 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
453 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
454 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
455
456 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
457 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
458 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
459
460 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
461 #       $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
462
463 cd perl
464 %{__make} install \
465         DESTDIR=$RPM_BUILD_ROOT
466
467 install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
468 install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
469 cd ..
470
471 # IP-Filter (non-Linux)
472 rm -f $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
473
474 %clean
475 rm -rf $RPM_BUILD_ROOT
476
477 %post
478 touch %{logfile}
479 chmod 640 %{logfile}
480 /sbin/chkconfig --add snmpd
481 %service snmpd restart "snmpd daemon"
482
483 %preun
484 if [ "$1" = "0" ]; then
485         %service snmpd stop
486         /sbin/chkconfig --del snmpd
487 fi
488
489 %post   libs -p /sbin/ldconfig
490 %postun libs -p /sbin/ldconfig
491
492 %triggerpostun -- ucd-snmp
493 /sbin/chkconfig --add snmpd
494
495 %post snmptrapd
496 touch %{logfile}
497 chmod 640 %{logfile}
498 /sbin/chkconfig --add snmptrapd
499 %service snmptrapd restart "snmp trap daemon"
500
501 %preun snmptrapd
502 if [ "$1" = "0" ]; then
503         %service snmptrapd stop
504         /sbin/chkconfig --del snmptrapd
505 fi
506
507 %triggerpostun snmptrapd -- ucd-snmp-snmptrapd
508 /sbin/chkconfig --add snmptrapd
509
510 %files
511 %defattr(644,root,root,755)
512 %doc README local
513 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
514 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
515
516 %attr(754,root,root) /etc/rc.d/init.d/snmpd
517 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
518
519 %dir %{_sysconfdir}/snmp
520 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
521 %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
522
523 %attr(755,root,root) %{_sbindir}/snmpd
524
525 %{_mandir}/man5/snmpd.conf.5*
526 %{_mandir}/man5/snmpd.examples.5*
527 %{_mandir}/man5/snmpd.internal.5*
528 %{_mandir}/man5/variables.5*
529 %{_mandir}/man8/snmpd.8*
530
531 %attr(640,root,root) %ghost %{logfile}
532
533 %files libs
534 %defattr(644,root,root,755)
535 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
536
537 %files devel
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_bindir}/mib2c
540 %attr(755,root,root) %{_bindir}/mib2c-update
541 %attr(755,root,root) %{_bindir}/net-snmp-config
542 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
543 %{_libdir}/libnet*.la
544 %{_includedir}/net-snmp
545 %{_datadir}/snmp/mib2c*
546 %{_mandir}/man1/mib2c.1*
547 %{_mandir}/man3/[!NS]*
548 %{_mandir}/man5/mib2c.conf.5*
549
550 %files static
551 %defattr(644,root,root,755)
552 %{_libdir}/libnet*.a
553
554 %files compat-devel
555 %defattr(644,root,root,755)
556 %attr(755,root,root) %{_libdir}/libsnmp.so
557 %{_libdir}/libsnmp.la
558 %{_includedir}/ucd-snmp
559
560 %files compat-static
561 %defattr(644,root,root,755)
562 %{_libdir}/libsnmp.a
563
564 %files mibs
565 %defattr(644,root,root,755)
566 %dir %{_datadir}/snmp
567 %{_datadir}/snmp/mibs
568
569 %files snmptrapd
570 %defattr(644,root,root,755)
571 %attr(755,root,root) %{_sbindir}/snmptrapd
572 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
573 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
574 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
575 %attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
576 %{_mandir}/man5/snmptrapd.conf.5*
577 %{_mandir}/man8/snmptrapd.8*
578
579 %files utils
580 %defattr(644,root,root,755)
581 %attr(755,root,root) %{_bindir}/encode_keychange
582 %attr(755,root,root) %{_bindir}/snmpbulkget
583 %attr(755,root,root) %{_bindir}/snmpbulkwalk
584 %attr(755,root,root) %{_bindir}/snmpdelta
585 %attr(755,root,root) %{_bindir}/snmpdf
586 %attr(755,root,root) %{_bindir}/snmpget
587 %attr(755,root,root) %{_bindir}/snmpgetnext
588 %attr(755,root,root) %{_bindir}/snmpinform
589 %attr(755,root,root) %{_bindir}/snmpnetstat
590 %attr(755,root,root) %{_bindir}/snmpset
591 %attr(755,root,root) %{_bindir}/snmpstatus
592 %attr(755,root,root) %{_bindir}/snmptable
593 %attr(755,root,root) %{_bindir}/snmptest
594 %attr(755,root,root) %{_bindir}/snmptranslate
595 %attr(755,root,root) %{_bindir}/snmptrap
596 %attr(755,root,root) %{_bindir}/snmpusm
597 %attr(755,root,root) %{_bindir}/snmpvacm
598 %attr(755,root,root) %{_bindir}/snmpwalk
599
600 %{_mandir}/man1/snmpbulkget.1*
601 %{_mandir}/man1/snmpbulkwalk.1*
602 %{_mandir}/man1/snmpcmd.1*
603 %{_mandir}/man1/snmpdelta.1*
604 %{_mandir}/man1/snmpdf.1*
605 %{_mandir}/man1/snmpget.1*
606 %{_mandir}/man1/snmpgetnext.1*
607 %{_mandir}/man1/snmpinform.1*
608 %{_mandir}/man1/snmpnetstat.1*
609 %{_mandir}/man1/snmpset.1*
610 %{_mandir}/man1/snmpstatus.1*
611 %{_mandir}/man1/snmptable.1*
612 %{_mandir}/man1/snmptest.1*
613 %{_mandir}/man1/snmptranslate.1*
614 %{_mandir}/man1/snmptrap.1*
615 %{_mandir}/man1/snmpusm.1*
616 %{_mandir}/man1/snmpvacm.1*
617 %{_mandir}/man1/snmpwalk.1*
618 %{_mandir}/man5/snmp.conf.5*
619 %{_mandir}/man5/snmp_config.5*
620
621 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
622
623 %files -n perl-SNMP
624 %defattr(644,root,root,755)
625 %doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
626 %{perl_vendorarch}/SNMP.pm
627 %{perl_vendorarch}/NetSNMP
628 %dir %{perl_vendorarch}/auto/SNMP
629 %{perl_vendorarch}/auto/SNMP/autosplit.ix
630 %{perl_vendorarch}/auto/SNMP/SNMP.bs
631 %attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
632 %dir %{perl_vendorarch}/auto/NetSNMP
633 %dir %{perl_vendorarch}/auto/NetSNMP/*
634 %{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
635 %{perl_vendorarch}/auto/NetSNMP/*/*.bs
636 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
637 %dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
638 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
639 %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
640 %attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
641 %{_mandir}/man3/NetSNMP::*.3*
642 %{_mandir}/man3/SNMP.3*
643 %{_examplesdir}/perl-SNMP-%{version}
644
645 %files utils-perl
646 %defattr(644,root,root,755)
647 %attr(755,root,root) %{_bindir}/fixproc
648 %attr(755,root,root) %{_bindir}/snmpcheck
649 %attr(755,root,root) %{_bindir}/traptoemail
650
651 %files snmpconf
652 %defattr(644,root,root,755)
653 %attr(755,root,root) %{_bindir}/snmpconf
654 %{_mandir}/man1/snmpconf.1*
655 %{_datadir}/snmp/snmpconf-data
656
657 %files tkmib
658 %defattr(644,root,root,755)
659 %attr(755,root,root) %{_bindir}/tkmib
This page took 0.089942 seconds and 4 git commands to generate.