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