]> git.pld-linux.org Git - packages/net-snmp.git/blame - net-snmp.spec
- tabs in preamble
[packages/net-snmp.git] / net-snmp.spec
CommitLineData
ad841d97
JB
1#
2# Conditional build:
3%bcond_without autodeps # don't BR packages only for deps resolving
4#
ea774f60
AF
5%include /usr/lib/rpm/macros.perl
6Summary: A collection of SNMP protocol tools
7d4e48ba
ER
7Summary(es.UTF-8): Agente SNMP de la UCD
8Summary(pl.UTF-8): Kolekcja narzędzi do obsługi protokołu SNMP
9Summary(pt_BR.UTF-8): Agente SNMP da UCD
10Summary(ru.UTF-8): Набор утилит для протокола SNMP от UC-Davis
11Summary(uk.UTF-8): Набір утиліт для протоколу SNMP від UC-Davis
ea774f60 12Name: net-snmp
ee18f99a 13Version: 5.4
b0b507b1 14Release: 2
ea774f60
AF
15License: BSD-like
16Group: Networking/Daemons
17Source0: http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
ee18f99a 18# Source0-md5: 46d893281056ff476e597659cb91574d
ea774f60 19Source1: %{name}d.init
6810e918 20Source2: %{name}d.conf
ea774f60
AF
21Source3: %{name}d.sysconfig
22Source4: %{name}trapd.init
6810e918 23Source5: %{name}trapd.conf
ea774f60 24Source6: %{name}trapd.sysconfig
ee18f99a 25Source7: ucd-ipchains.tar.gz
6789d157 26# Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
ee18f99a
AM
27Patch0: %{name}-acfix.patch
28Patch1: %{name}-rpm-implicit-libs.patch
29Patch2: %{name}-config-noflags.patch
30Patch3: %{name}-dlopen-fix.patch
31Patch4: %{name}-manpage.patch
32Patch5: %{name}-link.patch
33Patch6: %{name}-llinterfaces.patch
34Patch7: %{name}-kernel_headers.patch
35Patch8: %{name}-rpmpath.patch
f42492ff 36Patch9: %{name}-snmpksm.patch
a5fe3234 37Patch10: %{name}-python.patch
b0b507b1 38Patch11: %{name}-python-includes.patch
ea774f60
AF
39URL: http://www.net-snmp.org/
40BuildRequires: autoconf >= 2.57-3
41BuildRequires: automake
e43a09d3 42BuildRequires: elfutils-devel
ee18f99a 43BuildRequires: heimdal-devel
ea774f60
AF
44BuildRequires: libtool >= 1.4
45BuildRequires: libwrap-devel
6e818aed 46BuildRequires: lm_sensors-devel
2e25f11c 47BuildRequires: openssl-devel >= 0.9.7d
ad841d97
JB
48%{?with_autodeps:BuildRequires: perl-Term-ReadKey}
49BuildRequires: perl-devel >= 1:5.8.0
a5fe3234 50BuildRequires: python-devel >= 1:2.5
c2ceb56d 51BuildRequires: python-setuptools
ea774f60
AF
52BuildRequires: rpm-devel >= 4.0
53BuildRequires: rpm-perlprov >= 3.0.3-16
e65e8dc4 54BuildRequires: rpmbuild(macros) >= 1.176
fa43c632 55BuildRequires: rpmbuild(macros) >= 1.268
ea774f60 56Requires(post,preun): /sbin/chkconfig
b0389a15 57Requires: %{name}-libs = %{version}-%{release}
ea774f60 58Requires: /usr/bin/setsid
b0389a15 59Requires: rc-scripts >= 0.2.0
ea774f60 60Provides: snmpd
ea774f60
AF
61Obsoletes: cmu-snmp
62Obsoletes: snmpd
e93f5ac2 63Obsoletes: ucd-snmp
fa43c632 64BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ea774f60 65
ea774f60 66%define logfile /var/log/snmpd.log
39bab6f6 67%define filterout_ld -Wl,--as-needed
ea774f60
AF
68
69%description
70SNMP (Simple Network Management Protocol) is a protocol used for
531ca0ff 71network management (hence the name). The net-snmp project includes
ea774f60
AF
72various SNMP tools: an extensible agent, an SNMP library, tools for
73requesting or setting information from SNMP agents, tools for
74generating and handling SNMP traps, a version of the netstat command
75which uses SNMP, and a Tk/Perl mib browser. This package contains the
76snmpd daemon, documentation, etc.
77
b1738c7c
JR
78%description -l es.UTF-8
79Este paquete se deriva de la implementación del Protocolo Simple de
80Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
81Útil para administrar redes y hacer contabilidad.
82
83%description -l pl.UTF-8
84SNMP (Simple Network Management Protocol) jest protokołem używanym do
85zarządzania sieciami. Pakiet zawiera narzędzia: rozbudowywalnego
86agenta, bibliotekę SNMP, narzędzia do odpytywania oraz ustawiania
87informacji poprzez agentów SNMP, narzędzia do generowania i obsługi
88pułapek SNMP, wersję komendy netstat używającą SNMP, przeglądarkę mib
89w Tk/Perl, demona, dokumentację itp.
90
91%description -l pt_BR.UTF-8
92Este pacote é derivado da implementação do Protocolo Simples de
93Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
94Mellon. Útil para gerenciar redes e fazer contabilidade.
95
96%description -l ru.UTF-8
97SNMP (Simple Network Management Protocol) - это протокол, используемый
98для управления сетью (отсюда и название). Проект net-snmp включает
99разнообразные SNMP-утилиты: расширяемый агент, библиотека SNMP,
100утилиты для запроса или установки информации от SNMP-агентов, утилиты
101для генерации и обработки SNMP-трапов, версия команды netstat,
102использующей SNMP, и mib-браузер на Tk/Perl. Этот пакет содержит
103демоны snmpd и snmptrapd, документацию и т.д.
104
105%description -l uk.UTF-8
106SNMP (Simple Network Management Protocol) - це протокол, який
107використовують для керування мережею (звідси і назва). Проект net-snmp
108містить різноманітні SNMP-утиліти: розширюваний агент, бібліотека
109SNMP, утиліти для запросу та встановлення інформації від NMP-агентів,
110утиліти для генерації та обробки SNMP-трапів, версія команди netstat,
111яка використовує SNMP, та mib-браузер на Tk/Perl. Цей пакет містить
112демони snmpd та snmptrapd, документацію і т.і.
ea774f60
AF
113
114%package libs
e93f5ac2 115Summary: NET SNMP libraries
7d4e48ba 116Summary(pl.UTF-8): Biblioteki SNMP
ea774f60 117Group: Libraries
9274a72b 118Requires: %{name}-mibs = %{version}-%{release}
5ae1bff8 119Obsoletes: net-snmp-compat-libs
60e7e283 120Obsoletes: ucd-snmp-libs
ea774f60
AF
121
122%description libs
e93f5ac2 123NET SNMP libraries.
ea774f60 124
b1738c7c 125%description libs -l pl.UTF-8
ea774f60
AF
126Biblioteki SNMP.
127
ea774f60 128%package devel
531ca0ff 129Summary: The development environment for the net-snmp project
7d4e48ba
ER
130Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
131Summary(pl.UTF-8): Pliki dla programistów używających bibliotek net-snmp
132Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
133Summary(ru.UTF-8): Среда разработки для проекта UCD-SNMP
134Summary(uk.UTF-8): Середовище розробки для проекту UCD-SNMP
ea774f60 135Group: Development/Libraries
9274a72b 136Requires: %{name}-libs = %{version}-%{release}
e43a09d3 137Requires: elfutils-devel
b0389a15 138Requires: libwrap-devel
8d251b9e 139Requires: openssl-devel >= 0.9.7c
b6eea507 140Requires: rpm-devel
60e7e283 141Obsoletes: ucd-snmp-devel
ea774f60
AF
142
143%description devel
144The ucd-snmp-devel package contains the development libraries and
531ca0ff 145header files for use with the net-snmp project's network management
ea774f60
AF
146tools.
147
b1738c7c
JR
148%description devel -l es.UTF-8
149Estas son las bibliotecas y archivos de inclusión para desarrollo con
150el SNMP de la UCD. Con este paquete es posible la creación de
151programas para uso en la gestión de redes.
ea774f60 152
b1738c7c
JR
153%description devel -l pl.UTF-8
154Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
155aplikacji używających protokołu SNMP.
ea774f60 156
b1738c7c
JR
157%description devel -l pt_BR.UTF-8
158Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
159com o SNMP da UCD. Com este pacote é possível a criação de programas
ea774f60
AF
160para uso no gerenciamento de redes.
161
b1738c7c
JR
162%description devel -l ru.UTF-8
163Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
164использования с утилитами управления сетью проекта net-snmp.
ea774f60 165
b1738c7c
JR
166%description devel -l uk.UTF-8
167Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
168використання з утилітами керування мережею проекту net-snmp.
ea774f60
AF
169
170%package static
531ca0ff 171Summary: Static net-snmp libraries
7d4e48ba
ER
172Summary(pl.UTF-8): Statyczne biblioteki net-snmp
173Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ucd-snmp
174Summary(ru.UTF-8): Статические библиотеки для проекта net-snmp
175Summary(uk.UTF-8): Статичні бібліотеки для проекту net-snmp
ea774f60 176Group: Development/Libraries
9274a72b 177Requires: %{name}-devel = %{version}-%{release}
60e7e283 178Obsoletes: ucd-snmp-static
ea774f60
AF
179
180%description static
531ca0ff 181Static net-snmp libraries.
ea774f60 182
b1738c7c 183%description static -l pl.UTF-8
531ca0ff 184Statyczne biblioteki net-snmp.
ea774f60 185
b1738c7c
JR
186%description static -l pt_BR.UTF-8
187Bibliotecas estáticas para desenvolvimento com net-snmp.
531ca0ff 188
e93f5ac2
AF
189%package compat-devel
190Summary: The development environment for the UCD-SNMP project
7d4e48ba
ER
191Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
192Summary(pl.UTF-8): Pliki dla programistów używających bibliotek UCD-SNMP
193Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
194Summary(ru.UTF-8): Среда разработки для проекта UCD-SNMP
195Summary(uk.UTF-8): Середовище розробки для проекту UCD-SNMP
e93f5ac2 196Group: Development/Libraries
9274a72b
JB
197Requires: %{name}-libs = %{version}-%{release}
198Requires: openssl-devel >= 0.9.7d
e93f5ac2
AF
199Obsoletes: cmu-snmp-devel
200Obsoletes: ucd-snmp-devel
201
202%description compat-devel
203The ucd-snmp-devel package contains the development libraries and
204header files for use with the UCD-SNMP project's network management
205tools.
206
b1738c7c
JR
207%description compat-devel -l es.UTF-8
208Estas son las bibliotecas y archivos de inclusión para desarrollo con
209el SNMP de la UCD. Con este paquete es posible la creación de
210programas para uso en la gestión de redes.
e93f5ac2 211
b1738c7c
JR
212%description compat-devel -l pl.UTF-8
213Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
214aplikacji używających protokołu SNMP.
e93f5ac2 215
b1738c7c
JR
216%description compat-devel -l pt_BR.UTF-8
217Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
218com o SNMP da UCD. Com este pacote é possível a criação de programas
e93f5ac2
AF
219para uso no gerenciamento de redes.
220
b1738c7c
JR
221%description compat-devel -l ru.UTF-8
222Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
223использования с утилитами управления сетью проекта UCD-SNMP.
e93f5ac2 224
b1738c7c
JR
225%description compat-devel -l uk.UTF-8
226Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
227використання з утилітами керування мережею проекту UCD-SNMP.
e93f5ac2
AF
228
229%package compat-static
230Summary: Static UCD-SNMP libraries
7d4e48ba
ER
231Summary(pl.UTF-8): Statyczne biblioteki UCD-SNMP
232Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ucd-snmp
233Summary(ru.UTF-8): Статические библиотеки для проекта UCD-SNMP
234Summary(uk.UTF-8): Статичні бібліотеки для проекту UCD-SNMP
e93f5ac2 235Group: Development/Libraries
9274a72b 236Requires: %{name}-compat-devel = %{version}-%{release}
e93f5ac2
AF
237Obsoletes: ucd-snmp-static
238
239%description compat-static
240Static UCD-SNMP libraries.
241
b1738c7c 242%description compat-static -l pl.UTF-8
531ca0ff 243Statyczne biblioteki UCD-SNMP.
e93f5ac2 244
b1738c7c
JR
245%description compat-static -l pt_BR.UTF-8
246Bibliotecas estáticas para desenvolvimento com ucd-snmp.
531ca0ff
JB
247
248%package mibs
249Summary: MIB database
7d4e48ba 250Summary(pl.UTF-8): Baza danych MIB
531ca0ff 251Group: Applications/System
9274a72b 252Conflicts: ucd-snmp-libs
531ca0ff
JB
253
254%description mibs
255MIB database.
256
b1738c7c 257%description mibs -l pl.UTF-8
531ca0ff
JB
258Baza danych MIB.
259
260%package snmptrapd
261Summary: SNMP trap daemon
7d4e48ba 262Summary(pl.UTF-8): Demon obsługujący pułapki SNMP
531ca0ff 263Group: Applications/System
531ca0ff 264Requires(post,preun): /sbin/chkconfig
b0389a15
ER
265Requires: %{name} = %{version}-%{release}
266Requires: rc-scripts >= 0.2.0
531ca0ff
JB
267Obsoletes: cmu-snmp-utils
268Obsoletes: ucd-snmp-snmptrapd
269
270%description snmptrapd
271The ucd-snmp-snmptrapd package contains snmp trap daemon.
272
b1738c7c
JR
273%description snmptrapd -l pl.UTF-8
274Pakiet zawiera demon obsługujący pułapki SNMP.
531ca0ff
JB
275
276%package utils
277Summary: Network management utilities using SNMP, from the NET-SNMP project
7d4e48ba
ER
278Summary(es.UTF-8): Utilitarios del SNMP de la UCD
279Summary(pl.UTF-8): Narzędzia używające protokołu SNMP
280Summary(pt_BR.UTF-8): Utilitários do SNMP da UCD
281Summary(ru.UTF-8): Утилиты управления сетью по SNMP из проекта NET-SNMP
282Summary(uk.UTF-8): Утиліти керування мережею по SNMP з проекту NET-SNMP
531ca0ff 283Group: Applications/System
9274a72b 284Requires: %{name}-libs = %{version}-%{release}
531ca0ff
JB
285Obsoletes: cmu-snmp-utils
286Obsoletes: ucd-snmp-utils
287
288%description utils
289This package contains various utilities for managing your network
290using the SNMP protocol.
291
b1738c7c 292%description utils -l es.UTF-8
531ca0ff
JB
293Varios utilitarios para uso con el SNMP de la UCD. Contiene
294utilitarios como: snmpwalk, snmptest y otros.
295
b1738c7c
JR
296%description utils -l pl.UTF-8
297Różnego rodzaju narzędzia do zarządzania siecią przy użyciu protokołu
531ca0ff
JB
298SNMP.
299
b1738c7c
JR
300%description utils -l pt_BR.UTF-8
301Vários utilitários para uso com o SNMP da UCD. Contém utilitários
531ca0ff
JB
302como: snmpwalk, snmptest e outros.
303
b1738c7c
JR
304%description utils -l ru.UTF-8
305Пакет ucd-snmp-utils содержит разнообразные утилиты для использования
306в проекте управления сетью net-snmp.
531ca0ff 307
b1738c7c
JR
308%description utils -l uk.UTF-8
309Пакет ucd-snmp-utils містить різноманітні утиліти для використання в
310проекті керування мережею net-snmp.
531ca0ff
JB
311
312%package -n perl-SNMP
313Summary: SNMP and NetSNMP::* Perl modules
7d4e48ba 314Summary(pl.UTF-8): Moduły Perla SNMP oraz NetSNMP::*
531ca0ff 315Group: Development/Languages/Perl
9274a72b
JB
316Requires: %{name}-libs = %{version}-%{release}
317Conflicts: ucd-snmp-utils-perl
531ca0ff
JB
318
319%description -n perl-SNMP
320SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
321
b1738c7c
JR
322%description -n perl-SNMP -l pl.UTF-8
323Moduły Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
531ca0ff
JB
324
325%package utils-perl
326Summary: Perl utilities for network management using SNMP
7d4e48ba 327Summary(pl.UTF-8): Perlowe narzędzia używające protokołu SNMP
531ca0ff 328Group: Applications/System
9274a72b 329Requires: perl-SNMP = %{version}-%{release}
531ca0ff
JB
330Obsoletes: cmu-snmp-utils
331Obsoletes: ucd-snmp-utils-perl
332
333%description utils-perl
334This package contains various Perl utilities for managing your network
335using the SNMP protocol.
336
b1738c7c
JR
337%description utils-perl -l pl.UTF-8
338Perlowe narzędzia do zarządzania siecią przy użyciu protokołu SNMP.
e93f5ac2
AF
339
340%package snmpconf
531ca0ff 341Summary: snmpconf - creating and modifying SNMP configuration files
7d4e48ba 342Summary(pl.UTF-8): snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
e93f5ac2 343Group: Applications/System
9274a72b
JB
344Requires: %{name} = %{version}-%{release}
345Requires: perl-SNMP = %{version}-%{release}
e93f5ac2
AF
346
347%description snmpconf
531ca0ff
JB
348snmpconf is a simple Perl script that walks you through setting up a
349configuration file step by step. It should be fairly straight forward
350to use.
351
b1738c7c
JR
352%description snmpconf -l pl.UTF-8
353snmpconf to prosty skrypt Perla pozwalający na tworzenie pliku
354konfiguracyjnego krok po kroku. Powinien być w miarę prosty w użyciu.
e93f5ac2
AF
355
356%package tkmib
2ffae1a4 357Summary: MIB browser in Tk
7d4e48ba 358Summary(pl.UTF-8): Przeglądarka MIB-ów w Tk
e93f5ac2 359Group: Applications/System
9274a72b 360Requires: perl-SNMP = %{version}-%{release}
531ca0ff 361Requires: perl-Tk
e93f5ac2
AF
362
363%description tkmib
2ffae1a4 364MIB browser in Tk.
531ca0ff 365
b1738c7c
JR
366%description tkmib -l pl.UTF-8
367Przeglądarka MIB-ów w Tk.
e93f5ac2 368
a5fe3234
JB
369%package -n python-netsnmp
370Summary: Python netsnmp extension module
7d4e48ba 371Summary(pl.UTF-8): Moduł rozszerzenia netsnmp dla Pythona
a5fe3234
JB
372Group: Libraries/Python
373Requires: %{name}-libs = %{version}-%{release}
374
375%description -n python-netsnmp
376The 'netsnmp' Python extension module provides a full featured,
377tri-lingual SNMP (SNMPv3, SNMPv2c, SNMPv1) client API.
378
b1738c7c
JR
379%description -n python-netsnmp -l pl.UTF-8
380Moduł rozszerzenia netsnmp dla Pythona udostępnia pełne API klienckie
381SNMP dla trzech wersji tego protokołu (SNMPv3, SNMPv2c, SNMPv1).
a5fe3234 382
ea774f60 383%prep
797d6879 384%setup -q -a7
ea774f60
AF
385%patch0 -p1
386%patch1 -p1
387%patch2 -p1
388%patch3 -p1
531ca0ff 389%patch4 -p1
edf6eebd
JB
390%patch5 -p1
391%patch6 -p1
8a2022cc 392%patch7 -p1
9274a72b 393%patch8 -p1
f42492ff 394%patch9 -p1
a5fe3234 395%patch10 -p1
b0b507b1 396%patch11 -p1
ea774f60
AF
397
398%build
399%{__libtoolize}
400%{__aclocal}
ea774f60 401%{__autoconf}
564bc1fe 402%{__autoheader}
ea774f60 403%configure \
f42492ff 404 --with-cflags="%{rpmcflags} -I/usr/include/et" \
ea774f60 405 --with-ldflags="%{rpmldflags}" \
c74e79f9
JB
406 --with-defaults \
407 --with-default-snmp-version=3 \
408 --with-krb5 \
409 --with-libwrap \
410 --with-logfile="%{logfile}" \
ea774f60 411 --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
6e818aed
AM
412%ifarch %{ix86} %{x8664}
413 ucd-snmp/lmSensors ucd-snmp/diskio \
414%endif
a23e7817 415 agentx target misc/ipfwacc" \
d59f5301 416 --with-openssl \
c74e79f9 417 --with-perl-modules \
ea774f60 418 --with-persistent-directory="/var/lib/net-snmp" \
c74e79f9
JB
419 --with-python-modules \
420 --with-security-modules="ksm" \
ea774f60 421 --with-sys-contact="root@localhost" \
c74e79f9
JB
422 --with-sys-location="Unknown" \
423 --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
424 --disable-debugging \
425 --enable-as-needed \
426 --enable-ipv6 \
427 --enable-ucd-snmp-compatibility
2d4ec541
JB
428
429# --enable-reentrant is broken - snmpd deadlocks on send (tries to lock the same mutex twice):
430# #4 0xb760f54e in siglongjmp () from /lib/tls/libpthread.so.0
431# #5 0xb7e5e0cf in snmp_res_lock (groupID=0, resourceID=1) at mt_support.c:103
432# #6 0xb7e45698 in snmp_sess_pointer (session=0x80ff868) at snmp_api.c:6975
433# #7 0xb7e41aca in snmp_async_send (session=0x80ff868, pdu=0x8141848, callback=0, cb_data=0x0)
434# at snmp_api.c:4564
435# #8 0xb7e41a6d in snmp_send (session=0x80ff868, pdu=0x8141848) at snmp_api.c:4551
436# #9 0xb7ebf6fd in netsnmp_wrap_up_request (asp=0x812d828, status=0) at snmp_agent.c:1627
437# #10 0xb7ec12e3 in netsnmp_handle_request (asp=0x812d828, status=0) at snmp_agent.c:2996
438# #11 0xb7ebfa65 in handle_snmp_packet (op=1, session=0x80ff868, reqid=628270607, pdu=0x81419b8,
439# magic=0x0) at snmp_agent.c:1792
440# #12 0xb7e42b1c in _sess_process_packet (sessp=0x812c970, sp=0x80ff868, isp=0x812c698,
441# transport=0x8142028, opaque=0x812c1a0, olength=16,
b1738c7c 442# packetptr=0x8145cb8 "0f\002\001\0030\021\002\004c [Ç\002\003", length=104) at snmp_api.c:5208
2d4ec541
JB
443# #13 0xb7e434e6 in _sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5606
444# #14 0xb7e43535 in snmp_sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5625
445# #15 0xb7e42c44 in snmp_read (fdset=0xbfffe0e0) at snmp_api.c:5260
446# #16 0x0804bbe5 in receive () at snmpd.c:1149
447# #17 0x0804b53d in main (argc=5, argv=0xbffff344) at snmpd.c:993
448# [res mutex with groupID=0, resourceID=1 already locked in snmp_read() at snmp_api.c:5258]
449
f889f3fa
ER
450# build this subdir first. it's causing STRANGE compile failures # otherwise (for me at least). glen
451%{__make} -C agent/mibgroup
ea774f60
AF
452%{__make}
453
531ca0ff 454cd perl
531ca0ff 455
531ca0ff 456%{__perl} Makefile.PL \
2b15ac96 457 -NET-SNMP-IN-SOURCE=true \
531ca0ff 458 INSTALLDIRS=vendor \
2b15ac96 459 OPTIMIZE="%{rpmcflags}" \
531ca0ff 460 </dev/null
2b15ac96 461
531ca0ff
JB
462# avoid rpaths generated by MakeMaker
463perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
464
d59f5301
JK
465%{__make} \
466 LDFLAGS="%{rpmldflags}"
ea774f60
AF
467
468%install
469rm -rf $RPM_BUILD_ROOT
fa43c632 470install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,snmp},/var/log}
ea774f60 471
6789d157 472%{__make} install \
543e900e 473 DESTDIR=$RPM_BUILD_ROOT
ea774f60 474
6810e918
AF
475install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
476:> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
6e818aed 477:> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
e93f5ac2 478:> $RPM_BUILD_ROOT%{logfile}
ea774f60 479
60e7e283 480install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
6810e918 481install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
60e7e283 482install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
ea774f60 483
60e7e283 484install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
6810e918 485install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
60e7e283 486install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
ea774f60
AF
487
488#install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
489# $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
490
531ca0ff
JB
491cd perl
492%{__make} install \
493 DESTDIR=$RPM_BUILD_ROOT
9274a72b 494
531ca0ff
JB
495install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
496install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
b572d007 497cd ..
ea774f60 498
9274a72b
JB
499# IP-Filter (non-Linux)
500rm -f $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
501
ea774f60
AF
502%clean
503rm -rf $RPM_BUILD_ROOT
504
e93f5ac2 505%post
ea774f60
AF
506touch %{logfile}
507chmod 640 %{logfile}
fa43c632
ER
508/sbin/chkconfig --add snmpd
509%service snmpd restart "snmpd daemon"
ea774f60 510
60e7e283
AF
511%preun
512if [ "$1" = "0" ]; then
fa43c632 513 %service snmpd stop
60e7e283
AF
514 /sbin/chkconfig --del snmpd
515fi
ea774f60
AF
516
517%post libs -p /sbin/ldconfig
518%postun libs -p /sbin/ldconfig
519
5b201584
JB
520%triggerpostun -- ucd-snmp
521/sbin/chkconfig --add snmpd
522
e93f5ac2 523%post snmptrapd
ea774f60
AF
524touch %{logfile}
525chmod 640 %{logfile}
fa43c632
ER
526/sbin/chkconfig --add snmptrapd
527%service snmptrapd restart "snmp trap daemon"
ea774f60 528
60e7e283
AF
529%preun snmptrapd
530if [ "$1" = "0" ]; then
fa43c632 531 %service snmptrapd stop
60e7e283
AF
532 /sbin/chkconfig --del snmptrapd
533fi
ea774f60 534
605b587c 535%triggerpostun snmptrapd -- ucd-snmp-snmptrapd
5b201584
JB
536/sbin/chkconfig --add snmptrapd
537
ea774f60
AF
538%files
539%defattr(644,root,root,755)
540%doc README local
541%doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
542%doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
543
60e7e283 544%attr(754,root,root) /etc/rc.d/init.d/snmpd
9e8f34e2 545%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
ea774f60 546
9e8f34e2
JB
547%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
548%attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
ea774f60
AF
549
550%attr(755,root,root) %{_sbindir}/snmpd
551
ea774f60 552%{_mandir}/man5/snmpd.conf.5*
a23e7817
JB
553%{_mandir}/man5/snmpd.examples.5*
554%{_mandir}/man5/snmpd.internal.5*
ea774f60 555%{_mandir}/man5/variables.5*
531ca0ff 556%{_mandir}/man8/snmpd.8*
ea774f60 557
e93f5ac2 558%attr(640,root,root) %ghost %{logfile}
ea774f60
AF
559
560%files libs
561%defattr(644,root,root,755)
e043d0db 562%dir %{_sysconfdir}/snmp
60e7e283 563%attr(755,root,root) %{_libdir}/libnet*.so.*.*
ea774f60 564
531ca0ff
JB
565%files devel
566%defattr(644,root,root,755)
567%attr(755,root,root) %{_bindir}/mib2c
f2ba5e16 568%attr(755,root,root) %{_bindir}/mib2c-update
531ca0ff
JB
569%attr(755,root,root) %{_bindir}/net-snmp-config
570%attr(755,root,root) %{_libdir}/libnet*[a-z].so
571%{_libdir}/libnet*.la
572%{_includedir}/net-snmp
573%{_datadir}/snmp/mib2c*
574%{_mandir}/man1/mib2c.1*
a5fe3234
JB
575%{_mandir}/man1/mib2c-update.1*
576%{_mandir}/man1/net-snmp-config.1*
bdee8ff5 577%{_mandir}/man3/[!NS]*
f2ba5e16 578%{_mandir}/man5/mib2c.conf.5*
531ca0ff
JB
579
580%files static
581%defattr(644,root,root,755)
582%{_libdir}/libnet*.a
583
531ca0ff
JB
584%files compat-devel
585%defattr(644,root,root,755)
586%attr(755,root,root) %{_libdir}/libsnmp.so
587%{_libdir}/libsnmp.la
588%{_includedir}/ucd-snmp
589
590%files compat-static
591%defattr(644,root,root,755)
592%{_libdir}/libsnmp.a
593
60e7e283
AF
594%files mibs
595%defattr(644,root,root,755)
ee807caf 596%dir %{_datadir}/snmp
ea774f60
AF
597%{_datadir}/snmp/mibs
598
531ca0ff 599%files snmptrapd
60e7e283 600%defattr(644,root,root,755)
531ca0ff
JB
601%attr(755,root,root) %{_sbindir}/snmptrapd
602%attr(754,root,root) /etc/rc.d/init.d/snmptrapd
9e8f34e2
JB
603%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
604%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
f2ba5e16 605%attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
531ca0ff
JB
606%{_mandir}/man5/snmptrapd.conf.5*
607%{_mandir}/man8/snmptrapd.8*
60e7e283 608
ea774f60
AF
609%files utils
610%defattr(644,root,root,755)
611%attr(755,root,root) %{_bindir}/encode_keychange
612%attr(755,root,root) %{_bindir}/snmpbulkget
613%attr(755,root,root) %{_bindir}/snmpbulkwalk
614%attr(755,root,root) %{_bindir}/snmpdelta
6789d157 615%attr(755,root,root) %{_bindir}/snmpdf
ea774f60
AF
616%attr(755,root,root) %{_bindir}/snmpget
617%attr(755,root,root) %{_bindir}/snmpgetnext
6789d157 618%attr(755,root,root) %{_bindir}/snmpinform
ea774f60
AF
619%attr(755,root,root) %{_bindir}/snmpnetstat
620%attr(755,root,root) %{_bindir}/snmpset
621%attr(755,root,root) %{_bindir}/snmpstatus
622%attr(755,root,root) %{_bindir}/snmptable
623%attr(755,root,root) %{_bindir}/snmptest
624%attr(755,root,root) %{_bindir}/snmptranslate
625%attr(755,root,root) %{_bindir}/snmptrap
626%attr(755,root,root) %{_bindir}/snmpusm
ea774f60 627%attr(755,root,root) %{_bindir}/snmpvacm
6789d157 628%attr(755,root,root) %{_bindir}/snmpwalk
a5fe3234 629%{_mandir}/man1/encode_keychange.1*
ea774f60
AF
630%{_mandir}/man1/snmpbulkget.1*
631%{_mandir}/man1/snmpbulkwalk.1*
632%{_mandir}/man1/snmpcmd.1*
633%{_mandir}/man1/snmpdelta.1*
6789d157 634%{_mandir}/man1/snmpdf.1*
ea774f60
AF
635%{_mandir}/man1/snmpget.1*
636%{_mandir}/man1/snmpgetnext.1*
6789d157 637%{_mandir}/man1/snmpinform.1*
ea774f60
AF
638%{_mandir}/man1/snmpnetstat.1*
639%{_mandir}/man1/snmpset.1*
640%{_mandir}/man1/snmpstatus.1*
641%{_mandir}/man1/snmptable.1*
642%{_mandir}/man1/snmptest.1*
643%{_mandir}/man1/snmptranslate.1*
644%{_mandir}/man1/snmptrap.1*
645%{_mandir}/man1/snmpusm.1*
6789d157 646%{_mandir}/man1/snmpvacm.1*
ea774f60 647%{_mandir}/man1/snmpwalk.1*
ea774f60
AF
648%{_mandir}/man5/snmp.conf.5*
649%{_mandir}/man5/snmp_config.5*
650
7bb0c439 651%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
6e818aed 652
531ca0ff 653%files -n perl-SNMP
c4deead5 654%defattr(644,root,root,755)
531ca0ff
JB
655%doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
656%{perl_vendorarch}/SNMP.pm
657%{perl_vendorarch}/NetSNMP
658%dir %{perl_vendorarch}/auto/SNMP
659%{perl_vendorarch}/auto/SNMP/autosplit.ix
660%{perl_vendorarch}/auto/SNMP/SNMP.bs
661%attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
662%dir %{perl_vendorarch}/auto/NetSNMP
663%dir %{perl_vendorarch}/auto/NetSNMP/*
664%{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
665%{perl_vendorarch}/auto/NetSNMP/*/*.bs
666%attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
667%dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
668%{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
669%{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
670%attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
671%{_mandir}/man3/NetSNMP::*.3*
672%{_mandir}/man3/SNMP.3*
673%{_examplesdir}/perl-SNMP-%{version}
674
ea774f60
AF
675%files utils-perl
676%defattr(644,root,root,755)
6789d157 677%attr(755,root,root) %{_bindir}/fixproc
60e7e283 678%attr(755,root,root) %{_bindir}/snmpcheck
6810e918 679%attr(755,root,root) %{_bindir}/traptoemail
a5fe3234
JB
680%{_mandir}/man1/fixproc.1*
681%{_mandir}/man1/traptoemail.1*
531ca0ff
JB
682
683%files snmpconf
4ec38672 684%defattr(644,root,root,755)
531ca0ff 685%attr(755,root,root) %{_bindir}/snmpconf
60e7e283
AF
686%{_mandir}/man1/snmpconf.1*
687%{_datadir}/snmp/snmpconf-data
e93f5ac2 688
e93f5ac2
AF
689%files tkmib
690%defattr(644,root,root,755)
4ec38672 691%attr(755,root,root) %{_bindir}/tkmib
a5fe3234
JB
692%{_mandir}/man1/tkmib.1*
693
694%files -n python-netsnmp
695%defattr(644,root,root,755)
696%dir %{py_sitedir}/netsnmp
697%attr(755,root,root) %{py_sitedir}/netsnmp/*.so
698%{py_sitedir}/netsnmp/*.py[co]
699%{py_sitedir}/netsnmp_python-*.egg-info
This page took 0.178816 seconds and 4 git commands to generate.