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