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