]> git.pld-linux.org Git - packages/net-snmp.git/blobdiff - net-snmp.spec
- error about /proc/partitions also only once
[packages/net-snmp.git] / net-snmp.spec
index 12cac5a3676f9ef0e39a3084f8caca48b34ec82b..e6c300200fb74932fa5c1ee8be80e21b91b68a11 100644 (file)
+# TODO
+# - make noarch -n mibs-net-snmp package (need separate .spec then)
+# - FHS: #define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
+# - php-snmp (and likely other bindings) use only %{_libdir}/libnetsnmp.so.*, move other libs back to main (daemon) package?
+#
+# Conditional build:
+%bcond_without autodeps        # don't BR packages only for deps resolving
+%bcond_without rpm             # don't include RPM support
+%bcond_without kerberos5       # don't include kerberos support
+%bcond_without lm_sensors      # don't include sensors support
+%bcond_without perl            # don't include Perl modules and utils
+%bcond_without python          # don't include Python modules
+%bcond_without static_libs     # don't build static library
+
+%ifnarch %{ix86} %{x8664}
+%undefine      with_lm_sensors
+%endif
+
+%define                so_version      30
 %include       /usr/lib/rpm/macros.perl
 Summary:       A collection of SNMP protocol tools
-Summary(es):   Agente SNMP de la UCD
-Summary(pl):   Kolekcja narzêdzi do obs³ugi protoko³u SNMP
-Summary(pt_BR):        Agente SNMP da UCD
-Summary(ru):   îÁÂÏÒ ÕÔÉÌÉÔ ÄÌÑ ÐÒÏÔÏËÏÌÁ SNMP ÏÔ UC-Davis
-Summary(uk):   îÁ¦ҠÕÔÉ̦ԠÄÌÑ ÐÒÏÔÏËÏÌÕ SNMP ×¦Ä UC-Davis
+Summary(es.UTF-8):     Agente SNMP de la UCD
+Summary(pl.UTF-8):     Kolekcja narzędzi do obsługi protokołu SNMP
+Summary(pt_BR.UTF-8):  Agente SNMP da UCD
+Summary(ru.UTF-8):     Набор утилит для протокола SNMP от UC-Davis
+Summary(uk.UTF-8):     Набір утиліт для протоколу SNMP від UC-Davis
 Name:          net-snmp
-Version:       5.0.7
-Release:       0.1
+Version:       5.7.1
+Release:       5
 License:       BSD-like
 Group:         Networking/Daemons
-Source0:       http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
+Source0:       http://downloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
+# Source0-md5: c95d08fd5d93df0c11a2e1bdf0e01e0b
 Source1:       %{name}d.init
 Source2:       %{name}d.conf
 Source3:       %{name}d.sysconfig
 Source4:       %{name}trapd.init
 Source5:       %{name}trapd.conf
 Source6:       %{name}trapd.sysconfig
-Source7:       ftp://ucd-snmp.ucdavis.edu/contrib/ucd-ipchains.tar.gz
-Patch0:                %{name}-acinclude.patch
-Patch1:                %{name}-acfix.patch
-Patch2:                %{name}-rpm-implicit-libs.patch
-Patch3:                %{name}-DESTDIR.patch
-#Patch0:               %{name}-glibc21.patch
-#Patch3:               %{name}-link_libsnmp_with_libcrypto.patch
-#Patch4:               %{name}-acinclude.patch
-#Patch5:               %{name}-noinstalled.patch
-#Patch6:               %{name}-ia64.patch
-#Patch7:               %{name}-acfix.patch
-#Patch8:               %{name}-include-netinet_in_h.patch
-#Patch9:               %{name}-dlopen-fix.patch
-#Patch10:      %{name}-manpage.patch
-#Patch11:      %{name}-no_libelf.patch
-#Patch12:      %{name}-init_master-libwrap.patch
+Source7:       ucd-ipchains.tar.gz
+# Source7-md5: 29949f1008f1a04d6efefd5b3ea607da
+Source8:       snmpd.upstart
+Patch0:                %{name}-acfix.patch
+Patch1:                %{name}-rpm-implicit-libs.patch
+Patch2:                %{name}-config-noflags.patch
+Patch3:                %{name}-manpage.patch
+Patch4:                %{name}-link.patch
+Patch5:                %{name}-llinterfaces.patch
+Patch6:                %{name}-kernel_headers.patch
+Patch7:                %{name}-rpmpath.patch
+Patch8:                %{name}-snmpksm.patch
+Patch9:                %{name}-python.patch
+Patch10:       %{name}-lvalue.patch
+Patch11:       %{name}-defaultconfig.patch
+Patch12:       %{name}-use-rpm-hrmib.patch
+Patch13:       %{name}-TCP_STATS_CACHE_TIMEOUT.patch
+Patch14:       %{name}-libnl.patch
+Patch15:       %{name}-libpci-init.patch
+Patch16:       %{name}-recognize-reiserfs.patch
+Patch17:       net-snmp-logging.patch
 URL:           http://www.net-snmp.org/
-BuildRequires: autoconf >= 2.57-3
+BuildRequires: autoconf >= 2.63
 BuildRequires: automake
+BuildRequires: elfutils-devel
+%{?with_kerberos5:BuildRequires:       heimdal-devel}
+BuildRequires: libnl-devel >= 1:3.2
+BuildRequires: libssh2-devel
 BuildRequires: libtool >= 1.4
 BuildRequires: libwrap-devel
