commit net-snmp for openSUSE:Factory

2020-07-26 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2020-07-26 16:16:55

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new.3592 (New)


Package is "net-snmp"

Sun Jul 26 16:16:55 2020 rev:92 rq:822087 version:5.8

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2020-04-15 
20:08:01.934167883 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new.3592/net-snmp.changes  
2020-07-26 16:17:57.780730796 +0200
@@ -1,0 +2,6 @@
+Mon Jun 29 17:20:01 UTC 2020 - Alexander van Kaam 
+
+- Change /etc/logrotate.d/net-snmp from init.d to systemd
+  fix boo#1173487.
+
+---



Other differences:
--
++ net-snmp.logrotate ++
--- /var/tmp/diff_new_pack.1TEV9b/_old  2020-07-26 16:17:59.368732281 +0200
+++ /var/tmp/diff_new_pack.1TEV9b/_new  2020-07-26 16:17:59.368732281 +0200
@@ -10,10 +10,8 @@
su root root
sharedscripts
postrotate
-   /etc/init.d/snmpd reload ||:
-   if [ -x /etc/init.d/snmptrapd ] ; then \
-  /etc/init.d/snmptrapd reload ||: ; \
-   fi
+   /usr/bin/systemctl try-restart snmpd.service >/dev/null
+   /usr/bin/systemctl try-restart snmptrapd.service >/dev/null 
endscript
 
 }




commit net-snmp for openSUSE:Factory

2020-04-15 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2020-04-15 20:06:17

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new.2738 (New)


Package is "net-snmp"

Wed Apr 15 20:06:17 2020 rev:91 rq:792719 version:5.8

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2019-08-05 
11:17:37.854529478 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new.2738/net-snmp.changes  
2020-04-15 20:08:01.934167883 +0200
@@ -1,0 +2,5 @@
+Tue Mar 31 11:56:24 UTC 2020 - Martin Liška 
+
+- Add -fcommon in order to fix boo#1160404.
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.AVPy6Q/_old  2020-04-15 20:08:02.858168511 +0200
+++ /var/tmp/diff_new_pack.AVPy6Q/_new  2020-04-15 20:08:02.862168514 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package net-snmp
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -35,7 +35,7 @@
 Summary:SNMP Daemon
 License:BSD-3-Clause AND MIT
 Group:  Productivity/Networking/Other
-Url:http://sourceforge.net/projects/net-snmp
+URL:http://sourceforge.net/projects/net-snmp
 Source: 
http://sourceforge.net/projects/net-snmp/files/net-snmp/%{version}/%{name}-%{version}.tar.gz
 Source1:snmpd.service
 Source2:snmpd.conf
@@ -222,7 +222,7 @@
--with-sys-contact="root@localhost" \
--with-sys-location="unknown" \
--with-mib-modules="$MIBS" \
-   --with-cflags="%{optflags}" \
+   --with-cflags="%{optflags} -fcommon" \
 --with-ldflags="-Wl,-z,relro -Wl,-z,now" \
--with-persistent-directory="%{_localstatedir}/lib/net-snmp" \
--with-agentx-socket="%{netsnmp_agentx_socket_dir_fhs}/master" \




commit net-snmp for openSUSE:Factory

2019-08-05 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2019-08-05 11:17:35

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new.4126 (New)


Package is "net-snmp"

