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