-BuildRequires: openssl-devel >= 0.9.6a
-BuildRequires: perl-devel >= 5.6.1
-BuildRequires: rpm-devel >= 4.0
+%{?with_lm_sensors:BuildRequires:      lm_sensors-devel >= 3.0.1}
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: pciutils-devel
+%{?with_autodeps:BuildRequires:        perl-Term-ReadKey}
+BuildRequires: perl-devel >= 1:5.8.0
+%if %{with python}
+BuildRequires: python-devel
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+BuildRequires: rpm-pythonprov
+%endif
+%if %{with rpm}
+BuildRequires: rpm
 BuildRequires: rpm-perlprov >= 3.0.3-16
-PreReq:                rc-scripts >= 0.2.0
-PreReq:                %{name}-libs = %{version}
+%endif
+BuildRequires: rpmbuild(macros) >= 1.527
 Requires(post,preun):  /sbin/chkconfig
+Requires:      %{name}-libs = %{version}-%{release}
 Requires:      /usr/bin/setsid
+Requires:      mibs-%{name} = %{version}-%{release}
+Requires:      pciutils >= 3.1.7-5
+Requires:      rc-scripts >= 0.4.3.0
 Provides:      snmpd
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     cmu-snmp
 Obsoletes:     snmpd
+Obsoletes:     ucd-snmp
+Conflicts:     rpm < 4.4.9-43.11
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# linking libraries is ugly in this package
+%define                no_install_post_check_so        1
 
-%define                _sysconfdir     /etc
 %define                logfile         /var/log/snmpd.log
 
 %description
 SNMP (Simple Network Management Protocol) is a protocol used for
-network management (hence the name). The UCD-SNMP project includes
+network management (hence the name). The net-snmp project includes
 various SNMP tools: an extensible agent, an SNMP library, tools for
 requesting or setting information from SNMP agents, tools for
 generating and handling SNMP traps, a version of the netstat command
 which uses SNMP, and a Tk/Perl mib browser. This package contains the
 snmpd daemon, documentation, etc.
 
-Install the ucd-snmp package if you need network management tools. You
-will probably also want to install the ucd-snmp-utils package, which
-contains UCD-SNMP utilities.
-
-%description -l es
-Este paquete se deriva de la implementación del Protocolo Simple de
-Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
-Útil para administrar redes y hacer contabilidad.
-
-%description -l pl
-SNMP (Simple Network Management Protocol) jest protoko³ej u¿ywanym do
-zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
-agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
-informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
-pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
-w Tk/Perl, deamona, dokumentacjê itp.
-
-%description -l pt_BR
-Este pacote é derivado da implementação do Protocolo Simples de
-Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
-Mellon. Útil para gerenciar redes e fazer contabilidade.
-
-%description -l ru
-SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
-ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ UCD-SNMP ×ËÌÀÞÁÅÔ
-ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
-ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
-ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
-ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
-ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
-
-%description -l uk
-SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
-×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ UCD-SNMP
-ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, Â¦Â̦ÏÔÅËÁ
-SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁ槠צĠNMP-ÁÇÅÎÔ¦×,
-ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁ槠ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒӦѠËÏÍÁÎÄÉ netstat,
-ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ
-ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
+%description -l es.UTF-8
+Este paquete se deriva de la implementación del Protocolo Simple de
+Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
+Útil para administrar redes y hacer contabilidad.
+
+%description -l pl.UTF-8
+SNMP (Simple Network Management Protocol) jest protokołem używanym do
+zarządzania sieciami. Pakiet zawiera narzędzia: rozbudowywalnego
+agenta, bibliotekę SNMP, narzędzia do odpytywania oraz ustawiania
+informacji poprzez agentów SNMP, narzędzia do generowania i obsługi
+pułapek SNMP, wersję komendy netstat używającą SNMP, przeglądarkę mib
+w Tk/Perl, demona, dokumentację itp.
+
+%description -l pt_BR.UTF-8
+Este pacote é derivado da implementação do Protocolo Simples de
+Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
+Mellon. Útil para gerenciar redes e fazer contabilidade.
+
+%description -l ru.UTF-8
+SNMP (Simple Network Management Protocol) - это протокол, используемый
+для управления сетью (отсюда и название). Проект net-snmp включает
+разнообразные SNMP-утилиты: расширяемый агент, библиотека SNMP,
+утилиты для запроса или установки информации от SNMP-агентов, утилиты
+для генерации и обработки SNMP-трапов, версия команды netstat,
+использующей SNMP, и mib-браузер на Tk/Perl. Этот пакет содержит
+демоны snmpd и snmptrapd, документацию и т.д.
+
+%description -l uk.UTF-8
+SNMP (Simple Network Management Protocol) - це протокол, який
+використовують для керування мережею (звідси і назва). Проект net-snmp
+містить різноманітні SNMP-утиліти: розширюваний агент, бібліотека
+SNMP, утиліти для запросу та встановлення інформації від NMP-агентів,
+утиліти для генерації та обробки SNMP-трапів, версія команди netstat,
+яка використовує SNMP, та mib-браузер на Tk/Perl. Цей пакет містить
+демони snmpd та snmptrapd, документацію і т.і.
 
 %package libs
-Summary:       UCD SNMP libraries
-Summary(pl):   Biblioteki SNMP
+Summary:       NET SNMP libraries
+Summary(pl.UTF-8):     Biblioteki SNMP
 Group:         Libraries
+Suggests:      mibs-%{name}
+Obsoletes:     net-snmp-compat-libs
+Obsoletes:     ucd-snmp-libs
 
 %description libs
-UCD SNMP libraries.
+NET SNMP libraries.
 
-%description libs -l pl
+%description libs -l pl.UTF-8
 Biblioteki SNMP.
 
