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