2007-01-16 00:26:37 +01:00
|
|
|
#
|
2011-04-14 14:33:06 +02:00
|
|
|
# spec file for package net-snmp
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
2018-02-01 15:18:02 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
2008-08-23 01:22:58 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define netsnmp_logfile %{_localstatedir}/log/net-snmpd.log
|
|
|
|
%define netsnmp_agentx_socket_dir_fhs %{_rundir}/agentx
|
|
|
|
%define netsnmp_agentx_socket_dir_rfc %{_localstatedir}/agentx
|
|
|
|
# Compat macro for new _fillupdir macro introduced in Nov 2017
|
2017-11-25 08:41:23 +01:00
|
|
|
%if ! %{defined _fillupdir}
|
2018-02-01 15:18:02 +01:00
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
2017-11-25 08:41:23 +01:00
|
|
|
%endif
|
2007-08-06 18:48:47 +02:00
|
|
|
%ifnarch s390 s390x
|
2010-06-21 18:02:26 +02:00
|
|
|
%define netsnmp_with_sensors 1
|
2007-08-06 18:48:47 +02:00
|
|
|
%endif
|
2018-02-01 15:18:02 +01:00
|
|
|
%define libname libsnmp30
|
|
|
|
%bcond_without python2
|
2010-06-21 18:02:26 +02:00
|
|
|
Name: net-snmp
|
2018-10-15 17:40:54 +02:00
|
|
|
Version: 5.8
|
2012-03-26 11:03:36 +02:00
|
|
|
Release: 0
|
2018-02-01 15:18:02 +01:00
|
|
|
Summary: SNMP Daemon
|
|
|
|
License: BSD-3-Clause AND MIT
|
|
|
|
Group: Productivity/Networking/Other
|
2007-11-02 16:01:42 +01:00
|
|
|
Url: http://sourceforge.net/projects/net-snmp
|
2018-02-01 15:18:02 +01:00
|
|
|
Source: http://sourceforge.net/projects/net-snmp/files/net-snmp/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: snmpd.service
|
2007-01-16 00:26:37 +01:00
|
|
|
Source2: snmpd.conf
|
2011-09-14 15:00:35 +02:00
|
|
|
Source3: README.SUSE
|
2018-02-01 15:18:02 +01:00
|
|
|
Source4: snmptrapd.service
|
2007-01-16 00:26:37 +01:00
|
|
|
Source5: net-snmp.logrotate
|
|
|
|
Source6: test_installed
|
2018-02-01 15:18:02 +01:00
|
|
|
Source10: snmpd.sysconfig
|
|
|
|
Source11: snmptrapd.sysconfig
|
|
|
|
Source20: net-snmp-tmpfs.conf
|
|
|
|
Source98: net-snmp-rpmlintrc
|
|
|
|
Source99: baselibs.conf
|
2018-10-15 17:40:54 +02:00
|
|
|
Patch1: net-snmp-5.8-socket-path.patch
|
|
|
|
Patch2: net-snmp-5.8-testing-empty-arptable.patch
|
|
|
|
Patch3: net-snmp-5.8-pie.patch
|
|
|
|
Patch4: net-snmp-5.8-net-snmp-config-headercheck.patch
|
|
|
|
Patch5: net-snmp-5.8-perl-tk-warning.patch
|
|
|
|
Patch6: net-snmp-5.8-velocity-mib.patch
|
|
|
|
Patch7: net-snmp-5.8-netgroups.patch
|
|
|
|
Patch8: net-snmp-5.8-snmpstatus-suppress-output.patch
|
|
|
|
Patch9: net-snmp-5.8-fix-Makefile.PL.patch
|
|
|
|
Patch10: net-snmp-5.8-modern-rpm-api.patch
|
|
|
|
Patch11: net-snmp-5.8-fix-python3.patch
|
2018-02-01 15:18:02 +01:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: procps
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: rpm-devel
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: tcpd-devel
|
|
|
|
Requires: logrotate
|
|
|
|
Requires: perl-SNMP = %{version}
|
|
|
|
Requires: perl-TermReadKey
|
2018-04-20 09:40:51 +02:00
|
|
|
Requires(post): %fillup_prereq
|
|
|
|
%{?systemd_requires}
|
2018-02-01 15:18:02 +01:00
|
|
|
%if 0%{?netsnmp_with_sensors}
|
|
|
|
BuildRequires: libsensors4-devel
|
|
|
|
%endif
|
2007-01-16 00:26:37 +01:00
|
|
|
|
|
|
|
%description
|
2010-02-05 14:08:45 +01:00
|
|
|
Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c
|
|
|
|
and SNMP v3 using both IPv4 and IPv6. The suite includes:
|
2007-01-16 00:26:37 +01:00
|
|
|
|
2010-02-05 14:08:45 +01:00
|
|
|
- An extensible agent for responding to SNMP queries including built-in
|
|
|
|
support for a wide range of MIB information modules
|
|
|
|
- Command-line applications to retrieve and manipulate information from
|
|
|
|
SNMP-capable devices
|
|
|
|
- A daemon application for receiving SNMP notifications
|
|
|
|
- A library for developing new SNMP applications, with C and Perl APIs
|
|
|
|
- A graphical MIB browser.
|
|
|
|
|
|
|
|
This package was originally based on the CMU 2.1.2.1 snmp code. It was
|
|
|
|
renamed from cmu-snmp to ucd-snmp in 1995 and later renamed from ucd-snmp
|
|
|
|
to net-snmp in November 2000.
|
2007-01-16 00:26:37 +01:00
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%package -n %{libname}
|
2008-09-08 16:23:32 +02:00
|
|
|
Summary: Shared Libraries from net-snmp
|
2018-02-01 15:18:02 +01:00
|
|
|
License: BSD-3-Clause AND MIT
|
2018-02-02 11:15:55 +01:00
|
|
|
Group: System/Libraries
|
2018-02-01 15:18:02 +01:00
|
|
|
Requires: perl-base = %{perl_version}
|
|
|
|
Requires: snmp-mibs = %{version}
|
2007-01-16 00:26:37 +01:00
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%description -n %{libname}
|
2010-02-05 14:08:45 +01:00
|
|
|
Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c
|
|
|
|
and SNMP v3 using both IPv4 and IPv6. The suite includes:
|
2007-01-16 00:26:37 +01:00
|
|
|
|
2010-02-05 14:08:45 +01:00
|
|
|
* An extensible agent for responding to SNMP queries including built-in
|
|
|
|
support for a wide range of MIB information modules
|
|
|
|
* Command-line applications to retrieve and manipulate information from
|
|
|
|
SNMP-capable devices
|
|
|
|
* A daemon application for receiving SNMP notifications
|
|
|
|
* A library for developing new SNMP applications, with C and Perl APIs
|
|
|
|
* A graphical MIB browser.
|
2008-09-08 16:23:32 +02:00
|
|
|
|
2010-02-05 14:08:45 +01:00
|
|
|
This package holds the shared libraries from the net-snmp package.
|
2007-01-16 00:26:37 +01:00
|
|
|
|
2008-09-08 16:23:32 +02:00
|
|
|
%package devel
|
2018-02-01 15:18:02 +01:00
|
|
|
Summary: Development files from net-snmp
|
|
|
|
License: BSD-3-Clause AND MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{libname} = %{version}
|
2008-09-08 16:23:32 +02:00
|
|
|
# for mib2c
|
2012-03-26 11:03:36 +02:00
|
|
|
Requires: perl
|
2008-09-08 16:23:32 +02:00
|
|
|
Requires: perl-SNMP = %{version}
|
2012-03-26 11:03:36 +02:00
|
|
|
Requires: rpm-devel
|
|
|
|
Requires: tcpd-devel
|
|
|
|
Requires: zlib-devel
|
2015-07-24 09:57:55 +02:00
|
|
|
Requires: pkgconfig(libssl)
|
2010-06-21 18:02:26 +02:00
|
|
|
%if 0%{?netsnmp_with_sensors}
|
2010-02-05 14:08:45 +01:00
|
|
|
Requires: libsensors4-devel
|
2008-09-08 16:23:32 +02:00
|
|
|
%endif
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2008-09-08 16:23:32 +02:00
|
|
|
%description devel
|
2010-02-05 14:08:45 +01:00
|
|
|
Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c
|
|
|
|
and SNMP v3 using both IPv4 and IPv6. The suite includes:
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2010-02-05 14:08:45 +01:00
|
|
|
* An extensible agent for responding to SNMP queries including built-in
|
|
|
|
support for a wide range of MIB information modules
|
|
|
|
* Command-line applications to retrieve and manipulate information from
|
|
|
|
SNMP-capable devices
|
|
|
|
* A daemon application for receiving SNMP notifications
|
|
|
|
* A library for developing new SNMP applications, with C and Perl APIs
|
|
|
|
* A graphical MIB browser.
|
|
|
|
|
|
|
|
This package holds the development headers, libraries and API documentation
|
|
|
|
from the net-snmp package.
|
2007-08-06 18:48:47 +02:00
|
|
|
|
|
|
|
%package -n snmp-mibs
|
|
|
|
Summary: MIB files from net-snmp
|
2018-02-01 15:18:02 +01:00
|
|
|
License: BSD-3-Clause AND MIT
|
2012-03-26 11:03:36 +02:00
|
|
|
Group: Productivity/Networking/Other
|
2007-08-06 18:48:47 +02:00
|
|
|
|
|
|
|
%description -n snmp-mibs
|
2010-02-05 14:08:45 +01:00
|
|
|
Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c
|
|
|
|
and SNMP v3 using both IPv4 and IPv6. The suite includes:
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2010-02-05 14:08:45 +01:00
|
|
|
- An extensible agent for responding to SNMP queries including built-in
|
|
|
|
support for a wide range of MIB information modules
|
|
|
|
- Command-line applications to retrieve and manipulate information from
|
|
|
|
SNMP-capable devices
|
|
|
|
- A daemon application for receiving SNMP notifications
|
|
|
|
- A library for developing new SNMP applications, with C and Perl APIs
|
|
|
|
- A graphical MIB browser.
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2010-02-05 14:08:45 +01:00
|
|
|
This package holds the MIB files from the net-snmp package.
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2010-01-21 11:28:30 +01:00
|
|
|
%package -n perl-SNMP
|
|
|
|
Summary: Perl5 SNMP Extension Module
|
2018-04-20 09:40:51 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-03-26 11:03:36 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2018-02-01 15:18:02 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: perl-base = %{perl_version}
|
2007-01-16 00:26:37 +01:00
|
|
|
|
|
|
|
%description -n perl-SNMP
|
|
|
|
The Perl5 'SNMP' Extension Module v3.1.0 for the UCD SNMPv3 library.
|
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%package -n python2-%{name}
|
2013-07-25 15:10:23 +02:00
|
|
|
Summary: The Python 'netsnmp' module for the Net-SNMP
|
2018-02-01 15:18:02 +01:00
|
|
|
License: BSD-3-Clause AND MIT
|
2013-07-25 15:10:23 +02:00
|
|
|
Group: Development/Libraries/Python
|
2018-02-01 15:18:02 +01:00
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
Provides: %{name}-python = %{version}
|
|
|
|
Obsoletes: %{name}-python < %{version}
|
|
|
|
Provides: python-%{name} = %{version}
|
2013-07-25 15:10:23 +02:00
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%description -n python2-%{name}
|
2013-07-25 15:10:23 +02:00
|
|
|
The 'netsnmp' module provides a full featured, tri-lingual SNMP (SNMPv3,
|
|
|
|
SNMPv2c, SNMPv1) client API. The 'netsnmp' module internals rely on the
|
|
|
|
Net-SNMP toolkit library.
|
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%package -n python3-%{name}
|
|
|
|
Summary: The Python 3 'netsnmp' module for the Net-SNMP
|
|
|
|
License: BSD-3-Clause AND MIT
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
|
|
|
The 'netsnmp' module provides a full featured, tri-lingual SNMP (SNMPv3,
|
|
|
|
SNMPv2c, SNMPv1) client API. The 'netsnmp' module internals rely on the
|
|
|
|
Net-SNMP toolkit library.
|
2013-07-25 15:10:23 +02:00
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
%prep
|
2018-02-01 15:18:02 +01:00
|
|
|
%setup -q
|
|
|
|
%autopatch -p1
|
2007-01-16 00:26:37 +01:00
|
|
|
|
|
|
|
%build
|
2010-12-01 00:45:31 +01:00
|
|
|
MIBS="misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \
|
|
|
|
ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable \
|
|
|
|
ip-mib/ipDefaultRouterTable ip-mib/ipAddressPrefixTable \
|
2018-10-15 17:40:54 +02:00
|
|
|
ip-mib/ipv6ScopeZoneIndexTable ip-mib/ipIfStatsTable \
|
|
|
|
tsm-mib tlstm-mib"
|
2010-12-01 00:45:31 +01:00
|
|
|
|
2010-06-21 18:02:26 +02:00
|
|
|
%if 0%{?netsnmp_with_sensors}
|
2010-12-01 00:45:31 +01:00
|
|
|
MIBS="$MIBS ucd-snmp/lmsensorsMib"
|
2007-08-06 18:48:47 +02:00
|
|
|
%endif
|
2010-12-01 00:45:31 +01:00
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
autoreconf -fvi
|
2010-12-01 00:45:31 +01:00
|
|
|
%configure \
|
|
|
|
--with-sys-contact="root@localhost" \
|
2007-01-16 00:26:37 +01:00
|
|
|
--with-sys-location="unknown" \
|
2010-12-01 00:45:31 +01:00
|
|
|
--with-mib-modules="$MIBS" \
|
2018-02-01 15:18:02 +01:00
|
|
|
--with-cflags="%{optflags}" \
|
|
|
|
--with-ldflags="-Wl,-z,relro -Wl,-z,now" \
|
|
|
|
--with-persistent-directory="%{_localstatedir}/lib/net-snmp" \
|
2010-12-01 00:45:31 +01:00
|
|
|
--with-agentx-socket="%{netsnmp_agentx_socket_dir_fhs}/master" \
|
2018-04-20 09:40:51 +02:00
|
|
|
--with-temp-file-pattern=%{_localstatedir}/run/net-snmp/snmp-tmp-XXXXXX \
|
2010-12-01 00:45:31 +01:00
|
|
|
--with-logfile="%{netsnmp_logfile}" \
|
|
|
|
--with-libwrap="%{_prefix}" \
|
|
|
|
--with-perl-modules="INSTALLDIRS=vendor" \
|
2007-01-16 00:26:37 +01:00
|
|
|
--with-defaults \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--enable-as-needed \
|
|
|
|
--without-root-access \
|
|
|
|
--enable-local-smux \
|
|
|
|
--enable-ipv6 \
|
2015-07-21 13:26:21 +02:00
|
|
|
--enable-ucd-snmp-compatibility \
|
2018-10-15 17:40:54 +02:00
|
|
|
--with-security-modules=tsm,usm \
|
2018-02-01 15:18:02 +01:00
|
|
|
--with-transports=TLSTCP,DTLSUDP \
|
|
|
|
--with-systemd
|
2016-04-12 19:00:22 +02:00
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
# Parallel build deps not properly stated
|
|
|
|
make -j1
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2013-07-25 15:10:23 +02:00
|
|
|
pushd python
|
2018-02-01 15:18:02 +01:00
|
|
|
%python_exec setup.py build --basedir="../"
|
2013-07-25 15:10:23 +02:00
|
|
|
popd
|
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
%install
|
2018-02-01 15:18:02 +01:00
|
|
|
%make_install INSTALL_PREFIX=%{buildroot}
|
|
|
|
install -Dd %{buildroot}%{_localstatedir}/log %{buildroot}%{_localstatedir}/lib/net-snmp %{buildroot}%{_libexecdir}/net-snmp/agents %{buildroot}%{netsnmp_agentx_socket_dir_fhs}
|
2018-04-20 09:40:51 +02:00
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/snmpd.service
|
|
|
|
install -D -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/snmptrapd.service
|
2018-02-01 15:18:02 +01:00
|
|
|
install -D -m 0600 %{SOURCE2} %{buildroot}%{_sysconfdir}/snmp/snmpd.conf
|
|
|
|
install -m 0644 %{SOURCE3} .
|
|
|
|
install -m 0644 %{SOURCE4} .
|
|
|
|
install -D -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/net-snmp
|
|
|
|
install -m 0744 %{SOURCE6} testing/
|
|
|
|
ln -sf service %{buildroot}%{_sbindir}/rcsnmpd
|
|
|
|
ln -sf service %{buildroot}%{_sbindir}/rcsnmptrapd
|
|
|
|
install -m 0644 /dev/null %{buildroot}%{netsnmp_logfile}
|
2007-01-16 00:26:37 +01:00
|
|
|
pushd perl
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2018-02-01 15:18:02 +01:00
|
|
|
rm -f %{buildroot}/%{perl_vendorarch}/Bundle/Makefile.subs.pl
|
2007-01-16 00:26:37 +01:00
|
|
|
popd
|
2013-07-25 15:10:23 +02:00
|
|
|
pushd python
|
2018-02-01 15:18:02 +01:00
|
|
|
%python_install
|
2013-07-25 15:10:23 +02:00
|
|
|
popd
|
2018-02-01 15:18:02 +01:00
|
|
|
grep -a -v "^#define PACKAGE" %{buildroot}%{_includedir}/net-snmp/net-snmp-config.h > \
|
2007-01-16 00:26:37 +01:00
|
|
|
%{buildroot}%{_includedir}/net-snmp/net-snmp-config.h.new
|
2018-02-01 15:18:02 +01:00
|
|
|
mv %{buildroot}%{_includedir}/net-snmp/net-snmp-config.h{.new,}
|
|
|
|
install -D -m 0644 %{SOURCE10} %{buildroot}%{_fillupdir}/sysconfig.snmpd
|
|
|
|
install -D -m 0644 %{SOURCE11} %{buildroot}%{_fillupdir}/sysconfig.snmptrapd
|
|
|
|
# tmpfiles
|
2018-04-20 09:40:51 +02:00
|
|
|
install -m 755 -d %{buildroot}/%{_tmpfilesdir}
|
|
|
|
install -m 644 %SOURCE20 %{buildroot}/%{_tmpfilesdir}/net-snmp.conf
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
2018-02-01 15:18:02 +01:00
|
|
|
ln -s -f %{netsnmp_agentx_socket_dir_fhs} %{buildroot}%{netsnmp_agentx_socket_dir_rfc}
|
2007-08-06 18:48:47 +02:00
|
|
|
#
|
2018-02-01 15:18:02 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-16 00:26:37 +01:00
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%pre
|
|
|
|
%service_add_pre snmpd.service snmptrapd.service
|
2007-01-16 00:26:37 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/chkconfig -c snmpd 2> /dev/null && FIRST_ARG=2
|
2018-02-01 15:18:02 +01:00
|
|
|
%fillup_only snmpd
|
|
|
|
%fillup_only snmptrapd
|
|
|
|
%tmpfiles_create %{_tmpfilesdir}/net-snmp.conf
|
|
|
|
%service_add_post snmpd.service snmptrapd.service
|
2007-01-16 00:26:37 +01:00
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%preun
|
|
|
|
%service_del_preun snmpd.service snmptrapd.service
|
2007-01-16 00:26:37 +01:00
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%postun
|
|
|
|
%service_del_postun snmpd.service snmptrapd.service
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
%files
|
2018-04-20 09:40:51 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AGENT.txt EXAMPLE.conf EXAMPLE.conf.def
|
2012-11-02 07:31:12 +01:00
|
|
|
%doc FAQ NEWS TODO CHANGES
|
2007-08-06 18:48:47 +02:00
|
|
|
%doc README README.agent-mibs README.agentx README.krb5 README.snmpv3 README.thread
|
2018-02-01 15:18:02 +01:00
|
|
|
%dir %{_sysconfdir}/snmp
|
|
|
|
%config(noreplace) %{_sysconfdir}/snmp/snmpd.conf
|
|
|
|
%{_unitdir}/snmpd.service
|
|
|
|
%{_unitdir}/snmptrapd.service
|
|
|
|
%{_tmpfilesdir}/net-snmp.conf
|
2007-01-16 00:26:37 +01:00
|
|
|
%{_bindir}/encode_keychange
|
|
|
|
%{_bindir}/fixproc
|
|
|
|
%{_bindir}/ipf-mod.pl
|
|
|
|
%{_bindir}/net-snmp-config
|
|
|
|
%{_bindir}/snmpbulkget
|
|
|
|
%{_bindir}/snmpbulkwalk
|
|
|
|
%{_bindir}/snmpcheck
|
|
|
|
%{_bindir}/snmpconf
|
|
|
|
%{_bindir}/snmpdelta
|
|
|
|
%{_bindir}/snmpdf
|
|
|
|
%{_bindir}/snmpget
|
|
|
|
%{_bindir}/snmpgetnext
|
|
|
|
%{_bindir}/snmpinform
|
|
|
|
%{_bindir}/snmpnetstat
|
|
|
|
%{_bindir}/snmpset
|
|
|
|
%{_bindir}/snmpstatus
|
|
|
|
%{_bindir}/snmptable
|
|
|
|
%{_bindir}/snmptest
|
2015-07-21 13:26:21 +02:00
|
|
|
%{_bindir}/snmptls
|
2007-01-16 00:26:37 +01:00
|
|
|
%{_bindir}/snmptranslate
|
|
|
|
%{_bindir}/snmptrap
|
|
|
|
%{_bindir}/snmpusm
|
|
|
|
%{_bindir}/snmpvacm
|
|
|
|
%{_bindir}/snmpwalk
|
|
|
|
%{_bindir}/traptoemail
|
2010-01-21 11:28:30 +01:00
|
|
|
%{_bindir}/net-snmp-create-v3-user
|
2010-10-28 12:41:04 +02:00
|
|
|
%{_bindir}/net-snmp-cert
|
|
|
|
%{_bindir}/agentxtrap
|
|
|
|
%{_bindir}/snmp-bridge-mib
|
2018-10-15 17:40:54 +02:00
|
|
|
%{_bindir}/checkbandwidth
|
|
|
|
%{_bindir}/snmpping
|
|
|
|
%{_bindir}/snmpps
|
|
|
|
%{_bindir}/snmptop
|
2018-02-01 15:18:02 +01:00
|
|
|
%dir %{_libexecdir}/net-snmp
|
|
|
|
%dir %{_libexecdir}/net-snmp/agents
|
2007-01-16 00:26:37 +01:00
|
|
|
%{_mandir}/man[158]/*
|
|
|
|
%{_sbindir}/*
|
2018-02-01 15:18:02 +01:00
|
|
|
%{_localstatedir}/lib/net-snmp
|
2010-05-18 20:40:49 +02:00
|
|
|
%dir %ghost %attr(700,root,root) %{netsnmp_agentx_socket_dir_fhs}
|
2007-01-16 00:26:37 +01:00
|
|
|
%ghost %{netsnmp_logfile}
|
2018-02-01 15:18:02 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/net-snmp
|
|
|
|
%{_fillupdir}/sysconfig.snmpd
|
|
|
|
%{_fillupdir}/sysconfig.snmptrapd
|
2007-01-16 00:26:37 +01:00
|
|
|
%{netsnmp_agentx_socket_dir_rfc}
|
2008-09-08 16:23:32 +02:00
|
|
|
%{_datadir}/snmp/snmpconf-data/
|
|
|
|
%{_datadir}/snmp/snmp_perl.pl
|
|
|
|
%{_datadir}/snmp/snmp_perl_trapd.pl
|
2007-01-16 00:26:37 +01:00
|
|
|
|
2007-08-06 18:48:47 +02:00
|
|
|
%files -n snmp-mibs
|
2008-09-08 16:23:32 +02:00
|
|
|
%dir %{_datadir}/snmp
|
|
|
|
%{_datadir}/snmp/mibs/
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%files -n %{libname}
|
|
|
|
%license COPYING
|
2007-08-06 18:48:47 +02:00
|
|
|
%{_libdir}/libsnmp*.so.*
|
|
|
|
%{_libdir}/libnetsnmp*.so.*
|
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
%files devel
|
2007-08-06 18:48:47 +02:00
|
|
|
%doc ChangeLog PORTING
|
2007-01-16 00:26:37 +01:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_includedir}/ucd-snmp
|
|
|
|
%{_includedir}/net-snmp
|
|
|
|
%{_libdir}/libsnmp*.so
|
|
|
|
%{_libdir}/libnetsnmp*.so
|
2008-09-08 16:23:32 +02:00
|
|
|
%{_bindir}/mib2c
|
|
|
|
%{_bindir}/mib2c-update
|
|
|
|
%{_datadir}/snmp/mib2c*
|
2007-01-16 00:26:37 +01:00
|
|
|
|
|
|
|
%files -n perl-SNMP
|
|
|
|
%{perl_vendorarch}/auto/SNMP
|
|
|
|
%{perl_vendorarch}/auto/NetSNMP
|
2018-10-15 17:40:54 +02:00
|
|
|
%{perl_vendorarch}/Bundle
|
2007-01-16 00:26:37 +01:00
|
|
|
%{perl_vendorarch}/SNMP.pm
|
|
|
|
%{perl_vendorarch}/NetSNMP
|
|
|
|
%{_bindir}/tkmib
|
2018-02-01 15:18:02 +01:00
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%files -n python2-%{name}
|
|
|
|
%doc README
|
|
|
|
%{python2_sitearch}/*
|
2010-12-01 00:45:31 +01:00
|
|
|
%endif
|
2008-03-26 16:25:20 +01:00
|
|
|
|
2018-02-01 15:18:02 +01:00
|
|
|
%files -n python3-%{name}
|
2013-07-25 15:10:23 +02:00
|
|
|
%doc README
|
2018-02-01 15:18:02 +01:00
|
|
|
%{python3_sitearch}/*
|
2013-07-25 15:10:23 +02:00
|
|
|
|
2007-08-06 18:48:47 +02:00
|
|
|
%changelog
|