Changed files:
net-snmp.spec -> 1.152
# - package or remove:
# %{_datadir}/snmp/snmp_perl.pl
# - make noarch -n mibs-net-snmp package, most of the files are same as libsmi packages
# - package or remove:
# %{_datadir}/snmp/snmp_perl.pl
# - make noarch -n mibs-net-snmp package, most of the files are same as libsmi packages
-# - make it scan for mibs (if not yet) in /usr/share/mibs (and legacy /usr/share/snmp/mibs)
+# - FHS: #define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
#
# Conditional build:
%bcond_without autodeps # don't BR packages only for deps resolving
#
# Conditional build:
%bcond_without autodeps # don't BR packages only for deps resolving
%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
%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
+
%include /usr/lib/rpm/macros.perl
Summary: A collection of SNMP protocol tools
Summary(es.UTF-8): Agente SNMP de la UCD
%include /usr/lib/rpm/macros.perl
Summary: A collection of SNMP protocol tools
Summary(es.UTF-8): Agente SNMP de la UCD
Summary(uk.UTF-8): Набір утиліт для протоколу SNMP від UC-Davis
Name: net-snmp
Version: 5.4.2.1
Summary(uk.UTF-8): Набір утиліт для протоколу SNMP від UC-Davis
Name: net-snmp
Version: 5.4.2.1
License: BSD-like
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
License: BSD-like
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
Requires: %{name}-libs = %{version}-%{release}
BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
Requires: %{name}-libs = %{version}-%{release}
-Requires: %{name}-mibs = %{version}-%{release}
+Requires: mibs-%{name} = %{version}-%{release}
Requires: /usr/bin/setsid
Requires: rc-scripts >= 0.2.0
Provides: snmpd
Requires: /usr/bin/setsid
Requires: rc-scripts >= 0.2.0
Provides: snmpd
Summary: NET SNMP libraries
Summary(pl.UTF-8): Biblioteki SNMP
Group: Libraries
Summary: NET SNMP libraries
Summary(pl.UTF-8): Biblioteki SNMP
Group: Libraries
Obsoletes: net-snmp-compat-libs
Obsoletes: ucd-snmp-libs
Obsoletes: net-snmp-compat-libs
Obsoletes: ucd-snmp-libs
%description compat-static -l pt_BR.UTF-8
Bibliotecas estáticas para desenvolvimento com ucd-snmp.
%description compat-static -l pt_BR.UTF-8
Bibliotecas estáticas para desenvolvimento com ucd-snmp.
-%package mibs
-Summary: MIB database
+%package -n mibs-net-snmp
+Summary: Net-SNMP provided MIBs
Summary(pl.UTF-8): Baza danych MIB
Group: Applications/System
Summary(pl.UTF-8): Baza danych MIB
Group: Applications/System
+Requires: mibs-dirs
+Obsoletes: net-snmp-mibs
-%description mibs
-MIB database.
+%description -n mibs-net-snmp
+Net-SNMP provided MIBs (Management Information Base).
-%description mibs -l pl.UTF-8
+%description -n mibs-net-snmp -l pl.UTF-8
Baza danych MIB.
%package snmptrapd
Baza danych MIB.
%package snmptrapd
Summary(uk.UTF-8): Утиліти керування мережею по SNMP з проекту NET-SNMP
Group: Applications/System
Requires: %{name}-libs = %{version}-%{release}
Summary(uk.UTF-8): Утиліти керування мережею по SNMP з проекту NET-SNMP
Group: Applications/System
Requires: %{name}-libs = %{version}-%{release}
-Requires: %{name}-mibs = %{version}-%{release}
+Requires: mibs-%{name} = %{version}-%{release}
Obsoletes: cmu-snmp-utils
Obsoletes: ucd-snmp-utils
Obsoletes: cmu-snmp-utils
Obsoletes: ucd-snmp-utils
%{__autoconf}
%{__autoheader}
cp -f /usr/share/automake/config.sub .
%{__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
+
%configure \
--disable-debugging \
--enable-as-needed \
%configure \
--disable-debugging \
--enable-as-needed \
--with%{!?with_perl:out}-perl-modules \
--with%{!?with_python:out}-python-modules \
--enable-local-smux \
--with%{!?with_perl:out}-perl-modules \
--with%{!?with_python:out}-python-modules \
--enable-local-smux \
- --with-mib-modules="host agentx smux mibII/mta_sendmail \
-%ifarch %{ix86} %{x8664}
-%if %{with lm_sensors}
- ucd-snmp/lmsensorsMib \
-%endif
-%endif
- disman/event disman/schedule ucd-snmp/diskio \
- target misc/ipfwacc" \
+ --with-mibdirs='$HOME/.snmp/mibs:/usr/share/mibs:%{_datadir}/snmp/mibs' \
+ --with-mib-modules="$MIBS" \
%{?with_kerberos5:--with-security-modules="ksm"} \
--with-sys-contact="root@localhost" \
--with-sys-location="Unknown" \
%{?with_kerberos5:--with-security-modules="ksm"} \
--with-sys-contact="root@localhost" \
--with-sys-location="Unknown" \
install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,snmp},/var/log,/var/lib/net-snmp,%{_libdir}/snmp/dlmod}
%{__make} -j1 install \
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
install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
DESTDIR=$RPM_BUILD_ROOT
install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
-#install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
-# $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
-
cd perl
%{__make} -j1 install \
DESTDIR=$RPM_BUILD_ROOT
cd perl
%{__make} -j1 install \
DESTDIR=$RPM_BUILD_ROOT
%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/*.py
%endif
%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/netsnmp/*.py
%endif
-touch $RPM_BUILD_ROOT%{_datadir}/snmp/mibs/.index
-
%clean
rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%{_libdir}/libsnmp.a
%endif
%{_libdir}/libsnmp.a
%endif
%defattr(644,root,root,755)
%defattr(644,root,root,755)
-%dir %{_datadir}/snmp
-%dir %{_datadir}/snmp/mibs
-%{_datadir}/snmp/mibs/*.txt
-%ghost %{_datadir}/snmp/mibs/.index
%files snmptrapd
%defattr(644,root,root,755)
%files snmptrapd
%defattr(644,root,root,755)