X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=net-snmp.spec;h=6cc65a5d2d42648faaa03c3856634ef0f8aabb6d;hb=1e1c864bb1a06d1362928c94a7803ce5f0ea829b;hp=28e0ff1687e291d2f57d4a5b97c9a69e4dbf45ab;hpb=0e10a309447fc88ab8ec6c7f61bf8f5b903fad4b;p=packages%2Fnet-snmp.git diff --git a/net-snmp.spec b/net-snmp.spec index 28e0ff1..6cc65a5 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -18,6 +18,7 @@ %undefine with_lm_sensors %endif +%define so_version 25 %include /usr/lib/rpm/macros.perl Summary: A collection of SNMP protocol tools Summary(es.UTF-8): Agente SNMP de la UCD @@ -26,12 +27,12 @@ Summary(pt_BR.UTF-8): Agente SNMP da UCD Summary(ru.UTF-8): Набор утилит для протокола SNMP от UC-Davis Summary(uk.UTF-8): Набір утиліт для протоколу SNMP від UC-Davis Name: net-snmp -Version: 5.4.2.1 -Release: 17 +Version: 5.6.1 +Release: 2 License: BSD-like Group: Networking/Daemons -Source0: http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz -# Source0-md5: 984932520143f0c8bf7b7ce1fc9e1da1 +Source0: http://downloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz +# Source0-md5: b4e30ead5783b0bb1d280172c6095ea4 Source1: %{name}d.init Source2: %{name}d.conf Source3: %{name}d.sysconfig @@ -53,15 +54,9 @@ Patch9: %{name}-python.patch Patch10: %{name}-lvalue.patch Patch11: %{name}-defaultconfig.patch Patch12: %{name}-use-rpm-hrmib.patch -Patch13: %{name}-snmpnetstat-getbulk.patch -Patch14: %{name}-lm_sensors_3.patch -Patch15: %{name}-subcontainer.patch -Patch16: %{name}-netlink.patch -Patch17: %{name}-TCP_STATS_CACHE_TIMEOUT.patch -Patch18: %{name}-src-dst-confusion.patch -Patch19: %{name}-loadave-writable.patch +Patch13: %{name}-TCP_STATS_CACHE_TIMEOUT.patch URL: http://www.net-snmp.org/ -BuildRequires: autoconf >= 2.61-3 +BuildRequires: autoconf >= 2.63 BuildRequires: automake BuildRequires: elfutils-devel %{?with_kerberos5:BuildRequires: heimdal-devel} @@ -87,7 +82,7 @@ Requires(post,preun): /sbin/chkconfig Requires: %{name}-libs = %{version}-%{release} Requires: /usr/bin/setsid Requires: mibs-%{name} = %{version}-%{release} -Requires: rc-scripts >= 0.2.0 +Requires: rc-scripts >= 0.4.3.0 Provides: snmpd Obsoletes: cmu-snmp Obsoletes: snmpd @@ -170,6 +165,7 @@ Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} Requires: elfutils-devel %{?with_kerberos5:Requires: heimdal-devel} +Requires: libnl-devel >= 1:1.1 Requires: libwrap-devel %{?with_lm_sensors:Requires: lm_sensors-devel >= 3.0.1} Requires: openssl-devel >= 0.9.7c @@ -420,7 +416,6 @@ SNMP dla trzech wersji tego protokołu (SNMPv3, SNMPv2c, SNMPv1). %prep %setup -q -a7 -%patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 @@ -434,16 +429,10 @@ SNMP dla trzech wersji tego protokołu (SNMPv3, SNMPv2c, SNMPv1). %patch11 -p1 %patch12 -p1 %patch13 -p1 -%patch14 -p0 -%patch15 -p1 -%patch16 -p1 -%patch17 -p1 -%patch18 -p3 -%patch19 -p1 %build %{__libtoolize} -%{__aclocal} +%{__aclocal} -I m4 %{__autoconf} %{__autoheader} cp -f /usr/share/automake/config.sub . @@ -465,7 +454,7 @@ MIBS="$MIBS ucd-snmp/lmsensorsMib" --disable-debugging \ --enable-as-needed \ %{!?with_static_libs:--disable-static} \ - --with-cflags="%{rpmcflags} -I/usr/include/et" \ + --with-cflags="%{rpmcflags} %{rpmcppflags} -I/usr/include/et" \ --with-ldflags="%{rpmldflags}" \ --with-defaults \ --with-default-snmp-version=3 \ @@ -473,9 +462,10 @@ MIBS="$MIBS ucd-snmp/lmsensorsMib" %{!?with_kerberos5:--without-krb5} \ --with-openssl=%{_prefix} \ --with-libwrap=%{_prefix} \ - --with-logfile="%{logfile}" \ + --with-logfile=%{logfile} \ --with-zlib=%{_prefix} \ --with-bzip2=%{_prefix} \ + --with-nl \ --with%{!?with_perl:out}-perl-modules \ --with%{!?with_python:out}-python-modules \ --enable-local-smux \ @@ -488,16 +478,16 @@ MIBS="$MIBS ucd-snmp/lmsensorsMib" --with-persistent-directory="/var/lib/net-snmp" \ --enable-ucd-snmp-compatibility \ --enable-ipv6 \ + %{!?debug:--disable-debugging} \ --with%{!?with_rpm:out}-rpm %{__make} -j1 cd perl - %{__perl} Makefile.PL \ -NET-SNMP-IN-SOURCE=true \ INSTALLDIRS=vendor \ - OPTIMIZE="%{rpmcflags}" \ + OPTIMIZE="%{rpmcflags} %{rpmcppflags}" \ $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf :> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmp.conf :> $RPM_BUILD_ROOT%{logfile} -install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd -install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf -install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd +install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd +cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf +cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd -install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd -install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf -install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd +install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd +cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf +cp -a %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd cd perl %{__make} -j1 install \ DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version} -install SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version} +install -p SNMP/examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/perl-SNMP-%{version} cd .. # IP-Filter (non-Linux) @@ -613,10 +603,12 @@ fi %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/snmpd.local.conf %attr(755,root,root) %{_sbindir}/snmpd +%attr(755,root,root) %{_bindir}/net-snmp-create-v3-user %dir %{_libdir}/snmp %dir %{_libdir}/snmp/dlmod +%{_mandir}/man1/net-snmp-create-v3-user.1* %{_mandir}/man5/snmpd.conf.5* %{_mandir}/man5/snmpd.examples.5* %{_mandir}/man5/snmpd.internal.5* @@ -631,16 +623,16 @@ fi %defattr(644,root,root,755) %dir %{_sysconfdir}/snmp %dir %{_datadir}/snmp -%attr(755,root,root) %{_libdir}/libnetsnmp.so.*.* -%attr(755,root,root) %{_libdir}/libnetsnmpagent.so.*.* -%attr(755,root,root) %{_libdir}/libnetsnmphelpers.so.*.* -%attr(755,root,root) %{_libdir}/libnetsnmpmibs.so.*.* -%attr(755,root,root) %{_libdir}/libnetsnmptrapd.so.*.* -%attr(755,root,root) %ghost %{_libdir}/libnetsnmp.so.15 -%attr(755,root,root) %ghost %{_libdir}/libnetsnmpagent.so.15 -%attr(755,root,root) %ghost %{_libdir}/libnetsnmphelpers.so.15 -%attr(755,root,root) %ghost %{_libdir}/libnetsnmpmibs.so.15 -%attr(755,root,root) %ghost %{_libdir}/libnetsnmptrapd.so.15 +%attr(755,root,root) %{_libdir}/libnetsnmp.so.*.*.* +%attr(755,root,root) %{_libdir}/libnetsnmpagent.so.*.*.* +%attr(755,root,root) %{_libdir}/libnetsnmphelpers.so.*.*.* +%attr(755,root,root) %{_libdir}/libnetsnmpmibs.so.*.*.* +%attr(755,root,root) %{_libdir}/libnetsnmptrapd.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libnetsnmp.so.%{so_version} +%attr(755,root,root) %ghost %{_libdir}/libnetsnmpagent.so.%{so_version} +%attr(755,root,root) %ghost %{_libdir}/libnetsnmphelpers.so.%{so_version} +%attr(755,root,root) %ghost %{_libdir}/libnetsnmpmibs.so.%{so_version} +%attr(755,root,root) %ghost %{_libdir}/libnetsnmptrapd.so.%{so_version} %files devel %defattr(644,root,root,755) @@ -668,7 +660,11 @@ fi %if %{with static_libs} %files static %defattr(644,root,root,755) -%{_libdir}/libnet*.a +%{_libdir}/libnetsnmp.a +%{_libdir}/libnetsnmpagent.a +%{_libdir}/libnetsnmphelpers.a +%{_libdir}/libnetsnmpmibs.a +%{_libdir}/libnetsnmptrapd.a %endif %files compat-devel @@ -701,6 +697,7 @@ fi %files utils %defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/agentxtrap %attr(755,root,root) %{_bindir}/encode_keychange %attr(755,root,root) %{_bindir}/snmpbulkget %attr(755,root,root) %{_bindir}/snmpbulkwalk @@ -719,6 +716,7 @@ fi %attr(755,root,root) %{_bindir}/snmpusm %attr(755,root,root) %{_bindir}/snmpvacm %attr(755,root,root) %{_bindir}/snmpwalk +%{_mandir}/man1/agentxtrap.1* %{_mandir}/man1/encode_keychange.1* %{_mandir}/man1/snmpbulkget.1* %{_mandir}/man1/snmpbulkwalk.1* @@ -769,9 +767,12 @@ fi %files utils-perl %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/fixproc +%attr(755,root,root) %{_bindir}/net-snmp-cert +%attr(755,root,root) %{_bindir}/snmp-bridge-mib %attr(755,root,root) %{_bindir}/snmpcheck %attr(755,root,root) %{_bindir}/traptoemail %{_mandir}/man1/fixproc.1* +%{_mandir}/man1/snmp-bridge-mib.1* %{_mandir}/man1/traptoemail.1* %endif