Mon Aug  5 11:17:35 2019 rev:90 rq:713858 version:5.8

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2019-03-12 
09:49:36.675583552 +0100
+++ /work/SRC/openSUSE:Factory/.net-snmp.new.4126/net-snmp.changes  
2019-08-05 11:17:37.854529478 +0200
@@ -1,0 +2,6 @@
+Thu Jul  4 08:06:47 UTC 2019 - abergm...@suse.com
+
+- Add Lustre filesystem support (bsc#1140341).
+  Add net-snmp-5.8-add-lustre-fs-support.patch
+
+---

New:

  net-snmp-5.8-add-lustre-fs-support.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.AentHl/_old  2019-08-05 11:17:38.726529120 +0200
+++ /var/tmp/diff_new_pack.AentHl/_new  2019-08-05 11:17:38.726529120 +0200
@@ -59,6 +59,7 @@
 Patch9: net-snmp-5.8-fix-Makefile.PL.patch
 Patch10:net-snmp-5.8-modern-rpm-api.patch
 Patch11:net-snmp-5.8-fix-python3.patch
+Patch12:net-snmp-5.8-add-lustre-fs-support.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  autoconf

++ net-snmp-5.8-add-lustre-fs-support.patch ++
diff -Nurp net-snmp-5.8-orig/agent/mibgroup/hardware/fsys/fsys_mntent.c 
net-snmp-5.8/agent/mibgroup/hardware/fsys/fsys_mntent.c
--- net-snmp-5.8-orig/agent/mibgroup/hardware/fsys/fsys_mntent.c
2018-07-16 16:33:40.0 +0200
+++ net-snmp-5.8/agent/mibgroup/hardware/fsys/fsys_mntent.c 2019-07-04 
10:03:38.611004672 +0200
@@ -144,6 +144,7 @@ _fsys_type( char *typename )
   !strcmp(typename, MNTTYPE_CVFS) ||
   !strcmp(typename, MNTTYPE_SIMFS) ||
   !strcmp(typename, MNTTYPE_BTRFS) ||
+  !strcmp(typename, MNTTYPE_LUSTRE) ||
   !strcmp(typename, MNTTYPE_ZFS) ||
   !strcmp(typename, MNTTYPE_NVMFS) ||
   !strcmp(typename, MNTTYPE_ACFS) ||
diff -Nurp net-snmp-5.8-orig/agent/mibgroup/hardware/fsys/mnttypes.h 
net-snmp-5.8/agent/mibgroup/hardware/fsys/mnttypes.h
--- net-snmp-5.8-orig/agent/mibgroup/hardware/fsys/mnttypes.h   2018-07-16 
16:33:40.0 +0200
+++ net-snmp-5.8/agent/mibgroup/hardware/fsys/mnttypes.h2019-07-04 
10:04:25.607004626 +0200
@@ -148,6 +148,9 @@
 #ifndef MNTTYPE_BTRFS
 #define MNTTYPE_BTRFS "btrfs"
 #endif
+#ifndef MNTTYPE_LUSTRE
+#define MNTTYPE_LUSTRE"lustre"
+#endif
 #ifndef MNTTYPE_ZFS
 #define MNTTYPE_ZFS   "zfs"
 #endif



commit net-snmp for openSUSE:Factory

2019-03-12 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2019-03-12 09:49:34

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new.28833 (New)


Package is "net-snmp"

Tue Mar 12 09:49:34 2019 rev:89 rq:683525 version:5.8

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2018-10-25 
08:11:10.752233714 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new.28833/net-snmp.changes 
2019-03-12 09:49:36.675583552 +0100
@@ -1,0 +2,5 @@
+Wed Mar  6 10:21:17 UTC 2019 - abergm...@suse.com
+
+- Remove FIRST_ARG usage from spec file (bsc#1126426). 
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.YKr6DI/_old  2019-03-12 09:49:38.415583205 +0100
+++ /var/tmp/diff_new_pack.YKr6DI/_new  2019-03-12 09:49:38.415583205 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package net-snmp
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -286,7 +286,6 @@
 %service_add_pre snmpd.service snmptrapd.service
 
 %post
-/sbin/chkconfig -c snmpd 2> /dev/null && FIRST_ARG=2
 %fillup_only snmpd
 %fillup_only snmptrapd
 %tmpfiles_create %{_tmpfilesdir}/net-snmp.conf




commit net-snmp for openSUSE:Factory

2018-10-25 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2018-10-25 08:11:05

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Thu Oct 25 08:11:05 2018 rev:88 rq:642087 version:5.8

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2018-10-12 
13:07:58.723531992 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2018-10-25 
08:11:10.752233714 +0200
@@ -1,0 +2,42 @@
+Wed Oct 10 20:22:35 UTC 2018 - abergm...@suse.com
+
+- Update to net-snmp-5.8.
+  Fixes included:
+  * Fix remote DoS in agent/helpers/table.c (bsc#122, CVE-2018-18065)
+  * Fix agentx freezing on timeout (bsc#1027353)
+  * swintst_rpm: Protect against unspecified Group name (bsc#1102775)
+- Add tsm and tlstm MIBs and the USM security module. (bsc#1081164)
+- Rename and refactor patches and remove those that are already included
+  inside the new version.
+  Added:
+  * net-snmp-5.8-socket-path.patch
+  * net-snmp-5.8-testing-empty-arptable.patch
+  * net-snmp-5.8-pie.patch
+  * net-snmp-5.8-net-snmp-config-headercheck.patch
+  * net-snmp-5.8-perl-tk-warning.patch
+  * net-snmp-5.8-velocity-mib.patch
+  * net-snmp-5.8-netgroups.patch
+  * net-snmp-5.8-snmpstatus-suppress-output.patch
+  * net-snmp-5.8-fix-Makefile.PL.patch
+  * net-snmp-5.8-modern-rpm-api.patch
+  * net-snmp-5.8-fix-python3.patch
+  Removed:
+  * net-snmp-5.7.3-socket-path.patch
+  * net-snmp-5.7.3-testing-empty-arptable.patch
+  * net-snmp-5.7.3-pie.patch
+  * net-snmp-5.7.3-net-snmp-config-headercheck.patch
+  * net-snmp-5.7.3-perl-tk-warning.patch
+  * net-snmp-5.7.3-velocity-mib.patch
+  * net-snmp-5.7.3-fix-snmpd-crashing-when-an-agentx-disconnects.patch
+  * net-snmp-5.7.3-netgroups.patch
+  * net-snmp-5.7.3-snmpstatus-suppress-output.patch
+  * net-snmp-5.7.3-fix-snmp_pdu_parse-incomplete.patch
+  * net-snmp-5.7.3-Remove-U64-typedef.patch
+  * net-snmp-5.7.3-Fix-Makefile.PL.patch
+  * net-snmp-5.7.3-build-with-openssl-1.1.patch
+  * net-snmp-5.7.3-modern-rpm-api.patch
+  * net-snmp-python3.patch
+  * net-snmp-5.7.2-systemd.patch
+  * net-snmp-5.7.3-helpers-table-skip-if-next-handler-called.patch
+
+---

Old:

  net-snmp-5.7.2-systemd.patch
  net-snmp-5.7.3-Fix-Makefile.PL.patch
  net-snmp-5.7.3-Remove-U64-typedef.patch
  net-snmp-5.7.3-build-with-openssl-1.1.patch
  net-snmp-5.7.3-fix-snmp_pdu_parse-incomplete.patch
  net-snmp-5.7.3-fix-snmpd-crashing-when-an-agentx-disconnects.patch
  net-snmp-5.7.3-helpers-table-skip-if-next-handler-called.patch
  net-snmp-5.7.3-modern-rpm-api.patch
  net-snmp-5.7.3-net-snmp-config-headercheck.patch
  net-snmp-5.7.3-netgroups.patch
  net-snmp-5.7.3-perl-tk-warning.patch
  net-snmp-5.7.3-pie.patch
  net-snmp-5.7.3-snmpstatus-suppress-output.patch
  net-snmp-5.7.3-socket-path.patch
  net-snmp-5.7.3-testing-empty-arptable.patch
  net-snmp-5.7.3-velocity-mib.patch
  net-snmp-5.7.3.tar.gz
  net-snmp-python3.patch

New:

  net-snmp-5.8-fix-Makefile.PL.patch
  net-snmp-5.8-fix-python3.patch
  net-snmp-5.8-modern-rpm-api.patch
  net-snmp-5.8-net-snmp-config-headercheck.patch
  net-snmp-5.8-netgroups.patch
  net-snmp-5.8-perl-tk-warning.patch
  net-snmp-5.8-pie.patch
  net-snmp-5.8-snmpstatus-suppress-output.patch
  net-snmp-5.8-socket-path.patch
  net-snmp-5.8-testing-empty-arptable.patch
  net-snmp-5.8-velocity-mib.patch
  net-snmp-5.8.tar.gz



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.B0rSAK/_old  2018-10-25 08:11:11.692233099 +0200
+++ /var/tmp/diff_new_pack.B0rSAK/_new  2018-10-25 08:11:11.692233099 +0200
@@ -30,7 +30,7 @@
 %define libname libsnmp30
 %bcond_without python2
 Name:   net-snmp
-Version:5.7.3
+Version:5.8
 Release:0
 Summary:SNMP Daemon
 License:BSD-3-Clause AND MIT
@@ -48,23 +48,17 @@
 Source20:   net-snmp-tmpfs.conf
 Source98:   net-snmp-rpmlintrc
 Source99:   baselibs.conf
-Patch1: net-snmp-5.7.3-socket-path.patch
-Patch2: net-snmp-5.7.3-testing-empty-arptable.patch
-Patch3: net-snmp-5.7.3-pie.patch
-Patch4: net-snmp-5.7.3-net-snmp-config-headercheck.patch
-Patch5: net-snmp-5.7.3-perl-tk-warning.patch
-Patch6: net-snmp-5.7.3-velocity-mib.patch
-Patch7: 
net-snmp-5.7.3-fix-snmpd-crashing-when-an-agentx-disconnects.patch
-Patch8: net-snmp-5.7.3-netgroups.patch
-Patch9: net-snmp-5.7.3-snmpstatus-suppress-output.patch
-Patch10:net-snmp-5.7.3-fix-snmp_pdu_parse-incomplete.patch
-Patch11:net-snmp-5.7.3-Remove-U64-typedef.patch
-Patch12:

commit net-snmp for openSUSE:Factory

2018-10-12 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2018-10-12 13:07:55

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Fri Oct 12 13:07:55 2018 rev:87 rq:640769 version:5.7.3

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2018-06-25 
11:34:34.398815957 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2018-10-12 
13:07:58.723531992 +0200
@@ -1,0 +2,6 @@
+Mon Oct  8 23:44:37 UTC 2018 - abergm...@suse.com
+
+- Fix remote DoS in agent/helpers/table.c (bsc#122, CVE-2018-18065)
+  Add net-snmp-5.7.3-helpers-table-skip-if-next-handler-called.patch
+
+---

New:

  net-snmp-5.7.3-helpers-table-skip-if-next-handler-called.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.9TKAc0/_old  2018-10-12 13:08:00.443529535 +0200
+++ /var/tmp/diff_new_pack.9TKAc0/_new  2018-10-12 13:08:00.451529523 +0200
@@ -64,6 +64,7 @@
 Patch14:net-snmp-5.7.3-modern-rpm-api.patch
 Patch15:net-snmp-python3.patch
 Patch16:net-snmp-5.7.2-systemd.patch
+Patch17:net-snmp-5.7.3-helpers-table-skip-if-next-handler-called.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  autoconf

++ net-snmp-5.7.3-helpers-table-skip-if-next-handler-called.patch ++
diff -Nurp net-snmp-5.7.3-orig/agent/helpers/table.c 
net-snmp-5.7.3/agent/helpers/table.c
--- net-snmp-5.7.3-orig/agent/helpers/table.c   2014-12-08 21:23:22.0 
+0100
+++ net-snmp-5.7.3/agent/helpers/table.c2018-10-09 00:54:37.410522720 
+0200
@@ -406,6 +406,8 @@ table_helper_handler(netsnmp_mib_handler
 if (reqinfo->mode == MODE_GET)
 table_helper_cleanup(reqinfo, request,
  SNMP_NOSUCHOBJECT);
+else
+request->processed = 1; /* skip if next handler called */
 continue;
 }
 
@@ -483,6 +485,8 @@ table_helper_handler(netsnmp_mib_handler
 #endif /* NETSNMP_NO_WRITE_SUPPORT */
 table_helper_cleanup(reqinfo, request,
  SNMP_NOSUCHOBJECT);
+else
+request->processed = 1; /* skip if next handler called */
 continue;
 }
 /*



commit net-snmp for openSUSE:Factory

2018-06-25 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2018-06-25 11:34:32

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Mon Jun 25 11:34:32 2018 rev:86 rq:618442 version:5.7.3

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2018-04-26 
13:33:13.386652112 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2018-06-25 
11:34:34.398815957 +0200
@@ -1,0 +2,6 @@
+Mon Jun 18 13:50:35 CEST 2018 - ku...@suse.de
+
+- Create /var/agentx via systemd tmpfiles in case of rollback,
+  snapshots and transactional updates [bsc#1098032]
+
+---



Other differences:
--
++ net-snmp-tmpfs.conf ++
--- /var/tmp/diff_new_pack.dsmyKt/_old  2018-06-25 11:34:35.506775062 +0200
+++ /var/tmp/diff_new_pack.dsmyKt/_new  2018-06-25 11:34:35.510774915 +0200
@@ -1 +1,2 @@
 d  /var/run/net-snmp   0755rootroot
+L  /var/agentx -   -   -   -   /run/agentx




commit net-snmp for openSUSE:Factory

2018-04-26 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2018-04-26 13:33:09

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Thu Apr 26 13:33:09 2018 rev:85 rq:599143 version:5.7.3

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2018-02-02 
22:21:06.785150408 +0100
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2018-04-26 
13:33:13.386652112 +0200
@@ -1,0 +2,11 @@
+Wed Apr 18 12:04:14 UTC 2018 - tchva...@suse.com
+
+- Fix permissions on unit files wrt bsc#1087977
+- Use %license (boo#1082318)
+
+---
+Mon Apr 16 15:03:50 UTC 2018 - abergm...@suse.com
+
+- Remove executable flags from systemd service files (bsc#1089295).
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.oMd5Ij/_old  2018-04-26 13:33:14.590608001 +0200
+++ /var/tmp/diff_new_pack.oMd5Ij/_new  2018-04-26 13:33:14.590608001 +0200
@@ -79,10 +79,10 @@
 Requires:   perl-SNMP = %{version}
 Requires:   perl-TermReadKey
 Requires(post): %fillup_prereq
+%{?systemd_requires}
 %if 0%{?netsnmp_with_sensors}
 BuildRequires:  libsensors4-devel
 %endif
-%{?systemd_requires}
 
 %description
 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c
@@ -173,7 +173,7 @@
 
 %package -n perl-SNMP
 Summary:Perl5 SNMP Extension Module
-License:GPL-2.0+
+License:GPL-2.0-or-later
 Group:  Development/Libraries/Perl
 Requires:   %{name} = %{version}
 Requires:   perl-base = %{perl_version}
@@ -229,7 +229,7 @@
 --with-ldflags="-Wl,-z,relro -Wl,-z,now" \
--with-persistent-directory="%{_localstatedir}/lib/net-snmp" \
--with-agentx-socket="%{netsnmp_agentx_socket_dir_fhs}/master" \
---with-temp-file-pattern=/var/run/net-snmp/snmp-tmp-XX \
+
--with-temp-file-pattern=%{_localstatedir}/run/net-snmp/snmp-tmp-XX \
--with-logfile="%{netsnmp_logfile}" \
--with-libwrap="%{_prefix}" \
--with-perl-modules="INSTALLDIRS=vendor" \
@@ -255,8 +255,8 @@
 %install
 %make_install INSTALL_PREFIX=%{buildroot}
 install -Dd %{buildroot}%{_localstatedir}/log 
%{buildroot}%{_localstatedir}/lib/net-snmp 
%{buildroot}%{_libexecdir}/net-snmp/agents 
%{buildroot}%{netsnmp_agentx_socket_dir_fhs}
-install -D -m 0755 %{SOURCE1} %{buildroot}%{_unitdir}/snmpd.service
-install -D -m 0755 %{SOURCE4} %{buildroot}%{_unitdir}/snmptrapd.service
+install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/snmpd.service
+install -D -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/snmptrapd.service
 install -D -m 0600 %{SOURCE2} %{buildroot}%{_sysconfdir}/snmp/snmpd.conf
 install -m 0644 %{SOURCE3} .
 install -m 0644 %{SOURCE4} .
@@ -279,8 +279,8 @@
 install -D -m 0644 %{SOURCE10} %{buildroot}%{_fillupdir}/sysconfig.snmpd
 install -D -m 0644 %{SOURCE11} %{buildroot}%{_fillupdir}/sysconfig.snmptrapd
 # tmpfiles
-install -m 755 -d $RPM_BUILD_ROOT/%{_tmpfilesdir}
-install -m 644 %SOURCE20 $RPM_BUILD_ROOT/%{_tmpfilesdir}/net-snmp.conf
+install -m 755 -d %{buildroot}/%{_tmpfilesdir}
+install -m 644 %SOURCE20 %{buildroot}/%{_tmpfilesdir}/net-snmp.conf
 #
 ln -s -f %{netsnmp_agentx_socket_dir_fhs} 
%{buildroot}%{netsnmp_agentx_socket_dir_rfc}
 #
@@ -306,7 +306,8 @@
 %postun -n %{libname} -p /sbin/ldconfig
 
 %files
-%doc AGENT.txt COPYING EXAMPLE.conf EXAMPLE.conf.def
+%license COPYING
+%doc AGENT.txt EXAMPLE.conf EXAMPLE.conf.def
 %doc FAQ NEWS TODO CHANGES
 %doc README README.agent-mibs README.agentx README.krb5 README.snmpv3 
README.thread
 %dir %{_sysconfdir}/snmp




commit net-snmp for openSUSE:Factory

2018-02-02 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2018-02-02 22:21:04

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Fri Feb  2 22:21:04 2018 rev:84 rq:571968 version:5.7.3

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2017-12-21 
11:23:45.491889719 +0100
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2018-02-02 
22:21:06.785150408 +0100
@@ -1,0 +2,37 @@
+Thu Feb  1 23:15:44 UTC 2018 - jeng...@inai.de
+
+- Fix RPM group for shlib subpackage.
+
+---
+Wed Jan 24 14:07:16 UTC 2018 - tchva...@suse.com
+
+- Properly conditionalize the py2 build
+
+---
+Wed Jan 24 13:09:36 UTC 2018 - tchva...@suse.com
+
+- Add patch from Fedora to support natively systemd:
+  * net-snmp-5.7.2-systemd.patch
+- Drop the check phase as whole 90% of the tests fail it makes
+  more sense to run them somewhere localy
+
+---
+Mon Jan 22 12:24:33 UTC 2018 - tchva...@suse.com
+
+- Take systemd service files from fedora to replace sysV scripts
+- Also convert the sysconfig files to match fedora ones, they
+  get bit more terse but it works seamlessly with systemd
+
+---
+Fri Jan 19 17:36:38 UTC 2018 - tchva...@suse.com
+
+- Format with spec-cleaner
+- Drop sle11 support as it fails to build anyway for ages
+- Rename python packages to be python-%{name} with obsoletes
+  * Use new singlespec macros
+  * Add patch converting the py files to python3/2 compat mode
+net-snmp-python3.patch
+- Run full autoreconf instead of partial
+- Build with threads by building few targets first
+
+---

Old:

  net-snmp.sysconfig
  rc.snmpd
  rc.snmptrapd

New:

  net-snmp-5.7.2-systemd.patch
  net-snmp-python3.patch
  net-snmp-tmpfs.conf
  snmpd.service
  snmpd.sysconfig
  snmptrapd.service
  snmptrapd.sysconfig



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.AEDqol/_old  2018-02-02 22:21:08.373076275 +0100
+++ /var/tmp/diff_new_pack.AEDqol/_new  2018-02-02 22:21:08.377076088 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package net-snmp
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,58 +16,38 @@
 #
 
 
-#Compat macro for new _fillupdir macro introduced in Nov 2017
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define netsnmp_logfile %{_localstatedir}/log/net-snmpd.log
+%define netsnmp_agentx_socket_dir_fhs %{_rundir}/agentx
+%define netsnmp_agentx_socket_dir_rfc %{_localstatedir}/agentx
+# Compat macro for new _fillupdir macro introduced in Nov 2017
 %if ! %{defined _fillupdir}
-  %define _fillupdir /var/adm/fillup-templates
+  %define _fillupdir %{_localstatedir}/adm/fillup-templates
 %endif
-
-# 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))")}
-
-%define pkg_name net-snmp
 %ifnarch s390 s390x
 %define netsnmp_with_sensors 1
 %endif
-%define netsnmp_check 1
-%define netsnmp_logfile /var/log/net-snmpd.log
-%if ! %{defined _rundir}
-%define _rundir %{_localstatedir}/run
-%endif
-%define netsnmp_agentx_socket_dir_fhs %{_rundir}/agentx
-%define netsnmp_agentx_socket_dir_rfc /var/agentx
-
+%define libname libsnmp30
+%bcond_without python2
 Name:   net-snmp
 Version:5.7.3
 Release:0
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  autoconf
-BuildRequires:  automake
-BuildRequires:  openssl-devel
-BuildRequires:  procps
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-BuildRequires:  rpm-devel
-BuildRequires:  tcpd-devel
-%if 0%{?netsnmp_with_sensors}
-BuildRequires:  libsensors4-devel
-%endif
-Requires:   logrotate
-Requires:   perl-SNMP = %{version}
-Requires:   perl-TermReadKey
-PreReq: %insserv_prereq %fillup_prereq /sbin/chkconfig
+Summary:SNMP Daemon
+License:BSD-3-Clause AND MIT
+Group:  Productivity/Networking/Other
 Url:

commit net-snmp for openSUSE:Factory

2017-12-21 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2017-12-21 11:23:35

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Thu Dec 21 11:23:35 2017 rev:83 rq:55 version:5.7.3

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2017-11-25 
08:41:26.804907768 +0100
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2017-12-21 
11:23:45.491889719 +0100
@@ -1,0 +2,7 @@
+Mon Dec 11 17:14:43 UTC 2017 - dims...@opensuse.org
+
+- Add net-snmp-5.7.3-modern-rpm-api.patch: Supprt modern RPM (>=
+  4.6) API. In RPM 4.14, the RPM 4.4 compatibility APIs are being
+  removed.
+
+---

New:

  net-snmp-5.7.3-modern-rpm-api.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.Dj7eEe/_old  2017-12-21 11:23:46.431843887 +0100
+++ /var/tmp/diff_new_pack.Dj7eEe/_new  2017-12-21 11:23:46.431843887 +0100
@@ -81,6 +81,7 @@
 Patch11:net-snmp-5.7.3-Remove-U64-typedef.patch
 Patch12:net-snmp-5.7.3-Fix-Makefile.PL.patch
 Patch13:net-snmp-5.7.3-build-with-openssl-1.1.patch
+Patch14:net-snmp-5.7.3-modern-rpm-api.patch
 #
 Summary:SNMP Daemon
 License:BSD-3-Clause and MIT
@@ -219,6 +220,7 @@
 %patch11 -p1
 %patch12 -p1
 %patch13 -p1
+%patch14 -p1
 
 %build
 MIBS="misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ net-snmp-5.7.3-modern-rpm-api.patch ++
diff -uNr net-snmp-5.7.3.orig/agent/mibgroup/host/data_access/swinst_rpm.c 
net-snmp-5.7.3/agent/mibgroup/host/data_access/swinst_rpm.c
--- net-snmp-5.7.3.orig/agent/mibgroup/host/data_access/swinst_rpm.c
2014-12-08 21:23:22.0 +0100
+++ net-snmp-5.7.3/agent/mibgroup/host/data_access/swinst_rpm.c 2017-08-11 
00:16:35.232470439 +0200
@@ -96,8 +96,7 @@
 
 rpmdbMatchIteratormi;
 Headerh;
-char *n, *v, *r, *g;
-int32_t  *t;
+const char   *n, *v, *r, *g;
 time_tinstall_time;
 size_tdate_len;
 int   i = 1;
@@ -119,11 +118,11 @@
 CONTAINER_INSERT(container, entry);
 
 h = headerLink( h );
-headerGetEntry( h, RPMTAG_NAME,NULL, (void**), NULL);
-headerGetEntry( h, RPMTAG_VERSION, NULL, (void**), NULL);
-headerGetEntry( h, RPMTAG_RELEASE, NULL, (void**), NULL);
-headerGetEntry( h, RPMTAG_GROUP,   NULL, (void**), NULL);
-headerGetEntry( h, RPMTAG_INSTALLTIME, NULL, (void**), NULL);
+n = headerGetString( h, RPMTAG_NAME);
+v = headerGetString( h, RPMTAG_VERSION);
+r = headerGetString( h, RPMTAG_RELEASE);
+g = headerGetString( h, RPMTAG_GROUP);
+install_time = headerGetNumber( h, RPMTAG_INSTALLTIME);
 
 entry->swName_len = snprintf( entry->swName, sizeof(entry->swName),
   "%s-%s-%s", n, v, r);
@@ -133,7 +132,6 @@
 ? 2  /* operatingSystem */
 : 4; /*  application*/
 
-install_time = *t;
 dt = date_n_time( _time, _len );
 if (date_len != 8 && date_len != 11) {
 snmp_log(LOG_ERR, "Bogus length from date_n_time for %s", 
entry->swName);
diff -uNr net-snmp-5.7.3.orig/agent/mibgroup/host/hr_swinst.c 
net-snmp-5.7.3/agent/mibgroup/host/hr_swinst.c
--- net-snmp-5.7.3.orig/agent/mibgroup/host/hr_swinst.c 2014-12-08 
21:23:22.0 +0100
+++ net-snmp-5.7.3/agent/mibgroup/host/hr_swinst.c  2017-08-11 
00:17:07.488544492 +0200
@@ -484,9 +484,9 @@
 }
 #else
 # ifdef HAVE_LIBRPM
-char *rpm_groups;
-if ( headerGetEntry(swi->swi_h, RPMTAG_GROUP, NULL, (void **) 
_groups, NULL) ) {
-if ( strstr(rpm_groups, "System Environment") != NULL )
+const char *rpm_group = headerGetString(swi->swi_h, RPMTAG_GROUP);
+if ( NULL != rpm_group ) {
+if ( strstr(rpm_group, "System Environment") != NULL )
 long_return = 2;   /* operatingSystem */
 else
 long_return = 4;   /* applcation */
@@ -503,9 +503,8 @@
 case HRSWINST_DATE:
 {
 #ifdef HAVE_LIBRPM
-int32_t *rpm_data;
-if ( headerGetEntry(swi->swi_h, RPMTAG_INSTALLTIME, NULL, (void 
**) _data, NULL) ) {
-time_t  installTime = *rpm_data;
+time_t installTime = headerGetNumber(swi->swi_h, 
RPMTAG_INSTALLTIME);
+if ( 0 != installTime) {
 ret = 

commit net-snmp for openSUSE:Factory

2017-11-24 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2017-11-25 08:41:23

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Sat Nov 25 08:41:23 2017 rev:82 rq:544977 version:5.7.3

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2017-06-21 
13:52:02.986888617 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2017-11-25 
08:41:26.804907768 +0100
@@ -1,0 +2,6 @@
+Thu Nov 23 13:46:24 UTC 2017 - rbr...@suse.com
+
+- Replace references to /var/adm/fillup-templates with new 
+  %_fillupdir macro (boo#1069468)
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.Xt8dM7/_old  2017-11-25 08:41:27.912867400 +0100
+++ /var/tmp/diff_new_pack.Xt8dM7/_new  2017-11-25 08:41:27.916867254 +0100
@@ -16,6 +16,11 @@
 #
 
 
+#Compat macro for new _fillupdir macro introduced in Nov 2017
+%if ! %{defined _fillupdir}
+  %define _fillupdir /var/adm/fillup-templates
+%endif
+
 # 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))")}
@@ -291,7 +296,7 @@
 %{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}
+%{buildroot}%{_fillupdir}/sysconfig.%{pkg_name}
 #
 %{__ln_s} -f %{netsnmp_agentx_socket_dir_fhs} 
%{buildroot}%{netsnmp_agentx_socket_dir_rfc}
 #
@@ -360,7 +365,7 @@
 %dir %ghost %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}
+%{_fillupdir}/sysconfig.%{pkg_name}
 %{netsnmp_agentx_socket_dir_rfc}
 %{_datadir}/snmp/snmpconf-data/
 %{_datadir}/snmp/snmp_perl.pl




commit net-snmp for openSUSE:Factory

2017-06-21 Thread root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2017-06-21 13:52:01

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Wed Jun 21 13:52:01 2017 rev:81 rq:504649 version:5.7.3

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2016-05-31 
12:08:27.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2017-06-21 
13:52:02.986888617 +0200
@@ -1,0 +2,12 @@
+Tue Jun 13 10:07:45 UTC 2017 - daniel.molken...@suse.com
+
+- Fix build with OpenSSL 1.1 (bsc#1042664):
+  + Add net-snmp-5.7.3-build-with-openssl-1.1.patch, cumulated
+squash-patch from the following upstream commits:
+  bbed6b86e70b5a3c54f14992696f2308a8d79511
+  14bb72fd12bf5b68662893f7d8afbc4a8d52a6c8
+  9641b472ef01208f92631016e91b0a4a518163f0
+  e4c6937483d4a680570cec05388d2e4b291868a6
+  b906c60c8a436d7360267a6d242526b33a9aaac8
+
+---

New:

  net-snmp-5.7.3-build-with-openssl-1.1.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.fqU4ft/_old  2017-06-21 13:52:04.502674799 +0200
+++ /var/tmp/diff_new_pack.fqU4ft/_new  2017-06-21 13:52:04.506674236 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package net-snmp
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -75,6 +75,7 @@
 Patch10:net-snmp-5.7.3-fix-snmp_pdu_parse-incomplete.patch
 Patch11:net-snmp-5.7.3-Remove-U64-typedef.patch
 Patch12:net-snmp-5.7.3-Fix-Makefile.PL.patch
+Patch13:net-snmp-5.7.3-build-with-openssl-1.1.patch
 #
 Summary:SNMP Daemon
 License:BSD-3-Clause and MIT
@@ -212,6 +213,7 @@
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
+%patch13 -p1
 
 %build
 MIBS="misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ net-snmp-5.7.3-build-with-openssl-1.1.patch ++
 1287 lines (skipped)




commit net-snmp for openSUSE:Factory

2016-05-31 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2016-05-31 12:08:26

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2016-04-12 
19:00:23.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2016-05-31 
12:08:27.0 +0200
@@ -1,0 +2,12 @@
+Sat May 21 08:48:48 UTC 2016 - dims...@opensuse.org
+
+- Fix build with perl 5.24.0:
+  + Add net-snmp-5.7.3-Fix-Makefile.PL.patch: Fix build system
+recursiely loading Makefile.Pl and destroying its internas.
+See https://rt.perl.org/Public/Bug/Display.html?id=125907
+  + net-snmp-5.7.3-Remove-U64-typedef.patch: The U64 typedef
+conflicts with a typedef in a Perl header file. Hence remove
+the U64 typedef from the Net-SNMP header files. Backported from
+upstream commit 477b4307ef1.
+
+---

New:

  net-snmp-5.7.3-Fix-Makefile.PL.patch
  net-snmp-5.7.3-Remove-U64-typedef.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.mcF8Gd/_old  2016-05-31 12:08:28.0 +0200
+++ /var/tmp/diff_new_pack.mcF8Gd/_new  2016-05-31 12:08:28.0 +0200
@@ -73,6 +73,8 @@
 Patch8: net-snmp-5.7.3-netgroups.patch
 Patch9: net-snmp-5.7.3-snmpstatus-suppress-output.patch
 Patch10:net-snmp-5.7.3-fix-snmp_pdu_parse-incomplete.patch
+Patch11:net-snmp-5.7.3-Remove-U64-typedef.patch
+Patch12:net-snmp-5.7.3-Fix-Makefile.PL.patch
 #
 Summary:SNMP Daemon
 License:BSD-3-Clause and MIT
@@ -208,6 +210,8 @@
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
+%patch12 -p1
 
 %build
 MIBS="misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ net-snmp-5.7.3-Fix-Makefile.PL.patch ++
diff -up net-snmp-5.7.3/perl/ASN/Makefile.PL.orig 
net-snmp-5.7.3/perl/ASN/Makefile.PL
--- net-snmp-5.7.3/perl/ASN/Makefile.PL.orig2016-05-06 10:35:30.005905040 
+0200
+++ net-snmp-5.7.3/perl/ASN/Makefile.PL 2016-05-06 10:35:57.518776400 +0200
@@ -3,6 +3,7 @@ require 5;
 use Config;
 use Getopt::Long;
 my $lib_version;
+my %MakeParams = ();
 
 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
 # the contents of the Makefile that is written.
diff -up net-snmp-5.7.3/perl/Makefile.PL.orig net-snmp-5.7.3/perl/Makefile.PL
--- net-snmp-5.7.3/perl/Makefile.PL.orig2016-05-06 10:34:38.975143641 
+0200
+++ net-snmp-5.7.3/perl/Makefile.PL 2016-05-06 10:35:13.326983024 +0200
@@ -2,6 +2,7 @@ use ExtUtils::MakeMaker;
 use Config;
 use Getopt::Long;
 require 5;
+my %MakeParams = ();
 
 %MakeParams = InitMakeParams();
 

++ net-snmp-5.7.3-Remove-U64-typedef.patch ++
 2518 lines (skipped)




commit net-snmp for openSUSE:Factory

2016-04-12 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2016-04-12 19:00:22

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2016-02-29 
09:11:44.0 +0100
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2016-04-12 
19:00:23.0 +0200
@@ -1,0 +2,8 @@
+Tue Mar 15 09:09:41 UTC 2016 - abergm...@suse.com
+
+- make snmpd and snmptrapd log message destination configurable
+  for syslog or a dedicated log file. (bsc#695677)
+- make snmpd and snmptrapd listening address(es) configurable via
+  the sysconfig file.
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.r9jlcy/_old  2016-04-12 19:00:24.0 +0200
+++ /var/tmp/diff_new_pack.r9jlcy/_new  2016-04-12 19:00:24.0 +0200
@@ -240,6 +240,7 @@
--enable-ucd-snmp-compatibility \
 --with-security-modules=tsm \
--with-transports=TLSTCP,DTLSUDP
+
 # Parallel building is disabled because dependencies between the Perl
 # module and libnetsnmp are not correctly defined.
 make #%{?_smp_mflags}

++ net-snmp.sysconfig ++
--- /var/tmp/diff_new_pack.r9jlcy/_old  2016-04-12 19:00:24.0 +0200
+++ /var/tmp/diff_new_pack.r9jlcy/_new  2016-04-12 19:00:24.0 +0200
@@ -3,7 +3,7 @@
 ## Type:string(!,a,c,e,w,n,i,d,0,1,2,3,4,5,6,7)
 ## Default: n
 #
-# Defines the log level for snmpd.
+# Defines the log level for snmpd and snmptrapd.
 #
 # The default is "n" (5, LOG_NOTICE)
 #
@@ -34,3 +34,27 @@
 # The default is "yes" to provide backward compatibility.
 #
 SNMPD_LOG_SUCCESSFUL_CONNECTIONS="yes"
+
+## Path:System/Net-SNMP
+## Description: Log Destination
+## Type:string(F,S)
+## Default: S
+#
+# Defines the log destination for snmpd and snmptrapd.
+#
+# By setting it to "F", snmpd will write log messages into 
'/var/log/net-snmpd.log'.
+#
+# The default is "S" to log messages through the syslog service.
+#
+SNMPD_LOGDEST="S"
+
+## Path:System/Net-SNMP
+## Description: Listening IP addresses
+## Type:string
+## Default: "" (empty - listen on all interfaces) 
+#
+# Defines the IP address(es) that snmpd and snmptrapd binds to.
+# If no address is defined the daemon will listen on all interfaces.
+#
+SNMPD_LISTEN=""
+

++ rc.snmpd ++
--- /var/tmp/diff_new_pack.r9jlcy/_old  2016-04-12 19:00:24.0 +0200
+++ /var/tmp/diff_new_pack.r9jlcy/_new  2016-04-12 19:00:24.0 +0200
@@ -79,17 +79,27 @@
 start)
 echo -n "Starting snmpd"
 #
+# log destination "F" for file.
 # do not even try to start if the log file is (2GB-1MB) big.
 # the snmpd doesnt handle LFS properly
 #
-SNMPD_LOGFILE="${SNMPD_LOGFILE:-/var/log/net-snmpd.log}"
-if [ -e "$SNMPD_LOGFILE" ] ; then
-SNMPD_SIZE_LOGFILE="$(stat -c "%s" $SNMPD_LOGFILE)"
-SNMPD_SIZE_MAX="1073741824"
-if [ $SNMPD_SIZE_LOGFILE -gt $SNMPD_SIZE_MAX ] ; then
-echo -e "\n\"$SNMPD_LOGFILE\" is too large. Running 'logrotate' 
for net-snmp." >&2
-/usr/sbin/logrotate /etc/logrotate.d/net-snmp
+if [ ${SNMPD_LOGDEST:-F} = "F" ]; then
+  SNMPD_LOGTARGET="${SNMPD_LOGTARGET:-/var/log/net-snmpd.log}"
+  if [ -e "$SNMPD_LOGTARGET" ] ; then
+SNMPD_SIZE_LOGFILE="$(stat -c "%s" $SNMPD_LOGTARGET)"
+SNMPD_SIZE_MAX="1073741824"
+if [ $SNMPD_SIZE_LOGFILE -gt $SNMPD_SIZE_MAX ] ; then
+  echo -e "\n\"$SNMPD_LOGTARGET\" is too large. Running 
'logrotate' for net-snmp." >&2
+  /usr/sbin/logrotate /etc/logrotate.d/net-snmp
+fi
+  fi
 fi
+#
+# log destination "S" for syslog.
+# define syslog facility to 'd' for LOG_DAEMON.
+#
+if [ ${SNMPD_LOGDEST:-F} = "S" ]; then
+ SNMPD_LOGTARGET="d"
 fi
 get_agents
 # Don't add -c /etc/snmp/snmpd.conf, as it is loaded by default.
@@ -112,7 +122,7 @@
 if [ ! -d /var/run/agentx ]; then
   mkdir -m 0700 /var/run/agentx
 fi
-startproc $SNMPD $SNMPDCONF -r -A -LF ${SNMPD_LOGLEVEL:-n} 
$SNMPD_LOGFILE -p $SNMPD_PID $agentargs $SNMPDNOSMUX $SNMPDNOTCPWRAPPERLOG
+startproc $SNMPD $SNMPDCONF -r -A -L${SNMPD_LOGDEST:-F} 
${SNMPD_LOGLEVEL:-n} $SNMPD_LOGTARGET -p $SNMPD_PID $agentargs $SNMPDNOSMUX 
$SNMPDNOTCPWRAPPERLOG $SNMPD_LISTEN
 rc_status -v
 rc_reset
 

++ rc.snmptrapd ++
--- 

commit net-snmp for openSUSE:Factory

2016-02-29 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2016-02-29 09:11:37

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2015-09-13 
09:42:42.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2016-02-29 
09:11:44.0 +0100
@@ -1,0 +2,5 @@
+Mon Feb 15 20:38:20 UTC 2016 - astie...@suse.com
+
+- fix build with GNU grep 2.23, use grep -a to force text matching
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.KiBeyH/_old  2016-02-29 09:11:45.0 +0100
+++ /var/tmp/diff_new_pack.KiBeyH/_new  2016-02-29 09:11:45.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package net-snmp
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -280,7 +280,7 @@
 pushd python
 %{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
 popd
-%{__grep} -v "^#define PACKAGE" 
%{buildroot}%{_includedir}/net-snmp/net-snmp-config.h > \
+%{__grep} -a -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} \




commit net-snmp for openSUSE:Factory

2015-09-13 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2015-09-13 09:42:41

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is "net-snmp"

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2015-07-24 
09:57:56.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2015-09-13 
09:42:42.0 +0200
@@ -1,0 +2,20 @@
+Thu Sep  3 09:48:31 UTC 2015 - meiss...@suse.com
+
+- reenabled md5 and des, as some tools build against it and need
+  the methods :(
+
+---
+Thu Aug 13 20:24:01 UTC 2015 - abergm...@suse.com
+
+- added net-snmp-5.7.3-fix-snmp_pdu_parse-incomplete.patch: to fix
+  an incompletely initialized vulnerability within the
+  snmp_pdu_parse() function of snmp_api.c.
+  (bnc#940188, CVE-2015-5621)
+
+---
+Mon Aug  3 14:35:47 UTC 2015 - meiss...@suse.com
+
+- Disable MD5 authentication method, disable DES support
+  (if something breaks, tell me)
+
+---

New:

  net-snmp-5.7.3-fix-snmp_pdu_parse-incomplete.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.IbOeCG/_old  2015-09-13 09:42:43.0 +0200
+++ /var/tmp/diff_new_pack.IbOeCG/_new  2015-09-13 09:42:43.0 +0200
@@ -72,6 +72,7 @@
 Patch7: 
net-snmp-5.7.3-fix-snmpd-crashing-when-an-agentx-disconnects.patch
 Patch8: net-snmp-5.7.3-netgroups.patch
 Patch9: net-snmp-5.7.3-snmpstatus-suppress-output.patch
+Patch10:net-snmp-5.7.3-fix-snmp_pdu_parse-incomplete.patch
 #
 Summary:SNMP Daemon
 License:BSD-3-Clause and MIT
@@ -206,6 +207,7 @@
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 %build
 MIBS="misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ net-snmp-5.7.3-fix-snmp_pdu_parse-incomplete.patch ++
diff -Nurp net-snmp-5.7.3.pre5-orig/snmplib/snmp_api.c 
net-snmp-5.7.3.pre5/snmplib/snmp_api.c
--- net-snmp-5.7.3.pre5-orig/snmplib/snmp_api.c 2015-08-13 21:33:38.835653065 
+0200
+++ net-snmp-5.7.3.pre5/snmplib/snmp_api.c  2015-08-13 21:54:03.099348588 
+0200
@@ -4350,10 +4350,9 @@ snmp_pdu_parse(netsnmp_pdu *pdu, u_char
 u_char  type;
 u_char  msg_type;
 u_char *var_val;
-int badtype = 0;
 size_t  len;
 size_t  four;
-netsnmp_variable_list *vp = NULL;
+netsnmp_variable_list *vp = NULL, *vplast = NULL;
 oid objid[MAX_OID_LEN];
 u_char *p;
 
@@ -4493,38 +4492,24 @@ snmp_pdu_parse(netsnmp_pdu *pdu, u_char
   (ASN_SEQUENCE | ASN_CONSTRUCTOR),
   "varbinds");
 if (data == NULL)
-return -1;
+goto fail;
 
 /*
  * get each varBind sequence 
  */
 while ((int) *length > 0) {
-netsnmp_variable_list *vptemp;
-vptemp = (netsnmp_variable_list *) malloc(sizeof(*vptemp));
-if (NULL == vptemp) {
-return -1;
-}
-if (NULL == vp) {
-pdu->variables = vptemp;
-} else {
-vp->next_variable = vptemp;
-}
-vp = vptemp;
+vp = SNMP_MALLOC_TYPEDEF(netsnmp_variable_list);
+if (NULL == vp)
+goto fail;
 
-vp->next_variable = NULL;
-vp->val.string = NULL;
 vp->name_length = MAX_OID_LEN;
-vp->name = NULL;
-vp->index = 0;
-vp->data = NULL;
-vp->dataFreeHook = NULL;
 DEBUGDUMPSECTION("recv", "VarBind");
 data = snmp_parse_var_op(data, objid, >name_length, >type,
  >val_len, _val, length);
 if (data == NULL)
-return -1;
+goto fail;
 if (snmp_set_var_objid(vp, objid, vp->name_length))
-return -1;
+goto fail;
 
 len = MAX_PACKET_LENGTH;
 DEBUGDUMPHEADER("recv", "Value");
@@ -4604,7 +4589,7 @@ snmp_pdu_parse(netsnmp_pdu *pdu, u_char
 vp->val.string = (u_char *) malloc(vp->val_len);
 }
 if (vp->val.string == NULL) {
-return -1;
+goto fail;
 }
 p = asn_parse_string(var_val, , >type, vp->val.string,
  >val_len);
@@ -4619,7 +4604,7 @@ snmp_pdu_parse(netsnmp_pdu *pdu, u_char
 vp->val_len *= sizeof(oid);
 vp->val.objid = (oid *) malloc(vp->val_len);
 if (vp->val.objid == NULL) {
-return 

commit net-snmp for openSUSE:Factory

2015-07-24 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2015-07-24 09:57:55

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2015-07-21 
13:26:23.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2015-07-24 
09:57:56.0 +0200
@@ -1,0 +2,6 @@
+Wed Jul 22 07:19:05 UTC 2015 - jeng...@inai.de
+
+- Request pkgconfig(libssl) instead of openssl-devel to support
+  using LibreSSL as well.
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.xrYCd9/_old  2015-07-24 09:57:57.0 +0200
+++ /var/tmp/diff_new_pack.xrYCd9/_new  2015-07-24 09:57:57.0 +0200
@@ -121,12 +121,12 @@
 %package devel
 Requires:   %{library_name} = %{version}
 # for mib2c
-Requires:   libopenssl-devel
 Requires:   perl
 Requires:   perl-SNMP = %{version}
 Requires:   rpm-devel
 Requires:   tcpd-devel
 Requires:   zlib-devel
+Requires:   pkgconfig(libssl)
 %if 0%{?netsnmp_with_sensors}
 Requires:   libsensors4-devel
 %endif




commit net-snmp for openSUSE:Factory

2015-07-21 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2015-07-21 13:26:21

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2014-12-25 
23:20:35.0 +0100
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2015-07-21 
13:26:23.0 +0200
@@ -1,0 +2,35 @@
+Tue Jul 14 09:43:16 UTC 2015 - abergm...@suse.com
+
+- update to upstream version 5.7.3
+- remove patch that is now present in the upstream release:
+  * net-snmp-5.7.2-fix-snmptrapd-remote-denial-of-service.patch
+- rename patches to new version number 5.7.3:
+  delete:
+  * net-snmp-5.7.2-fix-snmpd-crashing-when-an-agentx-disconnects.patch
+  * net-snmp-5.7.2-net-snmp-config-headercheck.patch
+  * net-snmp-5.7.2-perl-tk-warning.patch
+  * net-snmp-5.7.2-pie.patch
+  * net-snmp-5.7.2-socket-path.patch
+  * net-snmp-5.7.2-testing-empty-arptable.patch
+  * net-snmp-5.7.2-velocity-mib.patch
+  add:
+  * net-snmp-5.7.3-fix-snmpd-crashing-when-an-agentx-disconnects.patch
+  * net-snmp-5.7.3-net-snmp-config-headercheck.patch
+  * net-snmp-5.7.3-perl-tk-warning.patch
+  * net-snmp-5.7.3-pie.patch
+  * net-snmp-5.7.3-socket-path.patch
+  * net-snmp-5.7.3-testing-empty-arptable.patch
+  * net-snmp-5.7.3-velocity-mib.patch
+- add build requirement 'procps' to fix a net-snmp-config error
+  (bsc#935863)
+- enable DTLS and TLS support (FATE#318789)
+  new binary 'snmptls' was added
+- add support for hostname netgroups (FATE#316305)
+  '@hostgroup' can be specified for multiple hosts
+  * net-snmp-5.7.3-netgroups.patch
+- suppress network statistics output in snmpstatus (FATE#316289)
+  '-Sn' don't print any info about the network
+  '-Si' don't print the operational status of network interfaces
+  * net-snmp-5.7.3-snmpstatus-suppress-output.patch
+
+---

Old:

  net-snmp-5.7.2-fix-snmpd-crashing-when-an-agentx-disconnects.patch
  net-snmp-5.7.2-fix-snmptrapd-remote-denial-of-service.patch
  net-snmp-5.7.2-net-snmp-config-headercheck.patch
  net-snmp-5.7.2-perl-tk-warning.patch
  net-snmp-5.7.2-pie.patch
  net-snmp-5.7.2-socket-path.patch
  net-snmp-5.7.2-testing-empty-arptable.patch
  net-snmp-5.7.2-velocity-mib.patch
  net-snmp-5.7.3.pre5.tar.gz

New:

  net-snmp-5.7.3-fix-snmpd-crashing-when-an-agentx-disconnects.patch
  net-snmp-5.7.3-net-snmp-config-headercheck.patch
  net-snmp-5.7.3-netgroups.patch
  net-snmp-5.7.3-perl-tk-warning.patch
  net-snmp-5.7.3-pie.patch
  net-snmp-5.7.3-snmpstatus-suppress-output.patch
  net-snmp-5.7.3-socket-path.patch
  net-snmp-5.7.3-testing-empty-arptable.patch
  net-snmp-5.7.3-velocity-mib.patch
  net-snmp-5.7.3.tar.gz



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.yDbV3c/_old  2015-07-21 13:26:25.0 +0200
+++ /var/tmp/diff_new_pack.yDbV3c/_new  2015-07-21 13:26:25.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package net-snmp
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -32,13 +32,14 @@
 %define netsnmp_agentx_socket_dir_fhs %{_rundir}/agentx
 %define netsnmp_agentx_socket_dir_rfc /var/agentx
 
-%define tarver  5.7.3.pre5
-
 Name:   net-snmp
 Version:5.7.3
 Release:0
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  autoconf
+BuildRequires:  automake
 BuildRequires:  openssl-devel
+BuildRequires:  procps
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 BuildRequires:  rpm-devel
@@ -52,7 +53,7 @@
 PreReq: %insserv_prereq %fillup_prereq /sbin/chkconfig
 Url:http://sourceforge.net/projects/net-snmp
 #Source: 
http://sourceforge.net/projects/net-snmp/files/net-snmp/%{version}/%{pkg_name}-%{version}.tar.gz
-Source: %{pkg_name}-%{tarver}.tar.gz
+Source: %{pkg_name}-%{version}.tar.gz
 Source1:rc.snmpd
 Source2:snmpd.conf
 Source3:README.SUSE
@@ -62,14 +63,15 @@
 Source7:net-snmp.sysconfig
 Source8:net-snmp-rpmlintrc
 Source9:baselibs.conf
-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
-Patch9:   

commit net-snmp for openSUSE:Factory

2014-12-25 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2014-12-25 23:21:39

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2014-09-24 
13:09:14.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2014-12-25 
23:20:35.0 +0100
@@ -1,0 +2,5 @@
+Sun Nov 30 15:52:36 UTC 2014 - cobe...@gmail.com
+
+- also stop snmptrapd on removal
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.YkPkMB/_old  2014-12-25 23:20:37.0 +0100
+++ /var/tmp/diff_new_pack.YkPkMB/_new  2014-12-25 23:20:37.0 +0100
@@ -284,6 +284,7 @@
 
 %preun
 %stop_on_removal snmpd
+%stop_on_removal snmptrapd
 
 %post
 /sbin/chkconfig -c snmpd 2 /dev/null  FIRST_ARG=2

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2014-09-24 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2014-09-24 13:09:09

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2014-09-17 
17:24:24.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2014-09-24 
13:09:14.0 +0200
@@ -1,0 +2,11 @@
+Mon Sep 15 14:29:16 UTC 2014 - lchiqui...@suse.com
+
+- update to upstream version 5.7.3.pre5
+- remove patches that are now present in the upstream release:
+  * net-snmp-5.7.2-build-fix-for-strlcat.patch
+  * net-snmp-5.7.2-fix-mib-representation-of-timeout-values.patch
+  * net-snmp-5.7.2-fix-perl-trap-handler.patch
+- net-snmp-5.7.2-fix-snmptrapd-remote-denial-of-service.patch:
+  refresh and add patch header
+
+---

Old:

  net-snmp-5.7.2-build-fix-for-strlcat.patch
  net-snmp-5.7.2-fix-mib-representation-of-timeout-values.patch
  net-snmp-5.7.2-fix-perl-trap-handler.patch
  net-snmp-5.7.2.1.tar.gz

New:

  net-snmp-5.7.3.pre5.tar.gz



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.XVnn8W/_old  2014-09-24 13:09:16.0 +0200
+++ /var/tmp/diff_new_pack.XVnn8W/_new  2014-09-24 13:09:16.0 +0200
@@ -32,8 +32,10 @@
 %define netsnmp_agentx_socket_dir_fhs %{_rundir}/agentx
 %define netsnmp_agentx_socket_dir_rfc /var/agentx
 
+%define tarver  5.7.3.pre5
+
 Name:   net-snmp
-Version:5.7.2.1
+Version:5.7.3
 Release:0
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  openssl-devel
@@ -50,7 +52,7 @@
 PreReq: %insserv_prereq %fillup_prereq /sbin/chkconfig
 Url:http://sourceforge.net/projects/net-snmp
 #Source: 
http://sourceforge.net/projects/net-snmp/files/net-snmp/%{version}/%{pkg_name}-%{version}.tar.gz
-Source: %{pkg_name}-%{version}.tar.gz
+Source: %{pkg_name}-%{tarver}.tar.gz
 Source1:rc.snmpd
 Source2:snmpd.conf
 Source3:README.SUSE
@@ -66,10 +68,7 @@
 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
-Patch8: net-snmp-5.7.2-build-fix-for-strlcat.patch
 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
-Patch11:net-snmp-5.7.2-fix-perl-trap-handler.patch
 Patch12:net-snmp-5.7.2-fix-snmptrapd-remote-denial-of-service.patch
 #
 Summary:SNMP Daemon
@@ -195,17 +194,14 @@
 
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%setup -q -n %{pkg_name}-%{tarver}
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
-%patch8 -p1
 %patch9 -p1
-%patch10 -p1
-%patch11 -p1
 %patch12 -p1
 
 %build

++ net-snmp-5.7.2-fix-snmptrapd-remote-denial-of-service.patch ++
--- /var/tmp/diff_new_pack.XVnn8W/_old  2014-09-24 13:09:16.0 +0200
+++ /var/tmp/diff_new_pack.XVnn8W/_new  2014-09-24 13:09:16.0 +0200
@@ -1,6 +1,23 @@
 net-snmp-5.7.2.1-orig/snmplib/mib.c2014-02-20 01:36:42.0 
+0100
-+++ net-snmp-5.7.2.1-patched/snmplib/mib.c 2014-09-02 15:07:17.902832000 
+0200
-@@ -464,17 +464,16 @@
+commit 7f4a7b891332899cea26e95be0337aae01648742
+Author: Jan Safranek jsafra...@users.sourceforge.net
+Date:   Thu Jul 31 13:46:49 2014 +0200
+
+Added checks for printing variables with wrong types.
+
+When -OQ command line argument is used, variable formatter preffers the 
type
+of the varible parsed from a MIB file instead of checking type of the 
variable
+as parsed from SNMP message.
+
+This can lead to crashes when incoming packets contains a variable with
+NULL type, while the MIB says the variable should be non-NULL, like 
Integer.
+The formatter then tries to interpret the NULL (from packet) as Integer 
(from
+MIB file).
+
+Index: net-snmp-5.7.3.pre5/snmplib/mib.c
+===
+--- net-snmp-5.7.3.pre5.orig/snmplib/mib.c
 net-snmp-5.7.3.pre5/snmplib/mib.c
+@@ -464,17 +464,16 @@ sprint_realloc_octet_string(u_char ** bu
  u_char *cp;
  int output_format, cnt;
  
@@ -26,7 +43,7 @@
  }
  
  
-@@ -742,16 +741,16 @@
+@@ -742,16 +741,16 @@ sprint_realloc_float(u_char ** buf, size
   const struct enum_list *enums,
   const char *hint, const char *units)
  {
@@ -51,7 +68,7 @@
  }
  
  if 

commit net-snmp for openSUSE:Factory

2014-09-17 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2014-09-17 17:24:23

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2014-07-10 
08:16:52.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2014-09-17 
17:24:24.0 +0200
@@ -1,0 +2,10 @@
+Wed Sep  3 19:35:54 UTC 2014 - abergm...@suse.com
+
+- added net-snmp-5.7.2-fix-snmptrapd-remote-denial-of-service.patch:
+  fix remote denial of service problem inside snmptrapd when started 
+  with the -OQ option (CVE-2014-3565)(bnc#894361)
+- added net-snmp-5.7.2-fix-perl-trap-handler.patch: fix potential 
+  remote denial of service problem inside the snmptrapd Perl trap 
+  handler (CVE-2014-2285)(bnc#866942) 
+
+---

New:

  net-snmp-5.7.2-fix-perl-trap-handler.patch
  net-snmp-5.7.2-fix-snmptrapd-remote-denial-of-service.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.3kRZMY/_old  2014-09-17 17:24:26.0 +0200
+++ /var/tmp/diff_new_pack.3kRZMY/_new  2014-09-17 17:24:26.0 +0200
@@ -69,6 +69,8 @@
 Patch8: net-snmp-5.7.2-build-fix-for-strlcat.patch
 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
+Patch11:net-snmp-5.7.2-fix-perl-trap-handler.patch
+Patch12:net-snmp-5.7.2-fix-snmptrapd-remote-denial-of-service.patch
 #
 Summary:SNMP Daemon
 License:BSD-3-Clause and MIT
@@ -203,6 +205,8 @@
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
+%patch12 -p1
 
 %build
 MIBS=misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ net-snmp-5.7.2-fix-perl-trap-handler.patch ++
diff -Nur net-snmp-5.7.2.1-orig/perl/TrapReceiver/TrapReceiver.xs 
net-snmp-5.7.2.1/perl/TrapReceiver/TrapReceiver.xs
--- net-snmp-5.7.2.1-orig/perl/TrapReceiver/TrapReceiver.xs 2014-02-20 
01:36:42.0 +0100
+++ net-snmp-5.7.2.1/perl/TrapReceiver/TrapReceiver.xs  2014-09-02 
12:06:50.070037000 +0200
@@ -81,18 +81,18 @@
 STOREPDUi(securitymodel, pdu-securityModel);
 STOREPDUi(securitylevel, pdu-securityLevel);
 STOREPDU(contextName,
- newSVpv(pdu-contextName, pdu-contextNameLen));
+ newSVpv(pdu-contextName ? pdu-contextName : , 
pdu-contextNameLen));
 STOREPDU(contextEngineID,
- newSVpv((char *) pdu-contextEngineID,
+ newSVpv(pdu-contextEngineID ? (char *) pdu-contextEngineID 
: ,
 pdu-contextEngineIDLen));
 STOREPDU(securityEngineID,
- newSVpv((char *) pdu-securityEngineID,
+ newSVpv(pdu-securityEngineID ? (char *) 
pdu-securityEngineID : ,
 pdu-securityEngineIDLen));
 STOREPDU(securityName,
- newSVpv((char *) pdu-securityName, pdu-securityNameLen));
+ newSVpv(pdu-securityName ? (char *) pdu-securityName : , 
pdu-securityNameLen));
 } else {
 STOREPDU(community,
- newSVpv((char *) pdu-community, pdu-community_len));
+ newSVpv(pdu-community ? (char *) pdu-community : , 
pdu-community_len));
 }
 
 if (transport  transport-f_fmtaddr) {
++ net-snmp-5.7.2-fix-snmptrapd-remote-denial-of-service.patch ++
--- net-snmp-5.7.2.1-orig/snmplib/mib.c 2014-02-20 01:36:42.0 +0100
+++ net-snmp-5.7.2.1-patched/snmplib/mib.c  2014-09-02 15:07:17.902832000 
+0200
@@ -464,17 +464,16 @@
 u_char *cp;
 int output_format, cnt;
 
-if ((var-type != ASN_OCTET_STR)  
-(!netsnmp_ds_get_boolean(NETSNMP_DS_LIBRARY_ID, 
NETSNMP_DS_LIB_QUICKE_PRINT))) {
-const char  str[] = Wrong Type (should be OCTET STRING): ;
-if (snmp_cstrcat
-(buf, buf_len, out_len, allow_realloc, str)) {
-return sprint_realloc_by_type(buf, buf_len, out_len,
+if (var-type != ASN_OCTET_STR) {
+if (!netsnmp_ds_get_boolean(
+NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_QUICKE_PRINT)) {
+const char  str[] = Wrong Type (should be OCTET STRING): ;
+if (!snmp_cstrcat(buf, buf_len, out_len, allow_realloc, str))
+return 0;
+}
+return sprint_realloc_by_type(buf, buf_len, out_len,
   allow_realloc, var, NULL, NULL,
   NULL);
- 

commit net-snmp for openSUSE:Factory

2014-07-10 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2014-07-10 08:16:39

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2014-05-22 
20:38:44.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2014-07-10 
08:16:52.0 +0200
@@ -1,0 +2,7 @@
+Mon Jun 16 13:58:17 CEST 2014 - lchiqui...@suse.com
+
+- merge some old fixes from SLE 11:
+  * init script should provide snmpd. (bnc#466805) 
+  * stop all snmp agents when stopping the daemon. (bnc#473328)
+
+---



Other differences:
--
++ rc.snmpd ++
--- /var/tmp/diff_new_pack.mnEgMi/_old  2014-07-10 08:16:55.0 +0200
+++ /var/tmp/diff_new_pack.mnEgMi/_new  2014-07-10 08:16:55.0 +0200
@@ -6,7 +6,7 @@
 # /etc/init.d/snmpd
 #
 ### BEGIN INIT INFO
-# Provides:net-snmp snmp
+# Provides:net-snmp snmp snmpd
 # Required-Start:  $remote_fs
 # Should-Start:$syslog $network
 # Required-Stop:   $remote_fs
@@ -131,6 +131,7 @@
 killproc -TERM $SNMPD
 rc_status -v ; rc_reset
 # we also need to make sure all agents die
+get_agents
 if test -n $agents; then
   for agent in $AGENTDIR/*; do
test -x $agent || continue

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2014-05-22 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2014-05-22 20:38:19

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2014-02-26 
23:20:39.0 +0100
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2014-05-22 
20:38:44.0 +0200
@@ -1,0 +2,24 @@
+Sat May 17 18:57:58 UTC 2014 - co...@suse.de
+
+- recompress .tar.gz - it has trailing garbage, hope we can readd
+  source url on next update
+
+---
+Fri May 16 12:25:59 UTC 2014 - lchiqui...@suse.com
+
+- update to upstream version 5.7.2.1, fixing one security issue:
+  * A denial of service attack vector was discovered on the Linux
+implementation of the ICMP-MIB. (CVE-2014-2284, bnc#866942)
+
+---
+Wed May 14 22:06:00 CEST 2014 - lchiqui...@suse.com
+
+- net-snmp-5.7.2-fix-mib-representation-of-timeout-values.patch:
+  fix mib representation of timeout values (bnc#833153) 
+
+---
+Thu May  8 11:47:01 CEST 2014 - r...@suse.de
+
+- use _rundir macro 
+
+---

Old:

  net-snmp-5.7.2.tar.gz

New:

  net-snmp-5.7.2-fix-mib-representation-of-timeout-values.patch
  net-snmp-5.7.2.1.tar.gz



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.40LqAy/_old  2014-05-22 20:38:47.0 +0200
+++ /var/tmp/diff_new_pack.40LqAy/_new  2014-05-22 20:38:47.0 +0200
@@ -26,11 +26,14 @@
 %endif
 %define netsnmp_check 1
 %define netsnmp_logfile /var/log/net-snmpd.log
-%define netsnmp_agentx_socket_dir_fhs /var/run/agentx
+%if ! %{defined _rundir}
+%define _rundir %{_localstatedir}/run
+%endif
+%define netsnmp_agentx_socket_dir_fhs %{_rundir}/agentx
 %define netsnmp_agentx_socket_dir_rfc /var/agentx
 
 Name:   net-snmp
-Version:5.7.2
+Version:5.7.2.1
 Release:0
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  openssl-devel
@@ -46,7 +49,8 @@
 Requires:   perl-TermReadKey
 PreReq: %insserv_prereq %fillup_prereq /sbin/chkconfig
 Url:http://sourceforge.net/projects/net-snmp
-Source: 
http://sourceforge.net/projects/net-snmp/files/net-snmp/%{version}/%{pkg_name}-%{version}.tar.gz
+#Source: 
http://sourceforge.net/projects/net-snmp/files/net-snmp/%{version}/%{pkg_name}-%{version}.tar.gz
+Source: %{pkg_name}-%{version}.tar.gz
 Source1:rc.snmpd
 Source2:snmpd.conf
 Source3:README.SUSE
@@ -63,7 +67,8 @@
 Patch6: net-snmp-5.7.2-perl-tk-warning.patch
 Patch7: net-snmp-5.7.2-velocity-mib.patch
 Patch8: net-snmp-5.7.2-build-fix-for-strlcat.patch
-Patch23:
net-snmp-5.7.2-fix-snmpd-crashing-when-an-agentx-disconnects.patch
+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
 #
 Summary:SNMP Daemon
 License:BSD-3-Clause and MIT
@@ -86,10 +91,6 @@
 to net-snmp in November 2000.
 
 
-Authors:
-
-Wes Hardaker harda...@users.sourceforge.net
-
 %define library_name libsnmp30
 
 %package -n libsnmp30
@@ -114,11 +115,6 @@
 
 This package holds the shared libraries from the net-snmp package.
 
-
-Authors:
-
-Wes Hardaker harda...@users.sourceforge.net
-
 %package devel
 Requires:   %{library_name} = %{version}
 # for mib2c
@@ -152,10 +148,6 @@
 from the net-snmp package.
 
 
-Authors:
-
-Wes Hardaker harda...@users.sourceforge.net
-
 %package -n snmp-mibs
 #
 Summary:MIB files from net-snmp
@@ -177,10 +169,6 @@
 This package holds the MIB files from the net-snmp package.
 
 
-Authors:
-
-Wes Hardaker harda...@users.sourceforge.net
-
 %package -n perl-SNMP
 Requires:   %{pkg_name} = %{version}
 Requires:   perl-base = %{perl_version}
@@ -193,10 +181,6 @@
 The Perl5 'SNMP' Extension Module v3.1.0 for the UCD SNMPv3 library.
 
 
-Authors:
-
-G.S. Marzot gmar...@nortelnetworks.com
-
 %package python
 Summary:The Python 'netsnmp' module for the Net-SNMP
 License:BSD-3-Clause and MIT
@@ -208,11 +192,6 @@
 Net-SNMP toolkit library.
 
 
-Authors:
-
-G.S. Marzot gmar...@nortelnetworks.com
-
-
 %prep
 %setup -q -n %{pkg_name}-%{version}
 %patch1 -p1
@@ -222,7 +201,8 @@
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
-%patch23 -p1
+%patch9 -p1
+%patch10 

commit net-snmp for openSUSE:Factory

2014-02-26 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2014-02-26 23:20:35

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2013-07-25 
15:10:24.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2014-02-26 
23:20:39.0 +0100
@@ -1,0 +2,6 @@
+Tue Feb 18 15:40:15 UTC 2014 - lchiqui...@suse.com
+
+- remove old workaround for ppc/ppc64 migrations which is no longer
+  needed (bnc#437293)
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.EGvFZT/_old  2014-02-26 23:20:40.0 +0100
+++ /var/tmp/diff_new_pack.EGvFZT/_new  2014-02-26 23:20:40.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package net-snmp
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -45,11 +45,6 @@
 Requires:   perl-SNMP = %{version}
 Requires:   perl-TermReadKey
 PreReq: %insserv_prereq %fillup_prereq /sbin/chkconfig
-# bug437293
-%ifarch ppc64
-Obsoletes:  net-snmp-64bit
-%endif
-#
 Url:http://sourceforge.net/projects/net-snmp
 Source: 
http://sourceforge.net/projects/net-snmp/files/net-snmp/%{version}/%{pkg_name}-%{version}.tar.gz
 Source1:rc.snmpd
@@ -125,11 +120,6 @@
 Wes Hardaker harda...@users.sourceforge.net
 
 %package devel
-# bug437293
-%ifarch ppc64
-Obsoletes:  net-snmp-devel-64bit
-%endif
-#
 Requires:   %{library_name} = %{version}
 # for mib2c
 Requires:   libopenssl-devel

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2013-07-25 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2013-07-25 15:10:23

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2013-07-18 
16:07:02.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2013-07-25 
15:10:24.0 +0200
@@ -1,0 +2,5 @@
+Mon Jul 15 11:49:08 UTC 2013 - mar...@gmx.de
+
+- add support for python bindings
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.DysGcF/_old  2013-07-25 15:10:25.0 +0200
+++ /var/tmp/diff_new_pack.DysGcF/_new  2013-07-25 15:10:25.0 +0200
@@ -16,6 +16,10 @@
 #
 
 
+# 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)))}
+
 %define pkg_name net-snmp
 %ifnarch s390 s390x
 %define netsnmp_with_sensors 1
@@ -30,6 +34,8 @@
 Release:0
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  openssl-devel
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
 BuildRequires:  rpm-devel
 BuildRequires:  tcpd-devel
 %if 0%{?netsnmp_with_sensors}
@@ -201,6 +207,22 @@
 
 G.S. Marzot gmar...@nortelnetworks.com
 
+%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.
+
+
+Authors:
+
+G.S. Marzot gmar...@nortelnetworks.com
+
+
 %prep
 %setup -q -n %{pkg_name}-%{version}
 %patch1 -p1
@@ -244,6 +266,10 @@
 # module and libnetsnmp are not correctly defined.
 make #%{?_smp_mflags}
 
+pushd python
+%{__python} setup.py --basedir=../ build
+popd
+
 %check
 %if 0%{?netsnmp_check}
 %ifnarch %arm
@@ -273,6 +299,9 @@
 %perl_process_packlist
 %{__rm} -f %{buildroot}/%{perl_vendorarch}/Bundle/Makefile.subs.pl
 popd
+pushd python
+%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
+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,}
@@ -384,4 +413,9 @@
 /var/adm/perl-modules/net-snmp
 %endif
 
+%files python
+%defattr(-,root,root)
+%doc README
+%{python_sitearch}/*
+
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2013-07-18 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2013-07-18 16:07:01

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2013-05-27 
09:54:36.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2013-07-18 
16:07:02.0 +0200
@@ -1,0 +2,6 @@
+Wed Jul 10 08:26:14 UTC 2013 - l...@linux-schulserver.de
+
+- improve snmptrapd init script (avoid to overwrite the logfile 
+  on restart)
+
+---



Other differences:
--
++ net-snmp.logrotate ++
--- /var/tmp/diff_new_pack.LxbdRb/_old  2013-07-18 16:07:03.0 +0200
+++ /var/tmp/diff_new_pack.LxbdRb/_new  2013-07-18 16:07:03.0 +0200
@@ -7,6 +7,7 @@
notifempty
missingok
create 600 root root
+   su root root
sharedscripts
postrotate
/etc/init.d/snmpd reload ||:

++ rc.snmptrapd ++
--- /var/tmp/diff_new_pack.LxbdRb/_old  2013-07-18 16:07:03.0 +0200
+++ /var/tmp/diff_new_pack.LxbdRb/_new  2013-07-18 16:07:03.0 +0200
@@ -20,7 +20,9 @@
 SNMPTRAPD_LOGFILE=/var/log/net-snmpd.log
 SNMPTRAPD_PID=/var/run/snmptrapd.pid
 
-test -x $SNMPTRAPD || exit 5
+test -x $SNMPTRAPD || { echo $SNMPTRAPD not installed;
+if [ $1 = stop ]; then exit 0;
+else exit 5; fi; }
 
 # Check for existence of needed config file and read it
 SNMPD_CONFIG=/etc/sysconfig/net-snmp
@@ -67,13 +69,18 @@
 SNMPTRAPD_LOGFILE=${SNMPTRAPD_LOGFILE:-/var/log/net-snmpd.log}
 case $1 in
 start)
-echo -n Starting snmptrapd:
+echo -n Starting snmptrapd: 
 startproc $SNMPTRAPD $SNMPTRAPD_CONF -A -LF ${SNMPD_LOGLEVEL:-n} 
$SNMPTRAPD_LOGFILE -p $SNMPTRAPD_PID
 rc_status -v
 ;;
 stop)
-echo -n Shutting down snmptrapd:
+echo -n Shutting down snmptrapd: 
 killproc -TERM $SNMPTRAPD
+if [ -f $SNMPTAPDD_LOGFILE ]; then
+DATE=$(date +%Y%m%d)
+/bin/mv $SNMPTAPDD_LOGFILE $SNMPTAPDD_LOGFILE-$DATE
+   test -x /usr/bin/bzip2  /usr/bin/bzip2 
$SNMPTAPDD_LOGFILE-$DATE
+fi
 rc_status -v
 ;;
 try-restart)
@@ -86,17 +93,17 @@
 rc_status
 ;;
 force-reload)
-echo -n Reload service snmptrapd:
+echo -n Reload service snmptrapd: 
 killproc -HUP $SNMPTRAPD
 rc_status -v
 ;;
 reload)
-echo -n Reload service snmptrapd:
+echo -n Reload service snmptrapd: 
 killproc -HUP $SNMPTRAPD
 rc_status -v
 ;;
 status)
-echo -n Checking for service snmptrapd:
+echo -n Checking for service snmptrapd: 
 checkproc $SNMPTRAPD
 rc_status -v
 ;;

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2013-05-27 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2013-05-27 09:54:35

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2013-04-17 
07:41:14.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2013-05-27 
09:54:36.0 +0200
@@ -1,0 +2,7 @@
+Mon May 20 11:22:24 UTC 2013 - lchiqui...@suse.com
+
+- Disable parallelism during build. The dependencies between the
+  Perl module and libnetsnmp are not defined correctly and might
+  result in broken linkage (bnc#819497, bnc#818907)
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.htZ7J2/_old  2013-05-27 09:54:37.0 +0200
+++ /var/tmp/diff_new_pack.htZ7J2/_new  2013-05-27 09:54:37.0 +0200
@@ -240,7 +240,9 @@
--enable-local-smux \
--enable-ipv6 \
--enable-ucd-snmp-compatibility
-make %{?_smp_mflags}
+# Parallel building is disabled because dependencies between the Perl
+# module and libnetsnmp are not correctly defined.
+make #%{?_smp_mflags}
 
 %check
 %if 0%{?netsnmp_check}

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2013-04-16 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2013-04-17 07:41:12

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp, Maintainer is lchiqui...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2012-12-20 
11:02:58.0 +0100
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2013-04-17 
07:41:14.0 +0200
@@ -1,0 +2,5 @@
+Mon Apr 15 13:44:06 UTC 2013 - idon...@suse.com
+
+- Add Source URL, see https://en.opensuse.org/SourceUrls 
+
+---

Old:

  net-snmp-5.7.2.tar.bz2

New:

  net-snmp-5.7.2.tar.gz



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.7aiUpe/_old  2013-04-17 07:41:16.0 +0200
+++ /var/tmp/diff_new_pack.7aiUpe/_new  2013-04-17 07:41:16.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package net-snmp
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -45,7 +45,7 @@
 %endif
 #
 Url:http://sourceforge.net/projects/net-snmp
-Source: %{pkg_name}-%{version}.tar.bz2
+Source: 
http://sourceforge.net/projects/net-snmp/files/net-snmp/%{version}/%{pkg_name}-%{version}.tar.gz
 Source1:rc.snmpd
 Source2:snmpd.conf
 Source3:README.SUSE

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2012-12-20 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2012-12-20 11:02:57

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp, Maintainer is lchiqui...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2012-11-02 
07:31:15.0 +0100
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2012-12-20 
11:02:58.0 +0100
@@ -1,0 +2,6 @@
+Tue Dec 18 22:01:23 UTC 2012 - lchiqui...@suse.com
+
+- net-snmp-5.7.2-build-fix-for-strlcat.patch: fix exported strlcat()
+  prototype that could conflict with other packages (bnc#793548)
+
+---

New:

  net-snmp-5.7.2-build-fix-for-strlcat.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.qtOcxD/_old  2012-12-20 11:02:59.0 +0100
+++ /var/tmp/diff_new_pack.qtOcxD/_new  2012-12-20 11:02:59.0 +0100
@@ -61,6 +61,7 @@
 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
+Patch8: net-snmp-5.7.2-build-fix-for-strlcat.patch
 Patch23:
net-snmp-5.7.2-fix-snmpd-crashing-when-an-agentx-disconnects.patch
 #
 Summary:SNMP Daemon
@@ -208,6 +209,7 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 %patch23 -p1
 
 %build

++ net-snmp-5.7.2-build-fix-for-strlcat.patch ++
commit 4a6d0378a3916571ce7604c4a3d54a8c96a8f807
Author: Bart Van Assche bvanass...@acm.org
Date:   Sun Oct 28 09:54:12 2012 -0700

Windows: Visual Studio 6 build fix for strlcat()

Index: net-snmp-5.7.2/snmplib/strlcat.c
===
--- net-snmp-5.7.2.orig/snmplib/strlcat.c
+++ net-snmp-5.7.2/snmplib/strlcat.c
@@ -37,7 +37,7 @@
  * If retval = siz, truncation occurred.
  */
 size_t
-strlcat(char * __restrict dst, const char * __restrict src, size_t siz)
+strlcat(char *dst, const char *src, size_t siz)
 {
char *d = dst;
const char *s = src;
Index: net-snmp-5.7.2/include/net-snmp/library/system.h
===
--- net-snmp-5.7.2.orig/include/net-snmp/library/system.h
+++ net-snmp-5.7.2/include/net-snmp/library/system.h
@@ -196,8 +196,7 @@ SOFTWARE.
 #endif
 #ifndef HAVE_STRLCAT
 NETSNMP_IMPORT
-size_tstrlcat(char * __restrict, const char * __restrict,
-  size_t);
+size_tstrlcat(char *, const char *, size_t);
 #endif
 
 int netsnmp_os_prematch(const char *ospmname,
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2012-11-02 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2012-11-02 07:31:12

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp, Maintainer is lchiqui...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2012-09-25 
14:18:11.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2012-11-02 
07:31:15.0 +0100
@@ -1,0 +2,30 @@
+Wed Oct 10 18:21:19 UTC 2012 - lchiqui...@suse.com
+
+- update to version 5.7.2: several bug fixes in the agent, client
+  utilities and libraries. The CHANGES file shipped with the
+  package contains a comprehensive list of fixes and improvements
+- rebase patches to apply cleanly:
+  * net-snmp-5.7.2-perl-tk-warning.patch
+  * net-snmp-5.7.2-socket-path.patch
+  * net-snmp-5.7.2-testing-empty-arptable.patch
+  * net-snmp-5.7.2-pie.patch
+  * net-snmp-5.7.2-velocity-mib.patch
+  * net-snmp-5.7.2-fix-snmpd-crashing-when-an-agentx-disconnects.patch
+- remove patches that are now present in the upstream release:
+  * net-snmp-5.7.0-recognize-reiserfs.patch
+  * net-snmp-5.7.1-snmplib-zero-timeout.patch
+  * net-snmp-5.7.1-old-api-double-free.patch
+  * net-snmp-5.7.1-use-pclose-to-close-pipes.patch
+  * net-snmp-5.7.1-fix-handling-of-large-filesystems.patch
+  * net-snmp-5.7.1-snmplib-default-retries.patch
+  * net-snmp-5.7.1-fsys-memory-leak.patch
+  * net-snmp-5.7.1-adjust-copyright-in-agent-txt-file.patch
+  * net-snmp-5.7.1-recognize-ocfs2.patch
+  * net-snmp-5.7.1-properly-clean-up-old-requests-in-subagents.patch
+  * net-snmp-5.7.1-reduce-code-duplication-in-agentx.patch
+  * net-snmp-5.7.1-log-agentx-disconnections.patch
+  * net-snmp-5.7.1-more-robust-handling-of-agentx-errors.patch
+  * net-snmp-5.7.1-report-problems-with-setundo-processing.patch
+  * net-snmp-5.7.1-fix-array-index-error.patch
+
+---

Old:

  net-snmp-5.5.0-perl-tk-warning.patch
  net-snmp-5.5.0-socket-path.patch
  net-snmp-5.5.0-testing-empty-arptable.patch
  net-snmp-5.6.1-net-snmp-config-headercheck.patch
  net-snmp-5.7.0-pie.patch
  net-snmp-5.7.0-recognize-reiserfs.patch
  net-snmp-5.7.0-velocity-mib.patch
  net-snmp-5.7.1-adjust-copyright-in-agent-txt-file.patch
  net-snmp-5.7.1-fix-array-index-error.patch
  net-snmp-5.7.1-fix-handling-of-large-filesystems.patch
  net-snmp-5.7.1-fix-snmpd-crashing-when-an-agentx-disconnects.patch
  net-snmp-5.7.1-fsys-memory-leak.patch
  net-snmp-5.7.1-log-agentx-disconnections.patch
  net-snmp-5.7.1-more-robust-handling-of-agentx-errors.patch
  net-snmp-5.7.1-old-api-double-free.patch
  net-snmp-5.7.1-properly-clean-up-old-requests-in-subagents.patch
  net-snmp-5.7.1-recognize-ocfs2.patch
  net-snmp-5.7.1-reduce-code-duplication-in-agentx.patch
  net-snmp-5.7.1-report-problems-with-setundo-processing.patch
  net-snmp-5.7.1-snmplib-default-retries.patch
  net-snmp-5.7.1-snmplib-zero-timeout.patch
  net-snmp-5.7.1-use-pclose-to-close-pipes.patch
  net-snmp-5.7.1.tar.bz2

New:

  net-snmp-5.7.2-fix-snmpd-crashing-when-an-agentx-disconnects.patch
  net-snmp-5.7.2-net-snmp-config-headercheck.patch
  net-snmp-5.7.2-perl-tk-warning.patch
  net-snmp-5.7.2-pie.patch
  net-snmp-5.7.2-socket-path.patch
  net-snmp-5.7.2-testing-empty-arptable.patch
  net-snmp-5.7.2-velocity-mib.patch
  net-snmp-5.7.2.tar.bz2



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.2qlYwT/_old  2012-11-02 07:31:18.0 +0100
+++ /var/tmp/diff_new_pack.2qlYwT/_new  2012-11-02 07:31:18.0 +0100
@@ -26,7 +26,7 @@
 %define netsnmp_agentx_socket_dir_rfc /var/agentx
 
 Name:   net-snmp
-Version:5.7.1
+Version:5.7.2
 Release:0
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  openssl-devel
@@ -55,31 +55,16 @@
 Source7:net-snmp.sysconfig
 Source8:net-snmp-rpmlintrc
 Source9:baselibs.conf
-Patch1: net-snmp-5.5.0-socket-path.patch
-Patch2: net-snmp-5.5.0-testing-empty-arptable.patch
-Patch3: net-snmp-5.7.0-pie.patch
-Patch5: net-snmp-5.6.1-net-snmp-config-headercheck.patch
-Patch6: net-snmp-5.5.0-perl-tk-warning.patch
-Patch7: net-snmp-5.7.0-velocity-mib.patch
-Patch8: net-snmp-5.7.0-recognize-reiserfs.patch
-Patch10:net-snmp-5.7.1-snmplib-zero-timeout.patch
-Patch11:net-snmp-5.7.1-old-api-double-free.patch
-Patch12:net-snmp-5.7.1-use-pclose-to-close-pipes.patch
-Patch13:net-snmp-5.7.1-fix-handling-of-large-filesystems.patch
-Patch14:net-snmp-5.7.1-snmplib-default-retries.patch
-Patch15:

commit net-snmp for openSUSE:Factory

2012-09-25 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2012-09-25 13:59:37

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp, Maintainer is lchiqui...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2012-05-16 
12:26:24.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2012-09-25 
14:18:11.0 +0200
@@ -1,0 +2,6 @@
+Fri Sep  7 17:28:00 UTC 2012 - jeng...@inai.de
+
+- Remove redundant sections from specfile
+- Avoid shipping .la files
+
+---



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.Jk14nJ/_old  2012-09-25 14:18:14.0 +0200
+++ /var/tmp/diff_new_pack.Jk14nJ/_new  2012-09-25 14:18:14.0 +0200
@@ -268,7 +268,7 @@
--enable-local-smux \
--enable-ipv6 \
--enable-ucd-snmp-compatibility
-%{__make} all
+make %{?_smp_mflags}
 
 %check
 %if 0%{?netsnmp_check}
@@ -307,9 +307,7 @@
 #
 %{__ln_s} -f %{netsnmp_agentx_socket_dir_fhs} 
%{buildroot}%{netsnmp_agentx_socket_dir_rfc}
 #
-
-%clean
-%{__rm} -rf %{buildroot}
+rm -f %buildroot/%_libdir/*.la
 
 %preun
 %stop_on_removal snmpd
@@ -394,9 +392,7 @@
 %{_mandir}/man3/*
 %{_includedir}/ucd-snmp
 %{_includedir}/net-snmp
-%{_libdir}/libsnmp*.la
 %{_libdir}/libsnmp*.so
-%{_libdir}/libnetsnmp*.la
 %{_libdir}/libnetsnmp*.so
 %{_bindir}/mib2c
 %{_bindir}/mib2c-update

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2012-05-16 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2012-05-16 12:26:12

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp, Maintainer is lchiqui...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2012-04-17 
22:00:16.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2012-05-16 
12:26:24.0 +0200
@@ -1,0 +2,6 @@
+Mon May 14 17:39:17 UTC 2012 - lchiqui...@suse.com
+
+- fix array index error that could lead to a crash (CVE-2012-2141)
+  (bnc#759352)
+
+---

New:

  net-snmp-5.7.1-fix-array-index-error.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.PXJxKf/_old  2012-05-16 12:26:26.0 +0200
+++ /var/tmp/diff_new_pack.PXJxKf/_new  2012-05-16 12:26:26.0 +0200
@@ -76,6 +76,7 @@
 Patch21:net-snmp-5.7.1-more-robust-handling-of-agentx-errors.patch
 Patch22:net-snmp-5.7.1-report-problems-with-setundo-processing.patch
 Patch23:
net-snmp-5.7.1-fix-snmpd-crashing-when-an-agentx-disconnects.patch
+Patch24:net-snmp-5.7.1-fix-array-index-error.patch
 #
 Summary:SNMP Daemon
 License:BSD-3-Clause ; MIT
@@ -237,6 +238,7 @@
 %patch21 -p1
 %patch22 -p1
 %patch23 -p1
+%patch24 -p1
 
 %build
 MIBS=misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ net-snmp-5.7.1-fix-array-index-error.patch ++
commit 4c5633f1603e4bd03ed05c37d782ec8911759c47
Author: Robert Story rst...@freesnmp.com
Date:   Mon May 14 11:40:06 2012 -0400

NEWS: snmp: BUG: 3526549: CVE-2012-2141 Array index error leading to crash

Index: net-snmp-5.7.1/agent/mibgroup/agent/extend.c
===
--- net-snmp-5.7.1.orig/agent/mibgroup/agent/extend.c
+++ net-snmp-5.7.1/agent/mibgroup/agent/extend.c
@@ -1209,7 +1209,7 @@ _extend_find_entry( netsnmp_request_info
  * ...and check the line requested is valid
  */
 line_idx = *table_info-indexes-next_variable-val.integer;
-if (eptr-numlines  line_idx)
+if (line_idx  1 || line_idx  eptr-numlines)
 return NULL;
 }
 }
@@ -1380,6 +1380,10 @@ handle_nsExtendOutput2Table(netsnmp_mib_
  * Determine which line we've been asked for
  */
 line_idx = *table_info-indexes-next_variable-val.integer;
+if (line_idx  1 || line_idx  extension-numlines) {
+netsnmp_set_request_error(reqinfo, request, 
SNMP_NOSUCHINSTANCE);
+continue;
+}
 cp  = extension-lines[line_idx-1];
 
 /* 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2012-04-17 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2012-04-17 22:00:04

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp, Maintainer is lchiqui...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2012-03-26 
11:03:37.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2012-04-17 
22:00:16.0 +0200
@@ -1,0 +2,11 @@
+Thu Mar 29 22:14:55 UTC 2012 - lchiqui...@suse.com
+
+- fix agent crash when reloading a subagent (AgentX) during a query
+  (bnc#670789)
+
+---
+Thu Mar 29 22:14:04 UTC 2012 - lchiqui...@suse.com
+
+- add OCFS2 to the list of known file systems
+
+---

Old:

  net-snmp-5.7.1-agentx-crash.patch

New:

  net-snmp-5.7.1-fix-snmpd-crashing-when-an-agentx-disconnects.patch
  net-snmp-5.7.1-log-agentx-disconnections.patch
  net-snmp-5.7.1-more-robust-handling-of-agentx-errors.patch
  net-snmp-5.7.1-properly-clean-up-old-requests-in-subagents.patch
  net-snmp-5.7.1-recognize-ocfs2.patch
  net-snmp-5.7.1-reduce-code-duplication-in-agentx.patch
  net-snmp-5.7.1-report-problems-with-setundo-processing.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.MOCSRr/_old  2012-04-17 22:00:19.0 +0200
+++ /var/tmp/diff_new_pack.MOCSRr/_new  2012-04-17 22:00:19.0 +0200
@@ -62,7 +62,6 @@
 Patch6: net-snmp-5.5.0-perl-tk-warning.patch
 Patch7: net-snmp-5.7.0-velocity-mib.patch
 Patch8: net-snmp-5.7.0-recognize-reiserfs.patch
-Patch9: net-snmp-5.7.1-agentx-crash.patch
 Patch10:net-snmp-5.7.1-snmplib-zero-timeout.patch
 Patch11:net-snmp-5.7.1-old-api-double-free.patch
 Patch12:net-snmp-5.7.1-use-pclose-to-close-pipes.patch
@@ -70,6 +69,13 @@
 Patch14:net-snmp-5.7.1-snmplib-default-retries.patch
 Patch15:net-snmp-5.7.1-fsys-memory-leak.patch
 Patch16:net-snmp-5.7.1-adjust-copyright-in-agent-txt-file.patch
+Patch17:net-snmp-5.7.1-recognize-ocfs2.patch
+Patch18:
net-snmp-5.7.1-properly-clean-up-old-requests-in-subagents.patch
+Patch19:net-snmp-5.7.1-reduce-code-duplication-in-agentx.patch
+Patch20:net-snmp-5.7.1-log-agentx-disconnections.patch
+Patch21:net-snmp-5.7.1-more-robust-handling-of-agentx-errors.patch
+Patch22:net-snmp-5.7.1-report-problems-with-setundo-processing.patch
+Patch23:
net-snmp-5.7.1-fix-snmpd-crashing-when-an-agentx-disconnects.patch
 #
 Summary:SNMP Daemon
 License:BSD-3-Clause ; MIT
@@ -217,7 +223,6 @@
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
-%patch9 -p1
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
@@ -225,6 +230,13 @@
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
+%patch17 -p1
+%patch18 -p1
+%patch19 -p1
+%patch20 -p1
+%patch21 -p1
+%patch22 -p1
+%patch23 -p1
 
 %build
 MIBS=misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ net-snmp-5.7.1-fix-snmpd-crashing-when-an-agentx-disconnects.patch ++
commit f9304c83f76202db0e684269ca1af32e43cd9db4
Author: Jan Safranek jsafra...@users.sourceforge.net
Date:   Tue Feb 7 14:53:44 2012 +0100

CHANGES: PATCH 1633670: fixed snmpd crashing when an AgentX subagent 
disconnect in the middle of processing of a request.

I fixed also the memory leak reported in the tracker comments.

Index: net-snmp-5.7.1/agent/mibgroup/agentx/master.c
===
--- net-snmp-5.7.1.orig/agent/mibgroup/agentx/master.c
+++ net-snmp-5.7.1/agent/mibgroup/agentx/master.c
@@ -219,6 +219,9 @@ agentx_got_response(int operation,
 if (!cache) {
 DEBUGMSGTL((agentx/master, response too late on session %8p\n,
 session));
+/* response is too late, free the cache */
+if (magic)
+netsnmp_free_delegated_cache((netsnmp_delegated_cache*) magic);
 return 0;
 }
 requests = cache-requests;
@@ -606,6 +609,8 @@ agentx_master_handler(netsnmp_mib_handle
 result = snmp_async_send(ax_session, pdu, agentx_got_response, cb_data);
 if (result == 0) {
 snmp_free_pdu(pdu);
+if (cb_data)
+netsnmp_free_delegated_cache((netsnmp_delegated_cache*) cb_data);
 }
 
 return SNMP_ERR_NOERROR;
Index: net-snmp-5.7.1/agent/mibgroup/agentx/master_admin.c
===
--- net-snmp-5.7.1.orig/agent/mibgroup/agentx/master_admin.c
+++ net-snmp-5.7.1/agent/mibgroup/agentx/master_admin.c
@@ -135,11 

commit net-snmp for openSUSE:Factory

2012-03-26 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2012-03-26 11:03:36

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp, Maintainer is lchiqui...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2011-10-25 
16:18:53.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2012-03-26 
11:03:37.0 +0200
@@ -1,0 +2,17 @@
+Thu Mar 22 11:04:08 UTC 2012 - lchiqui...@suse.com
+
+- update copyright notice of AGENT.txt allowing us to redistribute
+  the file in our package (from Dave Shield) (bnc#750704)
+
+---
+Wed Feb  8 06:09:32 UTC 2012 - co...@suse.com
+
+- fix license to be in spdx.org format
+
+---
+Tue Nov  1 11:01:12 UTC 2011 - lchiqui...@suse.com
+
+- logrotate: use reload instead of try-restart to avoid an
+  unnecessary stop/start cycle in the agent (bnc#707636)
+
+---

New:

  net-snmp-5.7.1-adjust-copyright-in-agent-txt-file.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.hDqZhN/_old  2012-03-26 11:03:39.0 +0200
+++ /var/tmp/diff_new_pack.hDqZhN/_new  2012-03-26 11:03:39.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package net-snmp
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,7 +15,6 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
 
 %define pkg_name net-snmp
 %ifnarch s390 s390x
@@ -28,16 +27,17 @@
 
 Name:   net-snmp
 Version:5.7.1
-Release:1
-License:BSD3c(or similar) ; MIT License (or similar)
-Group:  Productivity/Networking/Other
+Release:0
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  openssl-devel rpm-devel tcpd-devel
+BuildRequires:  openssl-devel
+BuildRequires:  rpm-devel
+BuildRequires:  tcpd-devel
 %if 0%{?netsnmp_with_sensors}
 BuildRequires:  libsensors4-devel
 %endif
-Requires:   perl-TermReadKey logrotate
+Requires:   logrotate
 Requires:   perl-SNMP = %{version}
+Requires:   perl-TermReadKey
 PreReq: %insserv_prereq %fillup_prereq /sbin/chkconfig
 # bug437293
 %ifarch ppc64
@@ -69,8 +69,11 @@
 Patch13:net-snmp-5.7.1-fix-handling-of-large-filesystems.patch
 Patch14:net-snmp-5.7.1-snmplib-default-retries.patch
 Patch15:net-snmp-5.7.1-fsys-memory-leak.patch
+Patch16:net-snmp-5.7.1-adjust-copyright-in-agent-txt-file.patch
 #
 Summary:SNMP Daemon
+License:BSD-3-Clause ; MIT
+Group:  Productivity/Networking/Other
 
 %description
 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c
@@ -96,12 +99,12 @@
 %define library_name libsnmp30
 
 %package -n libsnmp30
-License:BSD3c(or similar) ; MIT License (or similar)
-Group:  Productivity/Networking/Other
-Requires:   snmp-mibs = %{version}
 Requires:   perl-base = %{perl_version}
+Requires:   snmp-mibs = %{version}
 #
 Summary:Shared Libraries from net-snmp
+License:BSD-3-Clause ; MIT
+Group:  Productivity/Networking/Other
 
 %description -n libsnmp30
 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c
@@ -123,8 +126,6 @@
 Wes Hardaker harda...@users.sourceforge.net
 
 %package devel
-License:BSD3c(or similar) ; MIT License (or similar)
-Group:  Development/Libraries/C and C++
 # bug437293
 %ifarch ppc64
 Obsoletes:  net-snmp-devel-64bit
@@ -132,13 +133,19 @@
 #
 Requires:   %{library_name} = %{version}
 # for mib2c
+Requires:   libopenssl-devel
+Requires:   perl
 Requires:   perl-SNMP = %{version}
-Requires:   libopenssl-devel rpm-devel tcpd-devel perl zlib-devel
+Requires:   rpm-devel
+Requires:   tcpd-devel
+Requires:   zlib-devel
 %if 0%{?netsnmp_with_sensors}
 Requires:   libsensors4-devel
 %endif
 #
 Summary:Development files from net-snmp
+License:BSD-3-Clause ; MIT
+Group:  Development/Libraries/C and C++
 
 %description devel
 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c
@@ -161,10 +168,10 @@
 Wes Hardaker harda...@users.sourceforge.net
 
 %package -n snmp-mibs
-License:BSD3c(or similar) ; MIT 

commit net-snmp for openSUSE:Factory

2011-10-25 Thread h_root
Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2011-10-25 16:18:52

Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and  /work/SRC/openSUSE:Factory/.net-snmp.new (New)


Package is net-snmp, Maintainer is lchiqui...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes2011-09-29 
12:53:01.0 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2011-10-25 
16:18:53.0 +0200
@@ -1,0 +2,16 @@
+Fri Oct 21 12:30:29 UTC 2011 - lchiqui...@suse.com
+
+- net-snmp-5.7.1-fsys-memory-leak.patch: fix a memory leak in
+  agent/mibgroup/hardware/fsys (bnc#725766)
+- net-snmp-5.7.1-snmplib-default-retries.patch: change default
+  number of retries back from 0 to 5 (bnc#725766)
+- net-snmp-5.7.1-fix-handling-of-large-filesystems.patch: fix
+  bug in handling large (8TB) filesystems (bnc#725766)
+- net-snmp-5.7.1-use-pclose-to-close-pipes.patch: use pclose()
+  instead of fclose() to close a pipe (bnc#725766)
+- net-snmp-5.7.1-old-api-double-free.patch: agent: avoid double
+  free when netsnmp_register_old_api() fails (bnc#725766)
+- net-snmp-5.7.1-snmplib-zero-timeout.patch: snmplib: avoid
+  waiting indefinitely if a session has timeout zero (bnc#725766)
+
+---

New:

  net-snmp-5.7.1-fix-handling-of-large-filesystems.patch
  net-snmp-5.7.1-fsys-memory-leak.patch
  net-snmp-5.7.1-old-api-double-free.patch
  net-snmp-5.7.1-snmplib-default-retries.patch
  net-snmp-5.7.1-snmplib-zero-timeout.patch
  net-snmp-5.7.1-use-pclose-to-close-pipes.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.T1rE7f/_old  2011-10-25 16:18:55.0 +0200
+++ /var/tmp/diff_new_pack.T1rE7f/_new  2011-10-25 16:18:55.0 +0200
@@ -63,6 +63,12 @@
 Patch7: net-snmp-5.7.0-velocity-mib.patch
 Patch8: net-snmp-5.7.0-recognize-reiserfs.patch
 Patch9: net-snmp-5.7.1-agentx-crash.patch
+Patch10:net-snmp-5.7.1-snmplib-zero-timeout.patch
+Patch11:net-snmp-5.7.1-old-api-double-free.patch
+Patch12:net-snmp-5.7.1-use-pclose-to-close-pipes.patch
+Patch13:net-snmp-5.7.1-fix-handling-of-large-filesystems.patch
+Patch14:net-snmp-5.7.1-snmplib-default-retries.patch
+Patch15:net-snmp-5.7.1-fsys-memory-leak.patch
 #
 Summary:SNMP Daemon
 
@@ -205,6 +211,12 @@
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
+%patch15 -p1
 
 %build
 MIBS=misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ net-snmp-5.7.1-fix-handling-of-large-filesystems.patch ++
commit 76ff25d9bf97579e7213102065fd5096f049a4c5
Author: Bart Van Assche bvanass...@acm.org
Date:   Fri Oct 7 14:13:18 2011 +0200

CHANGES: snmpd: HOST-RESOURCES-MIB::hrStorageTable: fix bug in handling 
large filesystems, where large means above 8 TB (= 2**31 * 4096 bytes).

This patch fixes a bug introduced in commit
71d8293f387a6cd66bb0dbb13c0f50174d2e678b.
For the original bug report, see also

https://sourceforge.net/tracker/?func=detailatid=112694aid=3419825group_id=12694.

diff --git a/agent/mibgroup/hardware/fsys/hw_fsys.c 
b/agent/mibgroup/hardware/fsys/hw_fsys.c
index c96284e..be698b2 100644
--- a/agent/mibgroup/hardware/fsys/hw_fsys.c
+++ b/agent/mibgroup/hardware/fsys/hw_fsys.c
@@ -321,19 +321,23 @@ netsnmp_fsys_avail( netsnmp_fsys_info *f) {
 
 /* recalculate f-size_32, used_32, avail_32 and units_32 from f-size  
comp.*/
 void
-netsnmp_fsys_calculate32( netsnmp_fsys_info *f)
+netsnmp_fsys_calculate32(netsnmp_fsys_info *f)
 {
 unsigned long long s = f-size;
-unsigned long long u = f-units;
-int factor = 0;
+unsigned shift = 0;
+
 while (s  INT32_MAX) {
 s = s  1;
-u = u  1;
-factor++;
+shift++;
 }
 
 f-size_32 = s;
-f-units_32 = u;
-f-avail_32 = f-avail  factor;
-f-used_32 = f-used  factor;
+f-units_32 = f-units  shift;
+f-avail_32 = f-avail  shift;
+f-used_32 = f-used  shift;
+
+DEBUGMSGTL((fsys, Results of 32-bit conversion: size %llu - %lu;
+units %llu - %lu; avail %llu - %lu; used %llu - %lu\n,
+   f-size, f-size_32, f-units, f-units_32,
+   f-avail, f-avail_32, f-used, f-used_32));
 }
++ net-snmp-5.7.1-fsys-memory-leak.patch ++
commit 6ef6907642247c663b9b8964b9fd44a211dbcaa7
Author: Bart Van Assche bvanass...@acm.org
Date:   Thu Oct 20 20:30:54 2011 +0200

CHANGES: snmpd: BUG: 3408398: Fix a memory leak in 
agent/mibgroup/hardware/fsys.

This memory leak was introduced via commit

commit net-snmp for openSUSE:Factory

2011-09-29 Thread h_root

Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory
checked in at Thu Sep 29 12:53:04 CEST 2011.




--- openSUSE:Factory/net-snmp/net-snmp.changes  2011-09-23 02:14:22.0 
+0200
+++ /mounts/work_src_done/STABLE/net-snmp/net-snmp.changes  2011-09-29 
02:53:08.0 +0200
@@ -1,0 +2,16 @@
+Thu Sep 29 00:44:40 UTC 2011 - lchiqui...@suse.com
+
+- update to version 5.7.1: minor release including some bug fixes
+
+---
+Fri Sep 16 17:24:39 UTC 2011 - jeng...@medozas.de
+
+- enable net-snmp-devel on all baselib architectures
+
+---
+Wed Sep 14 18:33:18 UTC 2011 - lchiqui...@suse.com
+
+- make sure all delegated requests are removed before closing an
+  AgentX session (bnc#670789)
+
+---

calling whatdependson for head-i586


Old:

  net-snmp-5.7.1.rc1.tar.bz2

New:

  net-snmp-5.7.1-agentx-crash.patch
  net-snmp-5.7.1.tar.bz2



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.hXPNDu/_old  2011-09-29 12:52:57.0 +0200
+++ /var/tmp/diff_new_pack.hXPNDu/_new  2011-09-29 12:52:57.0 +0200
@@ -45,7 +45,7 @@
 %endif
 #
 Url:http://sourceforge.net/projects/net-snmp
-Source: %{pkg_name}-%{version}.rc1.tar.bz2
+Source: %{pkg_name}-%{version}.tar.bz2
 Source1:rc.snmpd
 Source2:snmpd.conf
 Source3:README.SUSE
@@ -62,6 +62,7 @@
 Patch6: net-snmp-5.5.0-perl-tk-warning.patch
 Patch7: net-snmp-5.7.0-velocity-mib.patch
 Patch8: net-snmp-5.7.0-recognize-reiserfs.patch
+Patch9: net-snmp-5.7.1-agentx-crash.patch
 #
 Summary:SNMP Daemon
 
@@ -195,7 +196,7 @@
 G.S. Marzot gmar...@nortelnetworks.com
 
 %prep
-%setup -q -n %{pkg_name}-%{version}.rc1
+%setup -q -n %{pkg_name}-%{version}
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
@@ -203,6 +204,7 @@
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 %build
 MIBS=misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ baselibs.conf ++
--- /var/tmp/diff_new_pack.hXPNDu/_old  2011-09-29 12:52:57.0 +0200
+++ /var/tmp/diff_new_pack.hXPNDu/_new  2011-09-29 12:52:57.0 +0200
@@ -1,4 +1,4 @@
 libsnmp30
-arch ppc package net-snmp-devel
+net-snmp-devel
requires -net-snmp-targettype
requires libsnmp30-targettype = version

++ net-snmp-5.7.1-agentx-crash.patch ++
Index: net-snmp-5.7.1.rc1/agent/mibgroup/agentx/master_admin.c
===
--- net-snmp-5.7.1.rc1.orig/agent/mibgroup/agentx/master_admin.c
+++ net-snmp-5.7.1.rc1/agent/mibgroup/agentx/master_admin.c
@@ -135,11 +135,16 @@ close_agentx_session(netsnmp_session * s
  * requests, so that the delegated request will be completed and
  * further requests can be processed
  */
-netsnmp_remove_delegated_requests_for_session(session);
+   while (netsnmp_remove_delegated_requests_for_session(session)) {
+   DEBUGMSGTL((agentx/master, Continue removing delegated 
requests\n));
+   }
+
 if (session-subsession != NULL) {
 netsnmp_session *subsession = session-subsession;
 for(; subsession; subsession = subsession-next) {
-netsnmp_remove_delegated_requests_for_session(subsession);
+while 
(netsnmp_remove_delegated_requests_for_session(subsession)) {
+   DEBUGMSGTL((agentx/master, Continue removing 
delegated subsession requests\n));
+   }
 }
 }
 
++ net-snmp-5.7.1.rc1.tar.bz2 - net-snmp-5.7.1.tar.bz2 ++
 8489 lines of diff (skipped)






Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2011-09-01 Thread h_root

Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory
checked in at Thu Sep 1 12:08:07 CEST 2011.




--- net-snmp/net-snmp.changes   2011-05-19 14:43:36.0 +0200
+++ /mounts/work_src_done/STABLE/net-snmp/net-snmp.changes  2011-07-14 
19:47:53.0 +0200
@@ -1,0 +2,18 @@
+Thu Jul 14 17:46:57 UTC 2011 - lchiqui...@novell.com
+
+- update upstream patches from branch V5-7-patches to 20110714
+
+---
+Tue Jul  5 12:28:00 UTC 2011 - lchiqui...@novell.com
+
+- update to version 5.7:
+  new features and lots of bug fixes
+- remove patches that are no longer needed:
+  net-snmp-5.6.0-enable-hrh-filesys.patch
+  net-snmp-5.6.1-recognize-jfs-and-xfs.patch
+  net-snmp-5.6.1-rpm490.patch
+- refresh and rename patches to apply cleanly after update:
+  net-snmp-5.7.0-pie.patch
+  net-snmp-5.7.0-velocity-mib.patch
+
+---

calling whatdependson for head-i586


Old:

  net-snmp-5.5.0-velocity-mib.patch
  net-snmp-5.6.0-enable-hrh-filesys.patch
  net-snmp-5.6.0-pie.patch
  net-snmp-5.6.1-recognize-jfs-and-xfs.patch
  net-snmp-5.6.1-rpm490.patch
  net-snmp-5.6.1-upstream-20110512.patch.bz2
  net-snmp-5.6.1.tar.bz2

New:

  net-snmp-5.7-upstream-20110714.patch.bz2
  net-snmp-5.7.0-pie.patch
  net-snmp-5.7.0-velocity-mib.patch
  net-snmp-5.7.tar.bz2



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.uSgJaV/_old  2011-09-01 12:06:09.0 +0200
+++ /var/tmp/diff_new_pack.uSgJaV/_new  2011-09-01 12:06:09.0 +0200
@@ -27,8 +27,8 @@
 %define netsnmp_agentx_socket_dir_rfc /var/agentx
 
 Name:   net-snmp
-Version:5.6.1
-Release:10
+Version:5.7
+Release:1
 License:BSD3c(or similar) ; MIT License (or similar)
 Group:  Productivity/Networking/Other
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -55,17 +55,15 @@
 Source7:net-snmp.sysconfig
 Source8:net-snmp-rpmlintrc
 Source9:baselibs.conf
-Patch0: net-snmp-5.6.1-upstream-20110512.patch.bz2
+%define patchdate 20110714
+Patch0: net-snmp-%{version}-upstream-%{patchdate}.patch.bz2
 # unused patch atm
 Patch1: net-snmp-5.5.0-socket-path.patch
 Patch2: net-snmp-5.5.0-testing-empty-arptable.patch
-Patch3: net-snmp-5.6.0-pie.patch
+Patch3: net-snmp-5.7.0-pie.patch
 Patch5: net-snmp-5.6.1-net-snmp-config-headercheck.patch
 Patch6: net-snmp-5.5.0-perl-tk-warning.patch
-Patch7: net-snmp-5.5.0-velocity-mib.patch
-Patch9: net-snmp-5.6.0-enable-hrh-filesys.patch
-Patch10:net-snmp-5.6.1-recognize-jfs-and-xfs.patch
-Patch11:net-snmp-5.6.1-rpm490.patch
+Patch7: net-snmp-5.7.0-velocity-mib.patch
 #
 Summary:SNMP Daemon
 
@@ -90,9 +88,9 @@
 
 Wes Hardaker harda...@users.sourceforge.net
 
-%define library_name libsnmp25
+%define library_name libsnmp30
 
-%package -n libsnmp25
+%package -n libsnmp30
 License:BSD3c(or similar) ; MIT License (or similar)
 Group:  Productivity/Networking/Other
 Requires:   snmp-mibs = %{version}
@@ -100,7 +98,7 @@
 #
 Summary:Shared Libraries from net-snmp
 
-%description -n libsnmp25
+%description -n libsnmp30
 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:
 
@@ -207,9 +205,6 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
-%patch9 -p1
-%patch10 -p1
-%patch11 -p1
 
 %build
 MIBS=misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ net-snmp-5.6.1-upstream-20110512.patch.bz2 - 
net-snmp-5.7-upstream-20110714.patch.bz2 ++
Files net-snmp/net-snmp-5.6.1-upstream-20110512.patch.bz2 and 
/mounts/work_src_done/STABLE/net-snmp/net-snmp-5.7-upstream-20110714.patch.bz2 
differ

++ net-snmp-5.6.0-pie.patch - net-snmp-5.7.0-pie.patch ++
--- net-snmp/net-snmp-5.6.0-pie.patch   2010-10-20 03:09:59.0 +0200
+++ /mounts/work_src_done/STABLE/net-snmp/net-snmp-5.7.0-pie.patch  
2011-07-05 20:55:43.0 +0200
@@ -1,8 +1,8 @@
-Index: net-snmp-5.6/agent/Makefile.in
+Index: net-snmp-5.7/agent/Makefile.in
 ===
 net-snmp-5.6.orig/agent/Makefile.in
-+++ net-snmp-5.6/agent/Makefile.in
-@@ -245,7 +245,7 @@ getmibstat.o: mibgroup/kernel_sunos5.c
+--- net-snmp-5.7.orig/agent/Makefile.in
 net-snmp-5.7/agent/Makefile.in
+@@ -294,7 +294,7 @@ getmibstat.o: mibgroup/kernel_sunos5.c
$(CC) $(CFLAGS) -o $@ -D_GETMIBSTAT_TEST -DDODEBUG -c $? 
  
  snmpd$(EXEEXT):   ${LAGENTOBJS} $(USELIBS) $(AGENTLIB) $(MIBLIB) 
$(LIBTARG) 
@@ -11,11 +11,11 @@
  
  
  libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION):${LLIBAGENTOBJS} $(USELIBS)
-Index: 

commit net-snmp for openSUSE:Factory

2011-05-19 Thread h_root

Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory
checked in at Thu May 19 16:06:34 CEST 2011.




--- net-snmp/net-snmp.changes   2011-05-12 16:47:31.0 +0200
+++ /mounts/work_src_done/STABLE/net-snmp/net-snmp.changes  2011-05-19 
14:43:36.0 +0200
@@ -1,0 +2,5 @@
+Thu May 19 14:43:13 CEST 2011 - m...@suse.de
+
+- switch from rpmdb to rpmts to support rpm-4.9.0
+
+---

calling whatdependson for head-i586


New:

  net-snmp-5.6.1-rpm490.patch



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.IMtM4J/_old  2011-05-19 16:05:45.0 +0200
+++ /var/tmp/diff_new_pack.IMtM4J/_new  2011-05-19 16:05:45.0 +0200
@@ -28,7 +28,7 @@
 
 Name:   net-snmp
 Version:5.6.1
-Release:8
+Release:10
 License:BSD3c(or similar) ; MIT License (or similar)
 Group:  Productivity/Networking/Other
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -65,6 +65,7 @@
 Patch7: net-snmp-5.5.0-velocity-mib.patch
 Patch9: net-snmp-5.6.0-enable-hrh-filesys.patch
 Patch10:net-snmp-5.6.1-recognize-jfs-and-xfs.patch
+Patch11:net-snmp-5.6.1-rpm490.patch
 #
 Summary:SNMP Daemon
 
@@ -208,6 +209,7 @@
 %patch7 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
 
 %build
 MIBS=misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ net-snmp-5.6.1-rpm490.patch ++
--- net-snmp-5.6.1/agent/mibgroup/host/data_access/swinst_rpm.c.orig
2011-05-19 13:09:07.0 +
+++ net-snmp-5.6.1/agent/mibgroup/host/data_access/swinst_rpm.c 2011-05-19 
13:13:43.0 +
@@ -34,6 +34,7 @@
 #endif
 #ifdef HAVE_RPM_RPMDB_H
 #include rpm/rpmdb.h
+#include rpm/rpmts.h
 #endif
 
 #include net-snmp/net-snmp-includes.h
@@ -96,9 +97,9 @@ netsnmp_swinst_arch_shutdown(void)
 int
 netsnmp_swinst_arch_load( netsnmp_container *container, u_int flags)
 {
-rpmdb db;
+rpmts ts;
 
-#if defined(RPMDBI_PACKAGES)
+#if 1 /* defined(RPMDBI_PACKAGES) */
 rpmdbMatchIteratormi;
 #else
 int   offset;
@@ -111,11 +112,12 @@ netsnmp_swinst_arch_load( netsnmp_contai
 int   rc, i = 1;
 netsnmp_swinst_entry *entry;
 
-if (rpmdbOpen(, db, O_RDONLY, 0644))
-   NETSNMP_LOGONCE((LOG_ERR, rpmdbOpen() failed\n));
+ts = rpmtsCreate();
+if (rpmtsOpenDB(ts, O_RDONLY))
+   NETSNMP_LOGONCE((LOG_ERR, rpmtsOpenDB() failed\n));
 
-#if defined(RPMDBI_PACKAGES)
-mi = rpmdbInitIterator( db, RPMDBI_PACKAGES, NULL, 0);
+#if 1 /* defined(RPMDBI_PACKAGES) */
+mi = rpmtsInitIterator( ts, RPMDBI_PACKAGES, NULL, 0);
 while (NULL != (h = rpmdbNextIterator( mi )))
 #else
 for (offset  = rpmdbFirstRecNum( db );
@@ -129,7 +131,7 @@ netsnmp_swinst_arch_load( netsnmp_contai
 continue;   /* error already logged by function */
 rc = CONTAINER_INSERT(container, entry);
 
-#if defined(RPMDBI_PACKAGES)
+#if 1 /* defined(RPMDBI_PACKAGES) */
 h = headerLink( h );
 #else
 h = rpmdbGetRecord( db, offset );
@@ -154,10 +156,11 @@ netsnmp_swinst_arch_load( netsnmp_contai
 
 headerFree( h );
 }
-#if defined(RPMDBI_PACKAGES)
+#if 1 /* defined(RPMDBI_PACKAGES) */
 rpmdbFreeIterator( mi );
 #endif
-rpmdbClose( db );
+
+rpmtsFree( ts );
 
 DEBUGMSGTL((swinst:load:arch, loaded %d entries\n,
 (int)CONTAINER_SIZE(container)));
--- net-snmp-5.6.1/agent/mibgroup/host/hr_swinst.c.orig 2011-05-19 
12:33:25.0 +
+++ net-snmp-5.6.1/agent/mibgroup/host/hr_swinst.c  2011-05-19 
13:01:12.0 +
@@ -43,6 +43,7 @@
 #ifdef HAVE_LIBRPM
 #include rpm/rpmlib.h
 #include rpm/header.h
+#include rpm/rpmts.h
 #include fcntl.h
 
 #ifdef HAVE_RPM_RPMFILEUTIL_H
@@ -113,7 +114,7 @@ typedef struct {
 int swi_maxrec; /* no. of allocations */
 int swi_nrec;   /* no. of valid offsets */
 int*swi_recs;   /* db record offsets */
-rpmdb   swi_rpmdb;
+rpmts   swi_rpmts;
 Header  swi_h;
 int swi_prevx;
 #else
@@ -567,10 +568,11 @@ Check_HRSW_cache(void *xxx)
 int ix = 0;
 int offset;
 
-#if defined(RPMDBI_PACKAGES)
+   
+#if 1 /* defined(RPMDBI_PACKAGES) */
 rpmdbMatchIterator mi = NULL;
 Header  h;
-mi = rpmdbInitIterator(swi-swi_rpmdb, RPMDBI_PACKAGES, NULL, 0);
+mi = rpmtsInitIterator(swi-swi_rpmts, RPMDBI_PACKAGES, NULL, 0);
 while ((h = rpmdbNextIterator(mi)) != NULL) {
 offset = rpmdbGetIteratorOffset(mi);
 #else
@@ -588,7 +590,7 @@ Check_HRSW_cache(void *xxx)
 }
 swi-swi_recs[ix++] = offset;
 
-#if !defined(RPMDBI_PACKAGES)
+#if 0 /* 

commit net-snmp for openSUSE:Factory

2011-05-16 Thread h_root

Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory
checked in at Mon May 16 16:32:45 CEST 2011.




--- net-snmp/net-snmp.changes   2011-04-13 19:57:20.0 +0200
+++ /mounts/work_src_done/STABLE/net-snmp/net-snmp.changes  2011-05-12 
16:47:31.0 +0200
@@ -1,0 +2,5 @@
+Thu May 12 14:49:34 UTC 2011 - lchiqui...@novell.com
+
+- update upstream patches from branch V5-6-patches to 20110512
+
+---

calling whatdependson for head-i586


Old:

  net-snmp-5.6.1-upstream-20110328.patch.bz2

New:

  net-snmp-5.6.1-upstream-20110512.patch.bz2



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.ffRLQv/_old  2011-05-16 16:26:46.0 +0200
+++ /var/tmp/diff_new_pack.ffRLQv/_new  2011-05-16 16:26:46.0 +0200
@@ -28,7 +28,7 @@
 
 Name:   net-snmp
 Version:5.6.1
-Release:6
+Release:8
 License:BSD3c(or similar) ; MIT License (or similar)
 Group:  Productivity/Networking/Other
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -55,7 +55,7 @@
 Source7:net-snmp.sysconfig
 Source8:net-snmp-rpmlintrc
 Source9:baselibs.conf
-Patch0: net-snmp-5.6.1-upstream-20110328.patch.bz2
+Patch0: net-snmp-5.6.1-upstream-20110512.patch.bz2
 # unused patch atm
 Patch1: net-snmp-5.5.0-socket-path.patch
 Patch2: net-snmp-5.5.0-testing-empty-arptable.patch

++ net-snmp-5.6.1-upstream-20110328.patch.bz2 - 
net-snmp-5.6.1-upstream-20110512.patch.bz2 ++
Files net-snmp/net-snmp-5.6.1-upstream-20110328.patch.bz2 and 
/mounts/work_src_done/STABLE/net-snmp/net-snmp-5.6.1-upstream-20110512.patch.bz2
 differ






Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit net-snmp for openSUSE:Factory

2011-04-14 Thread h_root

Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory
checked in at Thu Apr 14 14:33:04 CEST 2011.




--- net-snmp/net-snmp.changes   2011-01-04 12:34:47.0 +0100
+++ /mounts/work_src_done/STABLE/net-snmp/net-snmp.changes  2011-04-13 
19:57:20.0 +0200
@@ -1,0 +2,10 @@
+Wed Apr 13 17:30:28 UTC 2011 - lchiqui...@novell.com
+
+- add JFS and XFS to the list of known file systems (bnc#687327)
+
+---
+Mon Mar 28 18:53:16 UTC 2011 - lchiqui...@novell.com
+
+- update upstream patches from branch V5-6-patches to 20110328
+
+---

calling whatdependson for head-i586


Old:

  net-snmp-5.6.0-net-snmp-config-headercheck.patch
  net-snmp-5.6.1-upstream-20110104.patch.bz2

New:

  net-snmp-5.6.1-net-snmp-config-headercheck.patch
  net-snmp-5.6.1-recognize-jfs-and-xfs.patch
  net-snmp-5.6.1-upstream-20110328.patch.bz2



Other differences:
--
++ net-snmp.spec ++
--- /var/tmp/diff_new_pack.SZ7xDI/_old  2011-04-14 14:32:09.0 +0200
+++ /var/tmp/diff_new_pack.SZ7xDI/_new  2011-04-14 14:32:09.0 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package net-snmp (Version 5.6.1)
+# spec file for package net-snmp
 #
 # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
@@ -28,7 +28,7 @@
 
 Name:   net-snmp
 Version:5.6.1
-Release:1
+Release:6
 License:BSD3c(or similar) ; MIT License (or similar)
 Group:  Productivity/Networking/Other
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -55,15 +55,16 @@
 Source7:net-snmp.sysconfig
 Source8:net-snmp-rpmlintrc
 Source9:baselibs.conf
-Patch0: net-snmp-5.6.1-upstream-20110104.patch.bz2
+Patch0: net-snmp-5.6.1-upstream-20110328.patch.bz2
 # unused patch atm
 Patch1: net-snmp-5.5.0-socket-path.patch
 Patch2: net-snmp-5.5.0-testing-empty-arptable.patch
 Patch3: net-snmp-5.6.0-pie.patch
-Patch5: net-snmp-5.6.0-net-snmp-config-headercheck.patch
+Patch5: net-snmp-5.6.1-net-snmp-config-headercheck.patch
 Patch6: net-snmp-5.5.0-perl-tk-warning.patch
 Patch7: net-snmp-5.5.0-velocity-mib.patch
 Patch9: net-snmp-5.6.0-enable-hrh-filesys.patch
+Patch10:net-snmp-5.6.1-recognize-jfs-and-xfs.patch
 #
 Summary:SNMP Daemon
 
@@ -206,6 +207,7 @@
 %patch6 -p1
 %patch7 -p1
 %patch9 -p1
+%patch10 -p1
 
 %build
 MIBS=misc/ipfwacc ucd-snmp/diskio etherlike-mib rmon-mib velocity smux \

++ net-snmp-5.6.0-net-snmp-config-headercheck.patch - 
net-snmp-5.6.1-net-snmp-config-headercheck.patch ++
--- net-snmp/net-snmp-5.6.0-net-snmp-config-headercheck.patch   2010-10-20 
03:09:58.0 +0200
+++ 
/mounts/work_src_done/STABLE/net-snmp/net-snmp-5.6.1-net-snmp-config-headercheck.patch
  2011-03-28 22:37:52.0 +0200
@@ -1,7 +1,7 @@
-Index: net-snmp-5.6/net-snmp-config.in
+Index: net-snmp-5.6.1/net-snmp-config.in
 ===
 net-snmp-5.6.orig/net-snmp-config.in
-+++ net-snmp-5.6/net-snmp-config.in
+--- net-snmp-5.6.1.orig/net-snmp-config.in
 net-snmp-5.6.1/net-snmp-config.in
 @@ -41,6 +41,14 @@ count()
  echo $#
  }
@@ -17,7 +17,7 @@
  prefix=@prefix@
  exec_prefix=@exec_prefix@
  includedir=@includedir@
-@@ -127,9 +135,11 @@ else
+@@ -138,9 +146,11 @@ else
;;
   compile
  --base-cflags)
@@ -29,7 +29,7 @@
echo @CFLAGS@ @DEVFLAGS@ @CPPFLAGS@ -I. -I${NSC_INCLUDEDIR}
;;
  --srcdir)
-@@ -140,6 +150,7 @@ else
+@@ -151,6 +161,7 @@ else
echo $NSC_LIBDIR
;;
  --ldflags|--ld*)
@@ -37,34 +37,34 @@
echo $NSC_LDFLAGS
;;
  --build-lib-dirs)
-@@ -177,29 +188,37 @@ else
+@@ -188,29 +199,37 @@ else
   client lib
  --libs)
# use this one == --netsnmp-libs + --external-libs
 +  check_devel_files
-   echo $NSC_LDFLAGS $NSC_LIBDIR -lnetsnmp $NSC_LIBS $NSC_LNETSNMPLIBS
+   echo $NSC_LDFLAGS $NSC_LIBDIR $NSC_SNMPLIBS $NSC_LIBS
;;
  --netsnmp-libs)
 +  check_devel_files
-   echo $NSC_LIBDIR -lnetsnmp
+   echo $NSC_LIBDIR $NSC_BASE_SNMP_LIBS
;;
  --external-libs)
 +  check_devel_files
-   echo $NSC_LDFLAGS $NSC_LIBS $NSC_LNETSNMPLIBS
+   echo $NSC_LDFLAGS $NSC_LNETSNMPLIBS $NSC_LIBS
;;
   agent lib
  --base-agent-libs)
 +  check_devel_files
-   echo $NSC_BASE_AGENT_LIBS $NSC_LNETSNMPLIBS
+   echo $NSC_BASE_AGENT_LIBS
;;
  --base-subagent-libs)
 +  check_devel_files
echo $NSC_BASE_SUBAGENT_LIBS
;;