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