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