--- libsnmp-session-perl-1.13.orig/lib/SNMP_Session.pm +++ libsnmp-session-perl-1.13/lib/SNMP_Session.pm @@ -146,7 +146,7 @@ if (eval {local $SIG{__DIE__};require Socket6;} && eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) { - import Socket6; + Socket6->import(qw(inet_pton getaddrinfo)); $ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1"))); $SNMP_Session::ipv6available = 1; } @@ -605,7 +605,7 @@ BEGIN { if($SNMP_Session::ipv6available) { import IO::Socket::INET6; - import Socket6; + Socket6->import(qw(inet_pton getaddrinfo)); } } --- libsnmp-session-perl-1.13.orig/debian/doc-base.package +++ libsnmp-session-perl-1.13/debian/doc-base.package @@ -0,0 +1,12 @@ +Document: libsnmp-session-perl +Title: SNMP_Session Manual +Author: Simon Leinen +Abstract: This manual describes what libsnmp-session-perl is + and how it can be used to access SNMP-aware devices from + within Perl applications +Section: Programming + +Format: HTML +Index: /usr/share/doc/libsnmp-session-perl/snmp-session.html +Files: /usr/share/doc/libsnmp-session-perl/snmp-session.html + --- libsnmp-session-perl-1.13.orig/debian/rules +++ libsnmp-session-perl-1.13/debian/rules @@ -0,0 +1,95 @@ +#!/usr/bin/make -f +#-*- makefile -*- +# Made with the aid of dh_make, by Craig Small +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +# Some lines taken from debmake, by Christoph Lameter. + +PACKAGE=libsnmp-session-perl + +ifndef PERL + PERL=/usr/bin/perl +endif + +TMP=`pwd`/debian/$(PACKAGE) +archlib=`$(PERL) -MConfig -e 'print $$Config{installarchlib}'` +config=INSTALLDIRS=perl INSTALLMAN1DIR=$(TMP)/usr/share/man/man1 INSTALLMAN3DIR=$(TMP)/usr/share/man/man3 INSTALLPRIVLIB=$(TMP)/usr/share/perl5 INSTALLARCHLIB=$(TMP)$(archlib) + + +build: build-stamp +build-stamp: + dh_testdir + + $(PERL) Makefile.PL $(config) + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + + [ ! -f Makefile ] || $(MAKE) clean + -rm -f Makefile.old + + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) pure_install + mkdir -p $(TMP)/usr/share/doc/$(PACKAGE) + cp -a index.html $(TMP)/usr/share/doc/$(PACKAGE)/snmp-session.html + + # Clean up + -find $(TMP) -type f -name .packlist | xargs -r rm -f + -find $(TMP) -type d -empty | xargs -r rmdir -p + + # Now we do the examples + cp -a test $(TMP)/usr/share/doc/$(PACKAGE)/examples + # Now we fix up the path to perl in the examples + -$(PERL) -i -p -e "s%/usr/local/bin/perl%/usr/bin/perl%;" $(TMP)/usr/share/doc/$(PACKAGE)/examples/* + -chmod 755 $(TMP)/usr/share/doc/$(PACKAGE)/examples/*.pl + -chmod 755 $(TMP)/usr/share/doc/$(PACKAGE)/examples/sun-find-process + + touch install-stamp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit + dh_installcron +# dh_installman + dh_installinfo + dh_installchangelogs + dh_link + dh_strip + dh_compress -Xexamples/ + dh_fixperms + dh_installdeb + dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + + +# Build architecture-dependent files here. +binary-arch: build install +# We do nothing here + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libsnmp-session-perl-1.13.orig/debian/control +++ libsnmp-session-perl-1.13/debian/control @@ -0,0 +1,19 @@ +Source: libsnmp-session-perl +Section: perl +Priority: extra +Maintainer: Jochen Friedrich +Standards-Version: 3.8.3 +Build-Depends: debhelper (>= 5) +Homepage: http://www.switch.ch/misc/leinen/snmp/perl/ + +Package: libsnmp-session-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends} +Conflicts: mrtg (<= 2.8.7) +Recommends: libsocket6-perl, libio-socket-inet6-perl +Description: Perl support for accessing SNMP-aware devices + SNMP_Session contains support for accessing SNMP-aware devices (routers, + network interfaces of machines running an SNMP daemon, Squid, etc) from + within Perl applications. + . + For more information, see http://www.switch.ch/misc/leinen/snmp/perl/. --- libsnmp-session-perl-1.13.orig/debian/changelog +++ libsnmp-session-perl-1.13/debian/changelog @@ -0,0 +1,217 @@ +libsnmp-session-perl (1.13-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "Warnings from SNMP_Session.pm": + apply modified patch from upstream bug tracker at + https://code.google.com/p/snmp-session/issues/detail?id=5 + (Closes: #628804) + Thanks also to Geoff Crompton who came up with the same patch. + This should also fix mrtg's #629331. + + -- gregor herrmann Sat, 18 May 2013 13:06:58 +0200 + +libsnmp-session-perl (1.13-1) unstable; urgency=low + + * New upstream release + o SNMP_util.pm: + - Parse OIDs in NOTIFICATION-TYPE names. Change by Mike + Mitchell/jaccobs. + o SNMP_Session.pm: + - Fixed the optional socket-reuse code to handle IPv4 and IPv6 sockets + separately. + * Bumped Standards version to 3.8.3 (no changes). + * Changed watch file to point to google code. + + -- Jochen Friedrich Wed, 14 Oct 2009 13:44:47 +0200 + +libsnmp-session-perl (1.12-1) unstable; urgency=low + + * New upstream release + o SNMP_util.pm: + - Rewritten MIB parsing code from Mike Mitchell. + o SNMP_Session.pm: + - Upgraded to Artistic License 2.0 upon a suggestion from Tom Callaway. + * Bumped standards version to 3.7.3. + * Added homepage tag to control. + + -- Jochen Friedrich Tue, 01 Apr 2008 16:35:35 +0200 + +libsnmp-session-perl (1.11-1) unstable; urgency=low + + * New upstream release + o SNMP_util.pm: + - Improvement to loop detection in snmpwalk. Should cope with more + broken agents. Change by Mike Mitchell. + + -- Jochen Friedrich Mon, 12 Nov 2007 17:28:38 +0100 + +libsnmp-session-perl (1.10-1) unstable; urgency=low + + * New upstream release + o SNMP_Session.pm: + - Mike Fischer reported that on some systems, notably Linux, recv() may + block even though a preceding select() for readability has returned + successfully. Once condition where this can happen is when a UDP checksum + on an incoming datagram doesn't verify. To avoid our library from + blocking in this case, we have to pass MSG_DONTWAIT to recv(). This + behaviour is selected by a new optional argument to receive_response_3, + and used by request_response_5. + o SNMP_util.pm: + - Fix from Mike Mitchell for parsing qualified symbolic OIDs. + * Update Standards-Version to 3.7.2 + * Fix lintian warning: debian-rules-ignores-make-clean-error + * Fix lintian error: clean-should-be-satisfied-by-build-depends + + -- Jochen Friedrich Wed, 01 Aug 2007 19:16:11 +0200 + +libsnmp-session-perl (1.08-1) unstable; urgency=low + + * New upstream release + o SNMP_Session.pm: + - Fixed a bug in the SNMPv2c version of map_table_start_end that would + cause errors when the $end argument is actually being used. Thanks to Jan + van Keulen for submitting the patch. + + -- Jochen Friedrich Mon, 19 Dec 2005 16:32:36 +0100 + +libsnmp-session-perl (1.07-1) unstable; urgency=low + + * New upstream release + o SNMP_Session.pm: + - Fixed strict subs error with newer versions of Perl. + Thanks to Gerry Dalton for spotting this. + * Really updated watch file. + + -- Jochen Friedrich Sat, 30 Oct 2004 13:49:35 +0200 + +libsnmp-session-perl (1.06-1) unstable; urgency=low + + * New upstream release + o SNMP_Session.pm: + - Decode_trap_request now understands SNMPv2 inform requests in addition to + SNMPv1 traps and SNMPv2 traps. Contributed by Andrew Cornford-Matheson. + * Updated watch file. + + -- Jochen Friedrich Thu, 9 Sep 2004 23:57:54 +0200 + +libsnmp-session-perl (1.05-1) unstable; urgency=low + + * New upstream release + o SNMP_util.pm: + - The subroutines snmpget, snmpgetnext and snmpset will now detect when + they are called in scalar context, and return only the first (and + typically the only) of the retrieved values in this case. + o BER.pm: + - Internal restructuring: The new (BER.pm 1.02) pretty-printer + registration method is now used for most standard SNMP types, too. + + -- Jochen Friedrich Sat, 31 Jul 2004 09:27:08 +0200 + +libsnmp-session-perl (1.03-1) unstable; urgency=low + + * New upstream release + o SNMP_util.pm: + - Added a missing part of Mike Mitchell pretty-printer + registration patch. + - snmpwalkhash now takes an additional optional argument that should be a + reference to a hash. If used, snmpwalkhash will insert the retrieved + values into that hash. + o BER.pm: + - Additional decoders (``pretty printers'') can now be registered + and unregistered for type codes using the register_pretty_printer and + unregister_pretty_printer subroutines. Implemented by Mike Mitchell. + - Corrected encoding of large integer-like values. + - Properly parse the variant length format in integers. Thanks to Milen + Pavlov for pointing out this bug. Also, decoding should be slightly + more efficient in general, because one substr() operation per (sub-) + object has been eliminated. + + -- Jochen Friedrich Sat, 3 Jul 2004 17:59:44 +0200 + +libsnmp-session-perl (1.00-1) unstable; urgency=low + + * New upstream release + o Added Luc Pauwels' implementation of the use_16bit_request_ids option.i + Some SMC devices seem to require this. + o Improved request ID generation so that avoid_negative_request_ids + is always obeyed. + o Added Gauge32 support to snmpset. Thanks to Christopher J. Tengi for + the idea. Mike Mitchell provided new code that supports all known types. + o Portability fix in IPv6 support. + o Support encoding of OIDs containing multiple quoted strings. + * Added debian/watch file + + -- Jochen Friedrich Wed, 25 Feb 2004 23:40:18 +0100 + +libsnmp-session-perl (0.97-2) unstable; urgency=low + + * Removed unnecessary extra files. + * Removed debian/dirs. + * Fixed section according to perl policy. + + -- Jochen Friedrich Wed, 10 Sep 2003 17:26:15 +0200 + +libsnmp-session-perl (0.97-1) unstable; urgency=low + + * New upstream release + - Added support for TimeTicks values in snmpset. + - Exported $SNMP_Session::default_avoid_negative_request_ids. + - IPv6 support. + * New maintainer (Closes: #201362) + * Bumped policy up to 3.6.1 + * Set debhelper compat level to 4. Set Build-Depends to >=4. + * Included changes of Non Maintainer Upload. Thanks to + Paul Slootman . + + -- Jochen Friedrich Sun, 7 Sep 2003 09:57:38 +0200 + +libsnmp-session-perl (0.95-0.1) unstable; urgency=low + + * NMU + * New upstream release, needed for latest mrtg. + * Install into /usr/share/perl5 instead of /usr/lib/perl5. + * Updated copyright file. + * Removed explicit depends on perl 5.00xx + * Changed Build-Depends into Build-Depends-Indep. + + -- Paul Slootman Fri, 16 May 2003 11:14:02 +0200 + +libsnmp-session-perl (0.90-1) unstable; urgency=low + + * New upstream release (Closes: #127414). + + -- Michael-John Turner Sat, 5 Jan 2002 17:18:59 +0200 + +libsnmp-session-perl (0.86-1) unstable; urgency=low + + * New upstream release. + + -- Michael-John Turner Sat, 9 Jun 2001 20:51:07 +0200 + +libsnmp-session-perl (0.83-1) unstable; urgency=low + + * New upstream release. + + -- Michael-John Turner Sun, 14 Jan 2001 15:27:02 +0200 + +libsnmp-session-perl (0.80-1) unstable; urgency=low + + * New upstream release (Closes: #76531). + + -- Michael-John Turner Thu, 9 Nov 2000 20:56:07 +0200 + +libsnmp-session-perl (0.79-1) unstable; urgency=low + + * New upstream release. + + -- Michael-John Turner Fri, 20 Oct 2000 23:21:39 +0200 + +libsnmp-session-perl (0.75-1) unstable; urgency=low + + * Initial Release. + + -- Michael-John Turner Wed, 15 Sep 1999 14:27:09 +0200 + +Local variables: +mode: debian-changelog +End: --- libsnmp-session-perl-1.13.orig/debian/compat +++ libsnmp-session-perl-1.13/debian/compat @@ -0,0 +1 @@ +5 --- libsnmp-session-perl-1.13.orig/debian/README.Debian +++ libsnmp-session-perl-1.13/debian/README.Debian @@ -0,0 +1,7 @@ +libsnmp-session-perl for Debian +-------------------------------- + +This is the SNMP_Session Perl module that used to be included with MRTG. +As it's useful on its own, it's been split from that package. + + -- Michael-John Turner , Wed, 15 Sep 1999 14:27:09 +0200 --- libsnmp-session-perl-1.13.orig/debian/copyright +++ libsnmp-session-perl-1.13/debian/copyright @@ -0,0 +1,19 @@ +This package was debianized by Michael-John Turner on +Wed, 15 Sep 1999 14:27:09 +0200. + +It is now maintained by Jochen Friedrich on +Sun, 7 Sep 2003 01:43:18 +0200 + +It was downloaded from http://www.switch.ch/misc/leinen/snmp/perl/index.html + +Upstream author: Simon Leinen + +Copyright: + +SNMP_Session.pm Copyright (c) 1995-2008, Simon Leinen. +SNMP_util.pm Copyright (c) 1998-2007, Mike Mitchell. +BER.pm Copyright (c) 1995-2008, Simon Leinen. + +This program is free software; you can redistribute it under the +"Artistic License 2.0" included in this distribution (file "Artistic.gz"). + --- libsnmp-session-perl-1.13.orig/debian/docs +++ libsnmp-session-perl-1.13/debian/docs @@ -0,0 +1,3 @@ +README +README.SNMP_util +Artistic --- libsnmp-session-perl-1.13.orig/debian/watch +++ libsnmp-session-perl-1.13/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://code.google.com/p/snmp-session/downloads/list (?:.*/)?SNMP_Session-(.+)\.tar\.gz