-%package utils
-Summary:       Network management utilities using SNMP, from the UCD-SNMP project
-Summary(es):   Utilitarios del SNMP de la UCD
-Summary(pl):   Narzêdzia u¿ywaj±ce protoko³u SNMP
-Summary(pt_BR):        Utilitários do SNMP da UCD
-Summary(ru):   õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ UCD-SNMP
-Summary(uk):   õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ UCD-SNMP
-Group:         Applications/System
-Requires:      %{name}-libs = %{version}
-Obsoletes:     cmu-snmp-utils
+%package devel
+Summary:       The development environment for the net-snmp project
+Summary(es.UTF-8):     Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
+Summary(pl.UTF-8):     Pliki dla programistów używających bibliotek net-snmp
+Summary(pt_BR.UTF-8):  Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
+Summary(ru.UTF-8):     Среда разработки для проекта UCD-SNMP
+Summary(uk.UTF-8):     Середовище розробки для проекту UCD-SNMP
+Group:         Development/Libraries
+Requires:      %{name}-libs = %{version}-%{release}
+Requires:      elfutils-devel
+%{?with_kerberos5:Requires:    heimdal-devel}
+Requires:      libnl-devel >= 1:3.2
+Requires:      libwrap-devel
+%{?with_lm_sensors:Requires:   lm_sensors-devel >= 3.0.1}
+Requires:      openssl-devel >= 0.9.7c
+Obsoletes:     ucd-snmp-devel
 
-%description utils
-The ucd-snmp package contains various utilities for use with the
-UCD-SNMP network management project.
+%description devel
+The ucd-snmp-devel package contains the development libraries and
+header files for use with the net-snmp project's network management
+tools.
 
-Install this package if you need utilities for managing your network
-using the SNMP protocol. You'll also need to install the ucd-snmp
-package.
+%description devel -l es.UTF-8
+Estas son las bibliotecas y archivos de inclusión para desarrollo con
+el SNMP de la UCD. Con este paquete es posible la creación de
+programas para uso en la gestión de redes.
 
-%description utils -l es
-Varios utilitarios para uso con el SNMP de la UCD. Contiene
-utilitarios como: snmpwalk, snmptest y otros.
+%description devel -l pl.UTF-8
+Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
+aplikacji używających protokołu SNMP.
 
-%description utils -l pl
-Ró¿nego rodzaju narzêdzia do u¿ytku z programem %{name}.
+%description devel -l pt_BR.UTF-8
+Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
+com o SNMP da UCD. Com este pacote é possível a criação de programas
+para uso no gerenciamento de redes.
 
-%description utils -l pt_BR
-Vários utilitários para uso com o SNMP da UCD. Contém utilitários
-como: snmpwalk, snmptest e outros.
+%description devel -l ru.UTF-8
+Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
+использования с утилитами управления сетью проекта net-snmp.
 
-%description utils -l ru
-ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
-× ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ UCD-SNMP.
+%description devel -l uk.UTF-8
+Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
+використання з утилітами керування мережею проекту net-snmp.
 
-%description utils -l uk
-ðÁËÅÔ ucd-snmp-utils Í¦ÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
-ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ UCD-SNMP.
+%package static
+Summary:       Static net-snmp libraries
+Summary(pl.UTF-8):     Statyczne biblioteki net-snmp
+Summary(pt_BR.UTF-8):  Bibliotecas estáticas para desenvolvimento com ucd-snmp
+Summary(ru.UTF-8):     Статические библиотеки для проекта net-snmp
+Summary(uk.UTF-8):     Статичні бібліотеки для проекту net-snmp
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+Obsoletes:     ucd-snmp-static
 
-%package utils-perl
-Summary:       Network management utilities using SNMP, from the UCD-SNMP project
-Summary(pl):   Narzêdzia u¿ywaj±ce protoko³u SNMP
-Group:         Applications/System
-Requires:      %{name} = %{version}
-Requires:      perl-Term-ReadKey
-Requires:      perl-Tk
-Obsoletes:     cmu-snmp-utils
+%description static
+Static net-snmp libraries.
 
-%description utils-perl
-The ucd-snmp package contains various utilities for use with the
-UCD-SNMP network management project.
+%description static -l pl.UTF-8
+Statyczne biblioteki net-snmp.
+
+%description static -l pt_BR.UTF-8
+Bibliotecas estáticas para desenvolvimento com net-snmp.
+
+%package compat-devel
+Summary:       The development environment for the UCD-SNMP project
+Summary(es.UTF-8):     Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
+Summary(pl.UTF-8):     Pliki dla programistów używających bibliotek UCD-SNMP
+Summary(pt_BR.UTF-8):  Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
+Summary(ru.UTF-8):     Среда разработки для проекта UCD-SNMP
+Summary(uk.UTF-8):     Середовище розробки для проекту UCD-SNMP
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+Requires:      openssl-devel >= 0.9.7d
+Obsoletes:     cmu-snmp-devel
+Obsoletes:     ucd-snmp-devel
+
+%description compat-devel
+The ucd-snmp-devel package contains the development libraries and
+header files for use with the UCD-SNMP project's network management
+tools.
+
+%description compat-devel -l es.UTF-8
+Estas son las bibliotecas y archivos de inclusión para desarrollo con
+el SNMP de la UCD. Con este paquete es posible la creación de
+programas para uso en la gestión de redes.
+
+%description compat-devel -l pl.UTF-8
+Pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do rozwoju
+aplikacji używających protokołu SNMP.
+
+%description compat-devel -l pt_BR.UTF-8
+Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
+com o SNMP da UCD. Com este pacote é possível a criação de programas
+para uso no gerenciamento de redes.
+
+%description compat-devel -l ru.UTF-8
+Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
+использования с утилитами управления сетью проекта UCD-SNMP.
 
-Install this package if you need utilities for managing your network
-using the SNMP protocol. You'll also need to install the ucd-snmp
-package.
+%description compat-devel -l uk.UTF-8
+Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
+використання з утилітами керування мережею проекту UCD-SNMP.
 
