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