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