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