-%description utils-perl -l pl
-Ró¿nego rodzaju narzêdzia do u¿ytku z programem %{name}.
+%package compat-static
+Summary:       Static UCD-SNMP libraries
+Summary(pl.UTF-8):     Statyczne biblioteki UCD-SNMP
+Summary(pt_BR.UTF-8):  Bibliotecas estáticas para desenvolvimento com ucd-snmp
+Summary(ru.UTF-8):     Статические библиотеки для проекта UCD-SNMP
+Summary(uk.UTF-8):     Статичні бібліотеки для проекту UCD-SNMP
+Group:         Development/Libraries
+Requires:      %{name}-compat-devel = %{version}-%{release}
+Obsoletes:     ucd-snmp-static
+
+%description compat-static
+Static UCD-SNMP libraries.
+
+%description compat-static -l pl.UTF-8
+Statyczne biblioteki UCD-SNMP.
+
+%description compat-static -l pt_BR.UTF-8
+Bibliotecas estáticas para desenvolvimento com ucd-snmp.
+
+%package -n mibs-net-snmp
+Summary:       Net-SNMP provided MIBs
+Summary(pl.UTF-8):     Baza danych MIB
+Group:         Applications/System
+Requires:      mibs-dirs
+Obsoletes:     net-snmp-mibs
+Conflicts:     ucd-snmp-libs
+
+%description -n mibs-net-snmp
+Net-SNMP provided MIBs (Management Information Base).
+
+%description -n mibs-net-snmp -l pl.UTF-8
+Baza danych MIB.
 
 %package snmptrapd
 Summary:       SNMP trap daemon
-Summary(pl):   Demon obs³uguj±cy pu³apki SNMP
+Summary(pl.UTF-8):     Demon obsługujący pułapki SNMP
 Group:         Applications/System
-PreReq:                %{name} = %{version}
 Requires(post,preun):  /sbin/chkconfig
+Requires:      %{name} = %{version}-%{release}
 Requires:      rc-scripts >= 0.2.0
 Obsoletes:     cmu-snmp-utils
+Obsoletes:     ucd-snmp-snmptrapd
 
 %description snmptrapd
 The ucd-snmp-snmptrapd package contains snmp trap daemon.
 
-%description snmptrapd -l pl
-Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
+%description snmptrapd -l pl.UTF-8
+Pakiet zawiera demon obsługujący pułapki SNMP.
 
-%package devel
-Summary:       The development environment for the UCD-SNMP project
-Summary(es):   Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
-Summary(pl):   Pliki dla developerów u¿ywaj±cych %{name}
-Summary(pt_BR):        Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
-Summary(ru):   óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
-Summary(uk):   óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
-Group:         Development/Libraries
-Requires:      %{name}-libs = %{version}
-Requires:      openssl-devel
-Obsoletes:     cmu-snmp-devel
+%package utils
+Summary:       Network management utilities using SNMP, from the NET-SNMP project
+Summary(es.UTF-8):     Utilitarios del SNMP de la UCD
+Summary(pl.UTF-8):     Narzędzia używające protokołu SNMP
+Summary(pt_BR.UTF-8):  Utilitários do SNMP da UCD
+Summary(ru.UTF-8):     Утилиты управления сетью по SNMP из проекта NET-SNMP
+Summary(uk.UTF-8):     Утиліти керування мережею по SNMP з проекту NET-SNMP
+Group:         Applications/System
+Requires:      %{name}-libs = %{version}-%{release}
+Suggests:      mibs-%{name} = %{version}-%{release}
+Obsoletes:     cmu-snmp-utils
+Obsoletes:     ucd-snmp-utils
 
-%description devel
-The ucd-snmp-devel package contains the development libraries and
-header files for use with the UCD-SNMP project's network management
-tools.
+%description utils
+This package contains various utilities for managing your network
+using the SNMP protocol.
 
-Install the ucd-snmp-devel package if you would like to develop
-applications for use with the UCD-SNMP project's network management
-tools. You'll also need to have the ucd-snmp and ucd-snmp-utils
-packages installed.
+%description utils -l es.UTF-8
+Varios utilitarios para uso con el SNMP de la UCD. Contiene
+utilitarios como: snmpwalk, snmptest y otros.
 
-%description devel -l es
-Estas son las bibliotecas y archivos de inclusión para desarrollo con
-el SNMP de la UCD. Con este paquete es posible la creación de
-programas para uso en la gestión de redes.
+%description utils -l pl.UTF-8
+Różnego rodzaju narzędzia do zarządzania siecią przy użyciu protokołu
+SNMP.
 
-%description devel -l pl
-Pakiet zawiera pliki nag³ówkowe i bilioteki potrzebne do rozwoju
-aplikacji u¿ywaj±cych protoko³u SNMP.
+%description utils -l pt_BR.UTF-8
+Vários utilitários para uso com o SNMP da UCD. Contém utilitários
+como: snmpwalk, snmptest e outros.
 
-%description devel -l pt_BR
-Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
-com o SNMP da UCD. Com este pacote é possível a criação de programas
-para uso no gerenciamento de redes.
+%description utils -l ru.UTF-8
+Пакет ucd-snmp-utils содержит разнообразные утилиты для использования
+в проекте управления сетью net-snmp.
 
-%description devel -l ru
-ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
-ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
+%description utils -l uk.UTF-8
+Пакет ucd-snmp-utils містить різноманітні утиліти для використання в
+проекті керування мережею net-snmp.
 
