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
|
|
|
#
|
2011-01-05 16:01:26 +01:00
|
|
|
# Copyright (c) 2011 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
|
|
|
|
|
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
|
|
|
|
%define netsnmp_agentx_socket_dir_fhs /var/run/agentx
|
|
|
|
%define netsnmp_agentx_socket_dir_rfc /var/agentx
|
2010-06-21 18:02:26 +02:00
|
|
|
|
|
|
|
Name: net-snmp
|
2011-09-01 12:07:59 +02:00
|
|
|
Version: 5.7
|
2011-09-01 12:08:11 +02:00
|
|
|
Release: 1
|
2010-06-21 18:02:26 +02:00
|
|
|
License: BSD3c(or similar) ; MIT License (or similar)
|
|
|
|
Group: Productivity/Networking/Other
|
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
|
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
|
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
|
2008-11-02 15:44:27 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: net-snmp-64bit
|
|
|
|
%endif
|
|
|
|
#
|
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
|
2010-01-21 11:28:30 +01:00
|
|
|
Source9: baselibs.conf
|
2011-09-01 12:07:59 +02:00
|
|
|
%define patchdate 20110714
|
|
|
|
Patch0: net-snmp-%{version}-upstream-%{patchdate}.patch.bz2
|
2007-01-16 00:26:37 +01:00
|
|
|
# unused patch atm
|
2010-05-18 20:40:49 +02:00
|
|
|
Patch1: net-snmp-5.5.0-socket-path.patch
|
|
|
|
Patch2: net-snmp-5.5.0-testing-empty-arptable.patch
|
2011-09-01 12:07:59 +02:00
|
|
|
Patch3: net-snmp-5.7.0-pie.patch
|
2011-04-14 14:32:56 +02:00
|
|
|
Patch5: net-snmp-5.6.1-net-snmp-config-headercheck.patch
|
2010-05-18 20:40:49 +02:00
|
|
|
Patch6: net-snmp-5.5.0-perl-tk-warning.patch
|
2011-09-01 12:07:59 +02:00
|
|
|
Patch7: net-snmp-5.7.0-velocity-mib.patch
|
2007-01-16 00:26:37 +01:00
|
|
|
#
|
|
|
|
Summary: SNMP Daemon
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Wes Hardaker <hardaker@users.sourceforge.net>
|
|
|
|
|
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-01-21 11:28:30 +01:00
|
|
|
License: BSD3c(or similar) ; MIT License (or similar)
|
2008-09-08 16:23:32 +02:00
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
Requires: snmp-mibs = %{version}
|
2010-05-18 20:40:49 +02:00
|
|
|
Requires: perl-base = %{perl_version}
|
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
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2010-01-21 11:28:30 +01:00
|
|
|
License: BSD3c(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}
|
2010-01-21 11:28:30 +01:00
|
|
|
Requires: libopenssl-devel rpm-devel tcpd-devel perl 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
|
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
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Wes Hardaker <hardaker@users.sourceforge.net>
|
|
|
|
|
|
|
|
%package -n snmp-mibs
|
2010-01-21 11:28:30 +01:00
|
|
|
License: BSD3c(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
|
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
|
|
|
|
|
|
|
|
2007-01-16 00:26:37 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Wes Hardaker <hardaker@users.sourceforge.net>
|
|
|
|
|
2010-01-21 11:28:30 +01:00
|
|
|
%package -n perl-SNMP
|
|
|
|
License: GPLv2+
|
2007-01-16 00:26:37 +01:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
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
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
G.S. Marzot <gmarzot@nortelnetworks.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2010-04-07 21:00:21 +02:00
|
|
|
%patch0 -p1
|
2010-05-18 20:40:49 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -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
|
|
|
|
%{__make} all
|
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
|
|
|
|
%{__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
|
|
|
|
/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
|
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
|
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
|
|
|
|
%{_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
|
|
|
|
2007-08-06 18:48:47 +02:00
|
|
|
%changelog
|