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
|
|
|
#
|
2014-02-26 23:20:35 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2013-07-25 15:10:23 +02:00
|
|
|
# compatibility for SLES11 <=SP1
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
|
2007-08-06 18:48:47 +02:00
|
|
|
%define pkg_name net-snmp
|
|
|
|
%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
|
2010-06-21 18:02:26 +02:00
|
|
|
%define netsnmp_check 1
|
2007-08-06 18:48:47 +02:00
|
|
|
%define netsnmp_logfile /var/log/net-snmpd.log
|
2014-05-22 20:38:19 +02:00
|
|
|
%if ! %{defined _rundir}
|
|
|
|
%define _rundir %{_localstatedir}/run
|
|
|
|
%endif
|
|
|
|
%define netsnmp_agentx_socket_dir_fhs %{_rundir}/agentx
|
2007-08-06 18:48:47 +02:00
|
|
|
%define netsnmp_agentx_socket_dir_rfc /var/agentx
|
2010-06-21 18:02:26 +02:00
|
|
|
|
|
|
|
Name: net-snmp
|
2014-05-22 20:38:19 +02:00
|
|
|
Version: 5.7.2.1
|
2012-03-26 11:03:36 +02:00
|
|
|
Release: 0
|
2007-01-16 00:26:37 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-03-26 11:03:36 +02:00
|
|
|
BuildRequires: openssl-devel
|
2013-07-25 15:10:23 +02:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
2012-03-26 11:03:36 +02:00
|
|
|
BuildRequires: rpm-devel
|
|
|
|
BuildRequires: tcpd-devel
|
2010-06-21 18:02:26 +02:00
|
|
|
%if 0%{?netsnmp_with_sensors}
|
2010-02-05 14:08:45 +01:00
|
|
|
BuildRequires: libsensors4-devel
|
2007-08-06 18:48:47 +02:00
|
|
|
%endif
|
2012-03-26 11:03:36 +02:00
|
|
|
Requires: logrotate
|
2008-09-08 16:23:32 +02:00
|
|
|
Requires: perl-SNMP = %{version}
|
2012-03-26 11:03:36 +02:00
|
|
|
Requires: perl-TermReadKey
|
2007-01-16 00:26:37 +01:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq /sbin/chkconfig
|
2007-11-02 16:01:42 +01:00
|
|
|
Url: http://sourceforge.net/projects/net-snmp
|
2014-05-22 20:38:19 +02:00
|
|
|
#Source: http://sourceforge.net/projects/net-snmp/files/net-snmp/%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
Source: %{pkg_name}-%{version}.tar.gz
|
2011-09-14 15:00:35 +02:00
|
|
|
Source1: rc.snmpd
|
2007-01-16 00:26:37 +01:00
|
|
|
Source2: snmpd.conf
|
2011-09-14 15:00:35 +02:00
|
|
|
Source3: README.SUSE
|
2007-01-16 00:26:37 +01:00
|
|
|
Source4: rc.snmptrapd
|
|
|
|
Source5: net-snmp.logrotate
|
|
|
|
Source6: test_installed
|
|
|
|
Source7: net-snmp.sysconfig
|
2007-08-06 18:48:47 +02:00
|
|
|
Source8: net-snmp-rpmlintrc
|
2010-01-21 11:28:30 +01:00
|
|
|
Source9: baselibs.conf
|
2012-11-02 07:31:12 +01:00
|
|
|
Patch1: net-snmp-5.7.2-socket-path.patch
|
|
|
|
Patch2: net-snmp-5.7.2-testing-empty-arptable.patch
|
|
|
|
Patch3: net-snmp-5.7.2-pie.patch
|
|
|
|
Patch5: net-snmp-5.7.2-net-snmp-config-headercheck.patch
|
|
|
|
Patch6: net-snmp-5.7.2-perl-tk-warning.patch
|
|
|
|
Patch7: net-snmp-5.7.2-velocity-mib.patch
|
2012-12-20 11:02:57 +01:00
|
|
|
Patch8: net-snmp-5.7.2-build-fix-for-strlcat.patch
|
2014-05-22 20:38:19 +02:00
|
|
|
Patch9: net-snmp-5.7.2-fix-snmpd-crashing-when-an-agentx-disconnects.patch
|
|
|
|
Patch10: net-snmp-5.7.2-fix-mib-representation-of-timeout-values.patch
|
2014-09-17 17:24:23 +02:00
|
|
|
Patch11: net-snmp-5.7.2-fix-perl-trap-handler.patch
|
|
|
|
Patch12: net-snmp-5.7.2-fix-snmptrapd-remote-denial-of-service.patch
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
|
|
|
Summary: SNMP Daemon
|
2012-11-02 07:31:12 +01:00
|
|
|
License: BSD-3-Clause and MIT
|
2012-03-26 11:03:36 +02:00
|
|
|
Group: Productivity/Networking/Other
|
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
|
|
|
|
|
|
|
|
2011-09-01 12:07:59 +02:00
|
|
|
%define library_name libsnmp30
|
2008-09-08 16:23:32 +02:00
|
|
|
|
2011-09-01 12:07:59 +02:00
|
|
|
%package -n libsnmp30
|
2010-05-18 20:40:49 +02:00
|
|
|
Requires: perl-base = %{perl_version}
|
2012-03-26 11:03:36 +02:00
|
|
|
Requires: snmp-mibs = %{version}
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
2008-09-08 16:23:32 +02:00
|
|
|
Summary: Shared Libraries from net-snmp
|
2012-11-02 07:31:12 +01:00
|
|
|
License: BSD-3-Clause and MIT
|
2012-03-26 11:03:36 +02:00
|
|
|
Group: Productivity/Networking/Other
|
2007-01-16 00:26:37 +01:00
|
|
|
|
2011-09-01 12:07:59 +02:00
|
|
|
%description -n libsnmp30
|
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
|
|
|
|
Requires: %{library_name} = %{version}
|
|
|
|
# for mib2c
|
2012-03-26 11:03:36 +02:00
|
|
|
Requires: libopenssl-devel
|
|
|
|
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
|
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
|
|
|
#
|
2010-02-05 14:08:45 +01:00
|
|
|
Summary: Development files from net-snmp
|
2012-11-02 07:31:12 +01:00
|
|
|
License: BSD-3-Clause and MIT
|
2012-03-26 11:03:36 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
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
|
2012-11-02 07:31:12 +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
|
2007-01-16 00:26:37 +01:00
|
|
|
Requires: %{pkg_name} = %{version}
|
2010-05-18 20:40:49 +02:00
|
|
|
Requires: perl-base = %{perl_version}
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
2010-01-21 11:28:30 +01:00
|
|
|
Summary: Perl5 SNMP Extension Module
|
2012-03-26 11:03:36 +02:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Development/Libraries/Perl
|
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.
|
|
|
|
|
|
|
|
|
2013-07-25 15:10:23 +02:00
|
|
|
%package python
|
|
|
|
Summary: The Python 'netsnmp' module for the Net-SNMP
|
|
|
|
License: BSD-3-Clause and MIT
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
|
|
|
%description python
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
%prep
|
2011-09-29 12:53:00 +02:00
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2010-05-18 20:40:49 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2012-12-20 11:02:57 +01:00
|
|
|
%patch8 -p1
|
2014-05-22 20:38:19 +02:00
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
2014-09-17 17:24:23 +02:00
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -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 \
|
|
|
|
ip-mib/ipv6ScopeZoneIndexTable ip-mib/ipIfStatsTable"
|
|
|
|
|
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
|
|
|
|
|
|
|
%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" \
|
|
|
|
--with-cflags="%{optflags} -fstack-protector-all" \
|
|
|
|
--with-persistent-directory="/var/lib/net-snmp" \
|
|
|
|
--with-agentx-socket="%{netsnmp_agentx_socket_dir_fhs}/master" \
|
|
|
|
--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 \
|
|
|
|
--enable-ucd-snmp-compatibility
|
2013-05-27 09:54:35 +02:00
|
|
|
# Parallel building is disabled because dependencies between the Perl
|
|
|
|
# module and libnetsnmp are not correctly defined.
|
|
|
|
make #%{?_smp_mflags}
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2013-07-25 15:10:23 +02:00
|
|
|
pushd python
|
|
|
|
%{__python} setup.py --basedir="../" build
|
|
|
|
popd
|
|
|
|
|
2007-08-06 18:48:47 +02:00
|
|
|
%check
|
2010-06-21 18:02:26 +02:00
|
|
|
%if 0%{?netsnmp_check}
|
2007-01-16 00:26:37 +01:00
|
|
|
%ifnarch %arm
|
|
|
|
ulimit -c unlimited
|
|
|
|
%{__make} test ||:
|
|
|
|
%{__make} test TESTOPTS='-P tcp' ||:
|
|
|
|
%endif
|
|
|
|
%{__make} perlmodules ||:
|
|
|
|
LD_RUN_PATH="$PWD/snmplib/.libs" LD_LIBRARY_PATH="${PWD}/snmplib/.libs:${PWD}/agent/.libs:${PWD}/agent/helpers/.libs" %{__make} perltest ||:
|
2010-06-21 18:02:26 +02:00
|
|
|
%endif
|
2007-01-16 00:26:37 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall INSTALL_PREFIX=%{buildroot}
|
|
|
|
%{__install} -Dd %{buildroot}/var/log %{buildroot}/var/lib/net-snmp %{buildroot}/usr/lib/net-snmp/agents %{buildroot}%{netsnmp_agentx_socket_dir_fhs}
|
|
|
|
%{__install} -D -m 0755 %{SOURCE1} %{buildroot}/etc/init.d/snmpd
|
2011-09-14 15:00:35 +02:00
|
|
|
%{__install} -D -m 0755 %{SOURCE4} %{buildroot}/etc/init.d/snmptrapd
|
2007-01-16 00:26:37 +01:00
|
|
|
%{__install} -D -m 0600 %{SOURCE2} %{buildroot}/etc/snmp/snmpd.conf
|
|
|
|
%{__install} -m 0644 %{SOURCE3} .
|
|
|
|
%{__install} -m 0644 %{SOURCE4} .
|
|
|
|
%{__install} -D -m 0644 %{SOURCE5} %{buildroot}/etc/logrotate.d/net-snmp
|
|
|
|
%{__install} -m 0744 %{SOURCE6} testing/
|
|
|
|
%{__ln_s} -f /etc/init.d/snmpd %{buildroot}%{_sbindir}/rcsnmpd
|
2011-09-14 15:00:35 +02:00
|
|
|
%{__ln_s} -f /etc/init.d/snmptrapd %{buildroot}%{_sbindir}/rcsnmptrapd
|
2007-01-16 00:26:37 +01:00
|
|
|
%{__install} -m 0644 /dev/null %{buildroot}%{netsnmp_logfile}
|
|
|
|
pushd perl
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%{__rm} -f %{buildroot}/%{perl_vendorarch}/Bundle/Makefile.subs.pl
|
|
|
|
popd
|
2013-07-25 15:10:23 +02:00
|
|
|
pushd python
|
|
|
|
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
popd
|
2007-01-16 00:26:37 +01:00
|
|
|
%{__grep} -v "^#define PACKAGE" %{buildroot}%{_includedir}/net-snmp/net-snmp-config.h > \
|
|
|
|
%{buildroot}%{_includedir}/net-snmp/net-snmp-config.h.new
|
|
|
|
%{__mv} %{buildroot}%{_includedir}/net-snmp/net-snmp-config.h{.new,}
|
|
|
|
%{__install} -D -m 0644 %{S:7} \
|
|
|
|
%{buildroot}/var/adm/fillup-templates/sysconfig.%{pkg_name}
|
|
|
|
#
|
|
|
|
%{__ln_s} -f %{netsnmp_agentx_socket_dir_fhs} %{buildroot}%{netsnmp_agentx_socket_dir_rfc}
|
2007-08-06 18:48:47 +02:00
|
|
|
#
|
2012-09-25 13:59:37 +02:00
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2007-01-16 00:26:37 +01:00
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal snmpd
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/chkconfig -c snmpd 2> /dev/null && FIRST_ARG=2
|
2008-08-23 01:22:58 +02:00
|
|
|
%{fillup_only}
|
2007-01-16 00:26:37 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update snmpd
|
2011-09-14 15:00:35 +02:00
|
|
|
%restart_on_update snmptrapd
|
2007-01-16 00:26:37 +01:00
|
|
|
%{insserv_cleanup}
|
|
|
|
|
2008-09-08 16:23:32 +02:00
|
|
|
%post -n %{library_name} -p /sbin/ldconfig
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2008-09-08 16:23:32 +02:00
|
|
|
%postun -n %{library_name} -p /sbin/ldconfig
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AGENT.txt COPYING 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
|
2007-01-16 00:26:37 +01:00
|
|
|
%dir /etc/snmp
|
|
|
|
%config(noreplace) /etc/snmp/snmpd.conf
|
|
|
|
%config /etc/init.d/snmpd
|
2011-09-14 15:00:35 +02:00
|
|
|
%config /etc/init.d/snmptrapd
|
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
|
|
|
|
%{_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
|
2007-01-16 00:26:37 +01:00
|
|
|
%dir %{_prefix}/lib/net-snmp
|
|
|
|
%dir %{_prefix}/lib/net-snmp/agents
|
|
|
|
%{_mandir}/man[158]/*
|
|
|
|
%{_sbindir}/*
|
|
|
|
/var/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}
|
|
|
|
%config(noreplace) /etc/logrotate.d/net-snmp
|
|
|
|
/var/adm/fillup-templates/sysconfig.%{pkg_name}
|
|
|
|
%{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
|
|
|
|
%defattr(-,root,root)
|
2008-09-08 16:23:32 +02:00
|
|
|
%dir %{_datadir}/snmp
|
|
|
|
%{_datadir}/snmp/mibs/
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2008-09-08 16:23:32 +02:00
|
|
|
%files -n %{library_name}
|
2007-08-06 18:48:47 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsnmp*.so.*
|
|
|
|
%{_libdir}/libnetsnmp*.so.*
|
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
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
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{perl_vendorarch}/auto/SNMP
|
|
|
|
%{perl_vendorarch}/auto/NetSNMP
|
|
|
|
%{perl_vendorarch}/auto/Bundle
|
|
|
|
%{perl_vendorarch}/SNMP.pm
|
|
|
|
%{perl_vendorarch}/NetSNMP
|
|
|
|
%{_bindir}/tkmib
|
2010-12-01 00:45:31 +01:00
|
|
|
%if 0%{?suse_version} <= 1130
|
|
|
|
/var/adm/perl-modules/net-snmp
|
|
|
|
%endif
|
2008-03-26 16:25:20 +01:00
|
|
|
|
2013-07-25 15:10:23 +02:00
|
|
|
%files python
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
2007-08-06 18:48:47 +02:00
|
|
|
%changelog
|