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