-%description devel -l uk
-ðÁËÅÔ ucd-snmp-devel Í¦ÓÔÉÔؠ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
-×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
+%package -n perl-SNMP
+Summary:       SNMP and NetSNMP::* Perl modules
+Summary(pl.UTF-8):     Moduły Perla SNMP oraz NetSNMP::*
+Group:         Development/Languages/Perl
+Requires:      %{name}-libs = %{version}-%{release}
+Conflicts:     ucd-snmp-utils-perl
 
-%package static
-Summary:       Static UCD-SNMP libraries
-Summary(es):   Static libraries for ucd-snmp development
-Summary(pl):   Statyczne biblioteki %{name}
-Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento com ucd-snmp
-Summary(ru):   óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
-Summary(uk):   óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
-Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+%description -n perl-SNMP
+SNMP and NetSNMP::* Perl modules - Perl interface to net-snmp.
 
-%description static
-Static UCD-SNMP libraries.
+%description -n perl-SNMP -l pl.UTF-8
+Moduły Perla SNMP oraz NetSNMP::* - perlowy interfejs do net-snmp.
+
+%package utils-perl
+Summary:       Perl utilities for network management using SNMP
+Summary(pl.UTF-8):     Perlowe narzędzia używające protokołu SNMP
+Group:         Applications/System
+Requires:      perl-SNMP = %{version}-%{release}
+Obsoletes:     cmu-snmp-utils
+Obsoletes:     ucd-snmp-utils-perl
+
+%description utils-perl
+This package contains various Perl utilities for managing your network
+using the SNMP protocol.
+
+%description utils-perl -l pl.UTF-8
+Perlowe narzędzia do zarządzania siecią przy użyciu protokołu SNMP.
 
-%description static -l es
-Static libraries for ucd-snmp development
+%package snmpconf
+Summary:       snmpconf - creating and modifying SNMP configuration files
+Summary(pl.UTF-8):     snmpconf - tworzenie i modyfikowanie plików konfiguracyjnych SNMP
+Group:         Applications/System
+Requires:      %{name} = %{version}-%{release}
+Requires:      perl-SNMP = %{version}-%{release}
+
+%description snmpconf
+snmpconf is a simple Perl script that walks you through setting up a
+configuration file step by step. It should be fairly straight forward
+to use.
+
+%description snmpconf -l pl.UTF-8
+snmpconf to prosty skrypt Perla pozwalający na tworzenie pliku
+konfiguracyjnego krok po kroku. Powinien być w miarę prosty w użyciu.
+
+%package tkmib
+Summary:       MIB browser in Tk
+Summary(pl.UTF-8):     Przeglądarka MIB-ów w Tk
+Group:         Applications/System
+Requires:      perl-SNMP = %{version}-%{release}
+Requires:      perl-Tk
+
+%description tkmib
+MIB browser in Tk.
+
+%description tkmib -l pl.UTF-8
+Przeglądarka MIB-ów w Tk.
 
-%description static -l pl
-Statyczne biblioteki %{name}.
+%package -n python-netsnmp
+Summary:       Python netsnmp extension module
+Summary(pl.UTF-8):     Moduł rozszerzenia netsnmp dla Pythona
+Group:         Libraries/Python
+Requires:      %{name}-libs = %{version}-%{release}
 
-%description static -l pt_BR
-Bibliotecas estáticas para desenvolvimento com ucd-snmp
+%description -n python-netsnmp
+The 'netsnmp' Python extension module provides a full featured,
+tri-lingual SNMP (SNMPv3, SNMPv2c, SNMPv1) client API.
+
+%description -n python-netsnmp -l pl.UTF-8
+Moduł rozszerzenia netsnmp dla Pythona udostępnia pełne API klienckie
+SNMP dla trzech wersji tego protokołu (SNMPv3, SNMPv2c, SNMPv1).
 
 %prep
 %setup -q -a7
-%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
+%patch15 -p1
+%patch16 -p1
+%patch17 -p1
 
 %build
 %{__libtoolize}
-%{__aclocal}
-%{__autoheader}
+%{__aclocal} -I m4
 %{__autoconf}
+%{__autoheader}
+cp -f /usr/share/automake/config.sub .
+
+MIBS="\
+host agentx smux \
+mibII/mta_sendmail \
+disman/event disman/schedule \
+ucd-snmp/diskio \
+target \
+misc/ipfwacc \
+"
+
+%if %{with lm_sensors}
+MIBS="$MIBS ucd-snmp/lmsensorsMib"
+%endif
+
+# ksm must be first in --with-security-modules
+# usm is always enabled
 %configure \
-       --with-logfile="%{logfile}" \
-       --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
+       --disable-debugging \
+       --enable-as-needed \
+       %{__disable static_libs static} \
+       --with-cflags="%{rpmcflags} %{rpmcppflags} -I/usr/include/et" \
        --with-ldflags="%{rpmldflags}" \
-       --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
+       --with-defaults \
+       --with-default-snmp-version=3 \
+       %{__with_without kerberos5 krb5} \
+       --with-openssl \
+       --with-libwrap \
+       --with-logfile=%{logfile} \
+       --with-zlib\
+       --with-bzip2 \
+       --with-nl \
+       %{__with_without perl perl-modules} \
+       %{__with_without python python-modules} \
+       --enable-local-smux \
+       --with-mibdirs='$HOME/.snmp/mibs:/usr/share/mibs:%{_datadir}/snmp/mibs' \
+       --with-mib-modules="$MIBS" \
+       --with-security-modules="%{?with_kerberos5:ksm }tsm" \
+       --with-sys-contact="root@localhost" \
        --with-sys-location="Unknown" \
-       --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
-               agentx target misc/ipfwacc tunnel" \
-       --with-libwrap=%{_prefix} \
-       --with-openssl=%{_prefix} \
-       --disable-debugging \
+       --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback Alias DTLSUDP TLSTCP SSH" \
        --with-persistent-directory="/var/lib/net-snmp" \
