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