2007-01-16 00:26:37 +01:00
|
|
|
#
|
2008-11-07 16:03:18 +01:00
|
|
|
# spec file for package net-snmp (Version 5.4.2.1)
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
2009-01-22 18:18:30 +01:00
|
|
|
# Copyright (c) 2009 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-26 16:25:20 +01:00
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
Name: net-snmp
|
2008-11-07 16:03:18 +01:00
|
|
|
Version: 5.4.2.1
|
2009-08-31 21:07:41 +02:00
|
|
|
Release: 10
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
2009-08-28 00:13:05 +02:00
|
|
|
License: BSD 3-clause (or similar) ; MIT License (or similar)
|
2007-01-16 00:26:37 +01:00
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
#
|
2007-08-06 18:48:47 +02:00
|
|
|
%define pkg_name net-snmp
|
|
|
|
%ifnarch s390 s390x
|
|
|
|
%define with_sensors 1
|
|
|
|
%endif
|
2008-09-08 16:23:32 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
%define perl_requires Requires: perl-base = %{perl_version}
|
|
|
|
%else
|
|
|
|
%define perl_requires Requires: perl = %{perl_version}
|
|
|
|
%endif
|
2007-08-06 18:48:47 +02:00
|
|
|
%define netsnmp_logfile /var/log/net-snmpd.log
|
|
|
|
%define netsnmp_agentx_socket_dir_fhs /var/run/agentx
|
|
|
|
%define netsnmp_agentx_socket_dir_rfc /var/agentx
|
|
|
|
#
|
2007-01-16 00:26:37 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-10-22 18:28:08 +02:00
|
|
|
BuildRequires: openssl-devel rpm-devel tcpd-devel
|
2007-08-06 18:48:47 +02:00
|
|
|
%if 0%{?with_sensors}
|
2007-11-02 16:01:42 +01:00
|
|
|
BuildRequires: libsensors3-devel
|
2007-08-06 18:48:47 +02:00
|
|
|
%endif
|
2007-01-16 00:26:37 +01:00
|
|
|
Requires: perl-TermReadKey logrotate
|
2008-09-08 16:23:32 +02:00
|
|
|
Requires: perl-SNMP = %{version}
|
2007-01-16 00:26:37 +01:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq /sbin/chkconfig
|
|
|
|
Provides: snmp ucdsnmp
|
|
|
|
Obsoletes: snmp ucdsnmp
|
2008-11-02 15:44:27 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: net-snmp-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
2007-11-02 16:01:42 +01:00
|
|
|
Url: http://sourceforge.net/projects/net-snmp
|
2007-01-16 00:26:37 +01:00
|
|
|
Source: %{pkg_name}-%{version}.tar.bz2
|
|
|
|
Source1: rc.net-snmp
|
|
|
|
Source2: snmpd.conf
|
|
|
|
Source3: README.SuSE
|
|
|
|
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
|
2008-10-24 22:48:33 +02:00
|
|
|
Patch: net-snmp-5.4.2_audit.patch
|
|
|
|
Patch1: net-snmp-5.4.2_autoconf.patch
|
2007-01-16 00:26:37 +01:00
|
|
|
# unused patch atm
|
|
|
|
Patch2: net-snmp-5.2.1-socket_path.diff
|
|
|
|
Patch3: net-snmp-5.4.rc2-versinfo.diff
|
2008-10-24 22:48:33 +02:00
|
|
|
Patch4: net-snmp-5.4.2_overflow.patch
|
|
|
|
Patch5: net-snmp-5.4.2_testing.empty_arptable.patch
|
2007-01-16 00:26:37 +01:00
|
|
|
Patch6: net-snmp-5.1.1-pie.patch
|
2008-10-24 22:48:33 +02:00
|
|
|
Patch7: net-snmp-5.4.2_vendorperl.patch
|
|
|
|
Patch8: net-snmp-5.4.2_net-snmp-config_headercheck.patch
|
|
|
|
Patch9: net-snmp-5.4.2_perl_tk_warning.patch
|
|
|
|
Patch10: net-snmp-5.4.2_snmpconf-selinux.patch
|
2008-09-08 16:23:32 +02:00
|
|
|
Patch11: net-snmp-5.3.0.1_trap-agent-addr_v2.patch
|
2009-01-22 18:18:30 +01:00
|
|
|
Patch12: net-snmp-5.4.1.2-etherlike-mib-revised_4.patch
|
|
|
|
Patch13: net-snmp-5.4.1.2-rmon-mib-revised_3.patch
|
2008-10-24 22:48:33 +02:00
|
|
|
Patch14: net-snmp-5.4.2_velocity-mib.patch
|
|
|
|
Patch15: Fix-for-tcpConnnectionTable-tcpListenerTable-udpEn.patch
|
|
|
|
Patch16: Fix-for-IPv6-Interface-Table.patch
|
|
|
|
Patch17: Fix-for-Internet-Address-Table.patch
|
|
|
|
Patch18: Add-ICMP-Statistics-Tables-support.patch
|
|
|
|
Patch19: Add-Default-Router-Table-support.patch
|
|
|
|
Patch20: Add-IPv6-support-on-Internet-Address-Translation-Tab.patch
|
|
|
|
Patch21: Fix-for-Internet-Address-Prefix-Table.patch
|
|
|
|
Patch22: Add-IPv6-Scope-Zone-Index.patch
|
|
|
|
Patch23: Improve-IP-Statistics-tables.patch
|
2008-11-20 15:56:02 +01:00
|
|
|
Patch24: net-snmp-5.4.x_embedded_perl_error_message.patch
|
2009-08-31 21:07:41 +02:00
|
|
|
Patch25: net-snmp-5.4.2.1-rpm4.7.patch
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
|
|
|
Summary: SNMP Daemon
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package was originally based on the CMU 2.1.2.1 snmp code. It has
|
|
|
|
been greatly modified, restructured, enhanced, and fixed. It hardly
|
|
|
|
looks the same as anything that CMU has ever released. It was renamed
|
|
|
|
from cmu-snmp to ucd-snmp in 1995 and later renamed from ucd-snmp to
|
|
|
|
net-snmp in November 2000.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Wes Hardaker <hardaker@users.sourceforge.net>
|
|
|
|
|
2008-09-08 16:23:32 +02:00
|
|
|
%define library_name libsnmp15
|
|
|
|
|
|
|
|
%package -n libsnmp15
|
2009-08-28 00:13:05 +02:00
|
|
|
License: BSD 3-clause (or similar) ; MIT License (or similar)
|
2008-09-08 16:23:32 +02:00
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
Requires: snmp-mibs = %{version}
|
|
|
|
# we link libperl
|
|
|
|
%perl_requires
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
2008-09-08 16:23:32 +02:00
|
|
|
Summary: Shared Libraries from net-snmp
|
2007-01-16 00:26:37 +01:00
|
|
|
|
2008-09-08 16:23:32 +02:00
|
|
|
%description -n libsnmp15
|
2007-01-16 00:26:37 +01:00
|
|
|
This package was originally based on the CMU 2.1.2.1 snmp code. It has
|
|
|
|
been greatly modified, restructured, enhanced, and fixed. It hardly
|
|
|
|
looks the same as anything that CMU has ever released. It was renamed
|
|
|
|
from cmu-snmp to ucd-snmp in 1995 and later renamed from ucd-snmp to
|
|
|
|
net-snmp in November 2000.
|
|
|
|
|
2008-09-08 16:23:32 +02:00
|
|
|
This package holds the shared libraries from the net-snmp package.
|
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
|
|
|
|
|
2007-08-06 18:48:47 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Wes Hardaker <hardaker@users.sourceforge.net>
|
|
|
|
|
2008-09-08 16:23:32 +02:00
|
|
|
%package devel
|
2009-08-28 00:13:05 +02:00
|
|
|
License: BSD 3-clause (or similar) ; MIT License (or similar)
|
2008-09-08 16:23:32 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2008-11-02 15:44:27 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: net-snmp-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-09-08 16:23:32 +02:00
|
|
|
Requires: %{library_name} = %{version}
|
|
|
|
# for mib2c
|
|
|
|
Requires: perl-SNMP = %{version}
|
|
|
|
Requires: openssl-devel rpm-devel tcpd-devel
|
|
|
|
%if 0%{?with_sensors}
|
|
|
|
Requires: libsensors3-devel
|
|
|
|
%endif
|
2007-08-06 18:48:47 +02:00
|
|
|
#
|
2008-09-08 16:23:32 +02:00
|
|
|
Summary: SNMP Daemon
|
2007-08-06 18:48:47 +02:00
|
|
|
|
2008-09-08 16:23:32 +02:00
|
|
|
%description devel
|
2007-08-06 18:48:47 +02:00
|
|
|
This package was originally based on the CMU 2.1.2.1 snmp code. It has
|
|
|
|
been greatly modified, restructured, enhanced, and fixed. It hardly
|
|
|
|
looks the same as anything that CMU has ever released. It was renamed
|
|
|
|
from cmu-snmp to ucd-snmp in 1995 and later renamed from ucd-snmp to
|
|
|
|
net-snmp in November 2000.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Wes Hardaker <hardaker@users.sourceforge.net>
|
|
|
|
|
|
|
|
%package -n snmp-mibs
|
2009-08-28 00:13:05 +02:00
|
|
|
License: BSD 3-clause (or similar) ; MIT License (or similar)
|
2007-08-06 18:48:47 +02:00
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
#
|
|
|
|
Summary: MIB files from net-snmp
|
|
|
|
|
|
|
|
%description -n snmp-mibs
|
|
|
|
This package was originally based on the CMU 2.1.2.1 snmp code. It has
|
|
|
|
been greatly modified, restructured, enhanced, and fixed. It hardly
|
|
|
|
looks the same as anything that CMU has ever released. It was renamed
|
|
|
|
from cmu-snmp to ucd-snmp in 1995 and later renamed from ucd-snmp to
|
|
|
|
net-snmp in November 2000.
|
|
|
|
|
|
|
|
This package holds the MIB files from the net-snmp package.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Wes Hardaker <hardaker@users.sourceforge.net>
|
|
|
|
|
|
|
|
%package -n perl-SNMP
|
2008-04-10 15:00:57 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:26:37 +01:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Requires: %{pkg_name} = %{version}
|
2008-09-08 16:23:32 +02:00
|
|
|
%perl_requires
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
|
|
|
Summary: Perl-SNMP
|
|
|
|
|
|
|
|
%description -n perl-SNMP
|
|
|
|
The Perl5 'SNMP' Extension Module v3.1.0 for the UCD SNMPv3 library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
G.S. Marzot <gmarzot@nortelnetworks.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2009-08-28 00:13:05 +02:00
|
|
|
%patch
|
2007-01-16 00:26:37 +01:00
|
|
|
%patch1
|
2007-08-06 18:48:47 +02:00
|
|
|
%patch2
|
2007-01-16 00:26:37 +01:00
|
|
|
%patch3
|
|
|
|
%patch4
|
|
|
|
%patch5
|
|
|
|
%patch6
|
|
|
|
%patch7
|
|
|
|
%patch8
|
2008-09-08 16:23:32 +02:00
|
|
|
%patch9
|
2008-10-24 22:48:33 +02:00
|
|
|
%patch10
|
2008-09-08 16:23:32 +02:00
|
|
|
%patch11
|
2009-01-22 18:18:30 +01:00
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
2008-10-24 22:48:33 +02:00
|
|
|
%patch14
|
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
|
|
|
%patch17 -p1
|
|
|
|
%patch18 -p1
|
|
|
|
%patch19 -p1
|
|
|
|
%patch20 -p1
|
|
|
|
%patch21 -p1
|
|
|
|
%patch22 -p1
|
|
|
|
%patch23 -p1
|
2008-11-20 15:56:02 +01:00
|
|
|
%patch24
|
2009-08-31 21:07:41 +02:00
|
|
|
%patch25
|
2007-01-16 00:26:37 +01:00
|
|
|
find -name "CVS" -type d | xargs -r %{__rm} -rfv
|
|
|
|
find -name ".cvsignore" | xargs -r %{__rm} -fv
|
|
|
|
|
|
|
|
%build
|
2008-10-24 22:48:33 +02:00
|
|
|
autoreconf -fi
|
2007-01-16 00:26:37 +01:00
|
|
|
# possibly add later
|
2007-08-06 18:48:47 +02:00
|
|
|
# --with-python-modules \ => need python-setuptools
|
2007-01-16 00:26:37 +01:00
|
|
|
# ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable
|
2007-08-06 18:48:47 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing -DNETSNMP_NO_INLINE"
|
2007-01-16 00:26:37 +01:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
%if 0%{?suse_version} > 1000
|
|
|
|
export CFLAGS="$CFLAGS -fstack-protector-all"
|
|
|
|
%endif
|
|
|
|
%configure \
|
|
|
|
--with-sys-contact="root@localhost" \
|
2007-08-06 18:48:47 +02:00
|
|
|
--with-mib-modules="misc/ipfwacc \
|
|
|
|
ucd-snmp/diskio \
|
2008-09-13 01:13:09 +02:00
|
|
|
etherlike-mib rmon-mib \
|
2008-10-24 22:48:33 +02:00
|
|
|
velocity \
|
2007-08-06 18:48:47 +02:00
|
|
|
%if 0%{?with_sensors}
|
|
|
|
ucd-snmp/lmSensors \
|
|
|
|
%endif
|
2008-10-24 22:48:33 +02:00
|
|
|
smux \
|
|
|
|
ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable \
|
|
|
|
ip-mib/ipDefaultRouterTable ip-mib/ipAddressPrefixTable \
|
|
|
|
ip-mib/ipv6ScopeZoneIndexTable ip-mib/ipIfStatsTable" \
|
2007-01-16 00:26:37 +01:00
|
|
|
--with-persistent-directory=/var/lib/net-snmp \
|
|
|
|
--with-agentx-socket=%{netsnmp_agentx_socket_dir_fhs}/master \
|
|
|
|
--with-sys-location="unknown" \
|
|
|
|
--with-logfile=%{netsnmp_logfile} \
|
|
|
|
--with-libwrap=%{_prefix} \
|
|
|
|
--with-defaults \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--enable-as-needed \
|
|
|
|
--without-root-access \
|
|
|
|
--enable-local-smux \
|
|
|
|
--enable-ipv6 \
|
|
|
|
--enable-ucd-snmp-compatibility
|
|
|
|
%{__make} all
|
2007-08-06 18:48:47 +02:00
|
|
|
|
|
|
|
%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 ||:
|
|
|
|
|
|
|
|
%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
|
|
|
|
%{__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
|
|
|
|
%{__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
|
|
|
|
%{__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
|
|
|
#
|
2007-01-16 00:26:37 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal snmpd
|
|
|
|
|
|
|
|
%post
|
|
|
|
# if we are upgrading from older distros the config should be moved
|
|
|
|
# to the new place
|
|
|
|
CONFD="/etc/snmp"
|
|
|
|
OCONF="/etc/snmpd.conf"
|
|
|
|
NCONF="${CONFD}/snmpd.conf"
|
|
|
|
NCONFB="${CONFD}/snmpd.conf.rpmsave"
|
|
|
|
if [ -e "$OCONF" ] ; then
|
|
|
|
#
|
|
|
|
# in worst case we will get:
|
|
|
|
# /etc/snmp/snmpd.conf - the old /etc/snmpd.conf
|
|
|
|
# /etc/snmp/snmpd.conf.rpmnew - the config of the newly installed package.
|
|
|
|
# /etc/snmp/snmpd.conf.rpmsave - the old /etc/snmp/snmpd.conf
|
|
|
|
#
|
|
|
|
if [ ! -d "$CONFD" ] ; then
|
|
|
|
mkdir "$CONFD"
|
|
|
|
fi
|
|
|
|
#
|
|
|
|
# we dont need to handle the case that /etc/snmp/snmpd.conf
|
|
|
|
# exists. rpm does that for us.
|
|
|
|
# it creates /etc/snmp/snmpd.conf.rpmnew
|
|
|
|
#
|
|
|
|
if [ -e "$NCONF" ] ; then
|
|
|
|
mv "$NCONF" "$NCONFB"
|
|
|
|
echo "warning: /etc/snmp/snmpd.conf backed up as /etc/snmp/snmpd.conf.rpmsave" >&2
|
|
|
|
fi
|
|
|
|
echo "warning: /etc/snmpd.conf moved to /etc/snmp/snmpd.conf" >&2
|
|
|
|
mv "$OCONF" "$NCONF"
|
|
|
|
fi
|
|
|
|
# we might be updating from ucdsnmp soon
|
|
|
|
/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
|
|
|
|
%{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
|
2007-08-06 18:48:47 +02:00
|
|
|
%doc FAQ NEWS TODO rc.snmptrapd
|
|
|
|
%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
|
|
|
|
%{_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
|
|
|
|
%dir %{_prefix}/lib/net-snmp
|
|
|
|
%dir %{_prefix}/lib/net-snmp/agents
|
|
|
|
%{_mandir}/man[158]/*
|
|
|
|
%{_sbindir}/*
|
|
|
|
/var/lib/net-snmp
|
|
|
|
%dir %attr(700,root,root) %{netsnmp_agentx_socket_dir_fhs}
|
|
|
|
%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
|
2007-08-06 18:48:47 +02:00
|
|
|
%{_libdir}/libsnmp*.la
|
2007-01-16 00:26:37 +01:00
|
|
|
%{_libdir}/libsnmp*.so
|
2007-08-06 18:48:47 +02:00
|
|
|
%{_libdir}/libnetsnmp*.la
|
2007-01-16 00:26:37 +01:00
|
|
|
%{_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
|
|
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
%{_bindir}/tkmib
|
2008-03-26 16:25:20 +01:00
|
|
|
|
2007-08-06 18:48:47 +02:00
|
|
|
%changelog
|