-       --enable-ipv6 \
-       --enable-reentrant \
-       --with-sys-contact="root@localhost" \
        --enable-ucd-snmp-compatibility \
-       --with-defaults \
-       --with-default-snmp-version=3 \
-       --enable-shared
-# ucd-snmp/diskio
-%{__make}
-
-# symlinks to allow build perl module w/o installed ucd-snmp
-#ln -sf snmplib ucd-snmp
-#ln -sf ../ucd-snmp-config.h ucd-snmp/ucd-snmp-config.h
-#cd perl/SNMP
-#echo "%{_datadir}/snmp/mibs" | perl Makefile.PL
-#%{__make} OPTIMIZE="%{rpmcflags}"
-
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc/{snmp,rc.d/init.d,sysconfig},/var/log}
-
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+       --enable-ipv6 \
+       %{!?debug:--disable-debugging} \
+       %{__with_without rpm}
 
-#install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
-#:> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
-#:> $RPM_BUILD_ROOT%{logfile}
+%{__make} -j1
 
-#install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
-#install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
-#install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
+cd perl
+%{__perl} Makefile.PL \
+       -NET-SNMP-IN-SOURCE=true \
+       INSTALLDIRS=vendor \
+       OPTIMIZE="%{rpmcflags} %{rpmcppflags}" \
+       </dev/null
 
-#install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
-#install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
-#install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
+# avoid rpaths generated by MakeMaker
+perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
 
-#install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
-#      $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
+bd=$(cd ..; pwd)
+%{__make} \
+       LDFLAGS="%{rpmldflags} -L$bd/snmplib/.libs/ -L$bd/agent/.libs/"
 
