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