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