-#cd perl/SNMP
-#%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,snmp},/var/log,/var/lib/net-snmp,%{_libdir}/snmp/dlmod}
+
+%{__make} -j1 install \
+       mibdir=%{_datadir}/mibs \
+       DESTDIR=$RPM_BUILD_ROOT
+
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
+:> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
+:> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf
+:> $RPM_BUILD_ROOT%{logfile}
+
+install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
+
+install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
+cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
+cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
+
+install -d $RPM_BUILD_ROOT/etc/init
+cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/init/snmpd.conf
+
+cd perl
+%{__make} -j1 install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
+install -p SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version}
+cd ..
+
+# IP-Filter (non-Linux)
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
+
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Bundle/Makefile.subs.pl
+rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Bundle/NetSNMP/.packlist
+
+%if %{with static_libs}
+# hack: convert DynaLoader.a inside .a file to .o, as strip(1) would otherwise say invalid argument
+for a in $RPM_BUILD_ROOT%{_libdir}/libnet*.a; do
+       rm -f *.o *.a
+       ar x $a DynaLoader.a
+       if [ -f DynaLoader.a ]; then
+               ar x DynaLoader.a
+               ar cr $a DynaLoader.o
+               ar d $a DynaLoader.a
+               # remove second file too
+               ar d $a DynaLoader.a
+       fi
+done
+%else
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsnmp.a
+%endif
+
+%if %{with python}
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/tests
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/*.py
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-#%post
-#/sbin/chkconfig --add snmpd
-#if [ -f /var/lock/subsys/snmpd ]; then
-#      /etc/rc.d/init.d/snmpd restart >&2
-#else
-#      echo "Run \"/etc/rc.d/init.d/snmpd start\" to start snmpd daemon." >&2
-#fi
+%post
 touch %{logfile}
 chmod 640 %{logfile}
+/sbin/chkconfig --add snmpd
+%service snmpd restart "snmpd daemon"
 
-#%preun
-#if [ "$1" = "0" ]; then
-#      if [ -f /var/lock/subsys/snmpd ]; then
-#              /etc/rc.d/init.d/snmpd stop >&2
-#      fi
-#      /sbin/chkconfig --del snmpd
-#fi
+%preun
+if [ "$1" = "0" ]; then
+       %service snmpd stop
+       /sbin/chkconfig --del snmpd
+fi
 
 %post  libs -p /sbin/ldconfig
 %postun        libs -p /sbin/ldconfig
 
-#%post snmptrapd
-#/sbin/chkconfig --add snmptrapd
-#if [ -f /var/lock/subsys/snmptrapd ]; then
-#      /etc/rc.d/init.d/snmptrapd restart >&2
-#else
-#      echo "Run \"/etc/rc.d/init.d/snmptrapd start\" to start snmp trap daemon." >&2
-#fi
+%triggerpostun -- ucd-snmp
+/sbin/chkconfig --add snmpd
+
+%post snmptrapd
 touch %{logfile}
 chmod 640 %{logfile}
+/sbin/chkconfig --add snmptrapd
+%service snmptrapd restart "snmp trap daemon"
+
+%preun snmptrapd
+if [ "$1" = "0" ]; then
+       %service snmptrapd stop
+       /sbin/chkconfig --del snmptrapd
+fi
 
-#%preun snmptrapd
-#if [ "$1" = "0" ]; then
-#      if [ -f /var/lock/subsys/snmptrapd ]; then
-#              /etc/rc.d/init.d/snmptrapd stop >&2
-#      fi
-#      /sbin/chkconfig --del snmptrapd
-#fi
+%triggerpostun snmptrapd -- ucd-snmp-snmptrapd
+/sbin/chkconfig --add snmptrapd
 
 %files
 %defattr(644,root,root,755)
-%doc README local
-%doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
-%doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
+%doc AGENT.txt CHANGES COPYING ChangeLog EXAMPLE.conf{,.def} FAQ NEWS README{,.agent-mibs,.agentx,.snmpv3,.sql,.thread} TODO local
 
-#%attr(754,root,root) /etc/rc.d/init.d/snmpd
-#%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmpd
+%attr(754,root,root) /etc/rc.d/init.d/snmpd
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmpd
+%config(noreplace) %verify(not md5 mtime size) /etc/init/snmpd.conf
 
-%dir %{_sysconfdir}/snmp
-#%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.conf
-#%attr(640,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.local.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.conf
+%attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf
 
 %attr(755,root,root) %{_sbindir}/snmpd
-
-#%{_datadir}/snmp/snmpconf/snmpd.conf
-
-%{_mandir}/man1/snmpd.1*
+%attr(755,root,root) %{_bindir}/net-snmp-create-v3-user
+%attr(755,root,root) %{_bindir}/sshtosnmp
+%dir %{_libdir}/snmp
+%dir %{_libdir}/snmp/dlmod
+%attr(755,root,root) %{_datadir}/snmp/snmp_perl.pl
+%{_mandir}/man1/net-snmp-create-v3-user.1*
 %{_mandir}/man5/snmpd.conf.5*
+%{_mandir}/man5/snmpd.examples.5*
+%{_mandir}/man5/snmpd.internal.5*
 %{_mandir}/man5/variables.5*
+%{_mandir}/man8/snmpd.8*
 
-#%attr(640,root,root) %ghost %{logfile}
+%dir %attr(700,root,root) /var/lib/net-snmp
+
+%attr(640,root,root) %ghost %{logfile}
 
 %files libs
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
-
+%attr(755,root,root) %{_libdir}/libnetsnmp.so.*.*.*
+%attr(755,root,root) %{_libdir}/libnetsnmpagent.so.*.*.*
+%attr(755,root,root) %{_libdir}/libnetsnmphelpers.so.*.*.*
+%attr(755,root,root) %{_libdir}/libnetsnmpmibs.so.*.*.*
+%attr(755,root,root) %{_libdir}/libnetsnmptrapd.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libnetsnmp.so.%{so_version}
+%attr(755,root,root) %ghost %{_libdir}/libnetsnmpagent.so.%{so_version}
+%attr(755,root,root) %ghost %{_libdir}/libnetsnmphelpers.so.%{so_version}
+%attr(755,root,root) %ghost %{_libdir}/libnetsnmpmibs.so.%{so_version}
+%attr(755,root,root) %ghost %{_libdir}/libnetsnmptrapd.so.%{so_version}
+%dir %{_sysconfdir}/snmp
 %dir %{_datadir}/snmp
-#%dir %{_datadir}/snmp/snmpconf
 
-%{_datadir}/snmp/mibs
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/mib2c
+%attr(755,root,root) %{_bindir}/mib2c-update
+%attr(755,root,root) %{_bindir}/net-snmp-config
+%attr(755,root,root) %{_libdir}/libnetsnmp.so
+%attr(755,root,root) %{_libdir}/libnetsnmpagent.so
+%attr(755,root,root) %{_libdir}/libnetsnmphelpers.so
+%attr(755,root,root) %{_libdir}/libnetsnmpmibs.so
+%attr(755,root,root) %{_libdir}/libnetsnmptrapd.so
+%{_libdir}/libnetsnmp.la
+%{_libdir}/libnetsnmpagent.la
+%{_libdir}/libnetsnmphelpers.la
+%{_libdir}/libnetsnmpmibs.la
+%{_libdir}/libnetsnmptrapd.la
+%{_includedir}/net-snmp
+%{_datadir}/snmp/mib2c*
+%{_mandir}/man1/mib2c.1*
+%{_mandir}/man1/mib2c-update.1*
+%{_mandir}/man1/net-snmp-config.1*
+%{_mandir}/man3/[!NS]*
+%{_mandir}/man5/mib2c.conf.5*
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libnetsnmp.a
+%{_libdir}/libnetsnmpagent.a
+%{_libdir}/libnetsnmphelpers.a
+%{_libdir}/libnetsnmpmibs.a
+%{_libdir}/libnetsnmptrapd.a
+%endif
+
+%files compat-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsnmp.so
+%{_libdir}/libsnmp.la
+%{_includedir}/ucd-snmp
+
+%if %{with static_libs}
+%files compat-static
+%defattr(644,root,root,755)
+%{_libdir}/libsnmp.a
+%endif
+
+%files -n mibs-net-snmp
+%defattr(644,root,root,755)
+%{_datadir}/mibs/*.txt
+
+%files snmptrapd
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/snmptrapd
+%attr(754,root,root) /etc/rc.d/init.d/snmptrapd
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/snmptrapd
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmptrapd.conf
+%if %{with perl}
+%attr(755,root,root) %{_datadir}/snmp/snmp_perl_trapd.pl
+%endif
+%{_mandir}/man5/snmptrapd.conf.5*
+%{_mandir}/man8/snmptrapd.8*
 
 %files utils
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/agentxtrap
 %attr(755,root,root) %{_bindir}/encode_keychange
 %attr(755,root,root) %{_bindir}/snmpbulkget
 %attr(755,root,root) %{_bindir}/snmpbulkwalk
 %attr(755,root,root) %{_bindir}/snmpdelta
+%attr(755,root,root) %{_bindir}/snmpdf
 %attr(755,root,root) %{_bindir}/snmpget
 %attr(755,root,root) %{_bindir}/snmpgetnext
+%attr(755,root,root) %{_bindir}/snmpinform
 %attr(755,root,root) %{_bindir}/snmpnetstat
 %attr(755,root,root) %{_bindir}/snmpset
 %attr(755,root,root) %{_bindir}/snmpstatus
 %attr(755,root,root) %{_bindir}/snmptable
 %attr(755,root,root) %{_bindir}/snmptest
+%attr(755,root,root) %{_bindir}/snmptls
 %attr(755,root,root) %{_bindir}/snmptranslate
 %attr(755,root,root) %{_bindir}/snmptrap
 %attr(755,root,root) %{_bindir}/snmpusm
-%attr(755,root,root) %{_bindir}/snmpwalk
-%attr(755,root,root) %{_bindir}/snmpdf
-%attr(755,root,root) %{_bindir}/snmpinform
 %attr(755,root,root) %{_bindir}/snmpvacm
-
-#%{_datadir}/snmp/snmpconf/snmp.conf
-
+%attr(755,root,root) %{_bindir}/snmpwalk
+%{_mandir}/man1/agentxtrap.1*
+%{_mandir}/man1/encode_keychange.1*
 %{_mandir}/man1/snmpbulkget.1*
 %{_mandir}/man1/snmpbulkwalk.1*
 %{_mandir}/man1/snmpcmd.1*
 %{_mandir}/man1/snmpdelta.1*
+%{_mandir}/man1/snmpdf.1*
 %{_mandir}/man1/snmpget.1*
 %{_mandir}/man1/snmpgetnext.1*
+%{_mandir}/man1/snmpinform.1*
 %{_mandir}/man1/snmpnetstat.1*
 %{_mandir}/man1/snmpset.1*
 %{_mandir}/man1/snmpstatus.1*
@@ -430,43 +749,66 @@ chmod 640 %{logfile}
 %{_mandir}/man1/snmptranslate.1*
 %{_mandir}/man1/snmptrap.1*
 %{_mandir}/man1/snmpusm.1*
+%{_mandir}/man1/snmpvacm.1*
 %{_mandir}/man1/snmpwalk.1*
-%{_mandir}/man1/snmpdf.1*
-%{_mandir}/man1/snmpinform.1*
 %{_mandir}/man5/snmp.conf.5*
 %{_mandir}/man5/snmp_config.5*
 
-%files utils-perl
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmp.conf
+
+%if %{with perl}
+%files -n perl-SNMP
 %defattr(644,root,root,755)
-#%doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
-#%attr(755,root,root) %{_bindir}/mib2c
-#%attr(755,root,root) %{_bindir}/snmpcheck
-#%attr(755,root,root) %{_bindir}/snmpconf
-#%attr(755,root,root) %{_bindir}/tkmib
-#%{_datadir}/snmp/mib2c*
-#%{_mandir}/man1/snmpconf.1*
-#%{perl_sitearch}/SNMP.pm
-#%dir %{perl_sitearch}/auto/SNMP
-#%{perl_sitearch}/auto/SNMP/autosplit.ix
-#%{perl_sitearch}/auto/SNMP/SNMP.bs
-#%attr(755,root,root) %{perl_sitearch}/auto/SNMP/SNMP.so
+%doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
+%{perl_vendorarch}/SNMP.pm
+%{perl_vendorarch}/NetSNMP
+%dir %{perl_vendorarch}/auto/SNMP
+%{perl_vendorarch}/auto/SNMP/autosplit.ix
+%{perl_vendorarch}/auto/SNMP/SNMP.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/SNMP/SNMP.so
+%dir %{perl_vendorarch}/auto/NetSNMP
+%dir %{perl_vendorarch}/auto/NetSNMP/*
+%{perl_vendorarch}/auto/NetSNMP/*/autosplit.ix
+%{perl_vendorarch}/auto/NetSNMP/*/*.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/*/*.so
+%dir %{perl_vendorarch}/auto/NetSNMP/agent/default_store
+%{perl_vendorarch}/auto/NetSNMP/agent/default_store/autosplit.ix
+%{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/NetSNMP/agent/default_store/default_store.so
+%{_mandir}/man3/NetSNMP::*.3*
+%{_mandir}/man3/SNMP.3*
+%{_examplesdir}/perl-SNMP-%{version}
 
-%files snmptrapd
+%files utils-perl
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/snmptrapd
-#%attr(754,root,root) /etc/rc.d/init.d/snmptrapd
-#%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmptrapd
-#%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmptrapd.conf
-%{_mandir}/man5/snmptrapd.conf.5*
-%{_mandir}/man8/snmptrapd.8*
+%attr(755,root,root) %{_bindir}/fixproc
+%attr(755,root,root) %{_bindir}/net-snmp-cert
+%attr(755,root,root) %{_bindir}/snmp-bridge-mib
+%attr(755,root,root) %{_bindir}/snmpcheck
+%attr(755,root,root) %{_bindir}/traptoemail
+%{_mandir}/man1/fixproc.1*
+%{_mandir}/man1/snmp-bridge-mib.1*
+%{_mandir}/man1/traptoemail.1*
+%endif
+
+%files snmpconf
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/snmpconf
+%{_mandir}/man1/snmpconf.1*
+%{_datadir}/snmp/snmpconf-data
 
-%files devel
+%if %{with perl}
+%files tkmib
 %defattr(644,root,root,755)
-%{_libdir}/lib*.la
-%attr(755,root,root) %{_libdir}/lib*[a-z].so
-%{_includedir}/ucd-snmp
-%{_mandir}/man3/*
+%attr(755,root,root) %{_bindir}/tkmib
+%{_mandir}/man1/tkmib.1*
+%endif
 
-%files static
+%if %{with python}
+%files -n python-netsnmp
 %defattr(644,root,root,755)
-%attr(0644,root,root) %{_libdir}/lib*.a
+%dir %{py_sitedir}/netsnmp
+%attr(755,root,root) %{py_sitedir}/netsnmp/*.so
+%{py_sitedir}/netsnmp/*.py[co]
+%{py_sitedir}/netsnmp_python-*.egg-info
+%endif
This page took 0.058942 seconds and 4 git commands to generate.