[libnet-snmp-perl] 02/23: Import Debian changes 5.0.1-1

Roland Rosenfeld roland at moszumanska.debian.org
Mon Aug 21 20:43:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

roland pushed a commit to branch master
in repository libnet-snmp-perl.

commit 13a36e0a7daaae5d817bcfa503dbd8a07db193eb
Merge: 4c93adf 5ec42a7
Author: Jochen Friedrich <jochen at scram.de>
Date:   Sat Nov 13 13:18:01 2004 +0100

    Import Debian changes 5.0.1-1
    
    libnet-snmp-perl (5.0.1-1) unstable; urgency=low
    
      * New maintainer (Closes: #279795)
      * New upstream release
      * Updated policy to 3.6.1
      * Added watch file
    
    libnet-snmp-perl (4.0.3-1) unstable; urgency=low
    
      * New maintainer.
      * New upstream release which should address memory leaks,
      Closes: #165659, #178075
      * Alter path to perl in examples,
      Closes: #166767
    
    libnet-snmp-perl (4.0.2-1) unstable; urgency=low
    
      * New upstream release
      * Added link to /usr/share/doc/perl/copyright (Closes: #157631)

 Changes                            |  152 +-
 MANIFEST                           |   20 +-
 Makefile.PL                        |   39 +-
 README                             |   60 +-
 debian/changelog                   |   26 +
 debian/control                     |   16 +-
 debian/copyright                   |   28 +-
 debian/rules                       |   74 +-
 debian/watch                       |    6 +
 examples/example1.pl               |   26 +-
 examples/example2.pl               |   34 +-
 examples/example3.pl               |  149 +-
 examples/example4.pl               |  119 +
 examples/snmpget.pl                |   89 +-
 examples/snmpgetbulk.pl            |   94 +-
 examples/snmpgetnext.pl            |   88 +-
 examples/snmpset.pl                |  125 +-
 examples/snmpwalk.pl               |  129 +-
 examples/table.pl                  |   90 +-
 examples/trap.pl                   |   63 +-
 lib/Net/SNMP.pm                    | 7053 +++++++++++++-----------------------
 lib/Net/SNMP/Dispatcher.pm         |  706 ++++
 lib/Net/SNMP/Message.pm            | 1897 ++++++++++
 lib/Net/SNMP/MessageProcessing.pm  |  473 +++
 lib/Net/SNMP/PDU.pm                | 1002 +++++
 lib/Net/SNMP/Security.pm           |  244 ++
 lib/Net/SNMP/Security/Community.pm |  195 +
 lib/Net/SNMP/Security/USM.pm       | 1816 ++++++++++
 lib/Net/SNMP/Transport.pm          |  699 ++++
 lib/Net/SNMP/Transport/TCP.pm      |  300 ++
 lib/Net/SNMP/Transport/TCP6.pm     |  154 +
 lib/Net/SNMP/Transport/UDP.pm      |  157 +
 lib/Net/SNMP/Transport/UDP6.pm     |  154 +
 snmpkey                            |  136 +
 snmpkey.PL                         |  172 +
 t/ber.t                            |  123 +
 t/mp.t                             |  123 +
 t/require.t                        |   44 -
 t/socket.t                         |   39 -
 t/using.t                          |   66 -
 t/usm.t                            |  255 ++
 41 files changed, 12139 insertions(+), 5096 deletions(-)

diff --cc debian/changelog
index 36ad772,0000000..d7cefcc
mode 100644,000000..100644
--- a/debian/changelog
+++ b/debian/changelog
@@@ -1,45 -1,0 +1,71 @@@
++libnet-snmp-perl (5.0.1-1) unstable; urgency=low
++
++  * New maintainer (Closes: #279795)
++  * New upstream release
++  * Updated policy to 3.6.1
++  * Added watch file
++
++ -- Jochen Friedrich <jochen at scram.de>  Sat, 13 Nov 2004 13:18:01 +0100
++
++libnet-snmp-perl (4.0.3-1) unstable; urgency=low
++
++  * New maintainer.
++  * New upstream release which should address memory leaks,
++  Closes: #165659, #178075
++  * Alter path to perl in examples,
++  Closes: #166767
++
++ -- Stephen Zander <gibreel at debian.org>  Mon, 24 Feb 2003 04:40:32 -0800
++
++libnet-snmp-perl (4.0.2-1) unstable; urgency=low
++
++  * New upstream release
++  * Added link to /usr/share/doc/perl/copyright (Closes: #157631)
++
++ -- Javier Fernandez-Sanguino Pen~a <jfs at computer.org>  Mon,  2 Sep 2002 20:54:48 +0200
++
 +libnet-snmp-perl (3.6-7) unstable; urgency=low
 + 
 +  * Comply with modern Perl policy to avoid installing unnecessary .packlist
 +  files in /etc (closes: #114596, #132176).
 +  * Added changes suggested by Colin Watson (patch, this fix obsoletes
 +  the changes made but not commited in 3.6-6)
 + 
 + -- Javier Fernandez-Sanguino Pen~a <jfs at computer.org>  Sat,  9 Feb 2002 14:41:24 +0000
 +
 +libnet-snmp-perl (3.6-6) unstable; urgency=low
 +
 +  * Fixed examples /usr/local/bin
 +  * Removed senseless /etc/auto dirs
 +
 + -- Javier Fernandez-Sanguino Pen~a <jfs at computer.org>  Tue, 11 Sep 2001 23:20:22 +0200
 +
 +libnet-snmp-perl (3.6-5) unstable; urgency=low
 +
 +  * Changed debian/rules which should make it install the correct files
 +
 + -- Javier Fernandez-Sanguino Pen~a <jfs at computer.org>  Tue, 11 Sep 2001 22:45:00 +0200
 +
 +libnet-snmp-perl (3.6-4) unstable; urgency=high
 +
 +  * Fixed wrong location of directories due to PREFIX (Closes: #111843)
 +
 + -- Javier Fernandez-Sanguino Pen~a <jfs at computer.org>  Mon, 10 Sep 2001 18:37:17 +0200
 +
 +libnet-snmp-perl (3.6-3) unstable; urgency=low
 +
 +  * Fixed lintian errors, added build-depends
 +
 + -- Javier Fernandez-Sanguino Pen~a <jfs at computer.org>  Sat,  8 Sep 2001 19:16:24 +0200
 +
 +libnet-snmp-perl (3.6-2) unstable; urgency=low
 +
 +  * Fixed standards version (Closes 79706)
 +
 + -- Javier Fernandez-Sanguino Pen~a <jfs at computer.org>  Mon, 11 Jun 2001 21:39:57 +0200
 +
 +libnet-snmp-perl (3.6-1) unstable; urgency=low
 +
 +  * Initial debianization
 +
 + -- Javier Fernandez-Sanguino Pen~a <jfs at computer.org>  Mon, 16 Oct 2000 10:13:00 +0200
diff --cc debian/control
index 9c4f963,0000000..eb20390
mode 100644,000000..100644
--- a/debian/control
+++ b/debian/control
@@@ -1,20 -1,0 +1,22 @@@
 +Source: libnet-snmp-perl
- Maintainer: Javier Fernandez-Sanguino Pen~a <jfs at computer.org>
++Maintainer: Jochen Friedrich <jochen at scram.de>
 +Priority: optional
 +Section: interpreters
- Build-Depends-Indep: debhelper (>= 3.0.18), perl (>= 5.6.0-16)
- Standards-Version: 3.1.0
++Standards-Version: 3.6.1
++Build-Depends-Indep: debhelper (>> 4.1), perl (>> 5.6.1)
 +
 +Package: libnet-snmp-perl
 +Architecture: all
 +Depends: ${perl:Depends}
++Suggests: libcrypt-des-perl, libdigest-hmac-perl, libdigest-sha1-perl, libio-socket-inet6-perl
 +Description: Script SNMP connections
 + The module Net::SNMP implements an object oriented interface to
 + the Simple Network Management Protocol.  Perl applications can
 + use the module to retrieve or update information on a remote
 + host using the SNMP protocol.  Net::SNMP is implemented completely
 + in Perl, requires no compiling, and uses only standard Perl 
-  modules.  Both SNMPv1 and SNMPv2c (Community-Based SNMPv2) are
-  supported by the module.  The Net::SNMP module assumes that the
-  user has a basic understanding of the Simple Network Management 
-  Protocol and related network management concepts.
++ modules.  SNMPv1 and SNMPv2c (Community-Based SNMPv2), as well as
++ SNMPv3 with USM are supported by the module.  SNMP over UDP as well
++ as TCP with both IPv4 and IPv6 can be used.  The Net::SNMP module
++ assumes that the user has a basic understanding of the Simple
++ Network Management Protocol and related network management concepts.
diff --cc debian/copyright
index 3237387,0000000..8e36eaa
mode 100644,000000..100644
--- a/debian/copyright
+++ b/debian/copyright
@@@ -1,14 -1,0 +1,26 @@@
- This is Debian GNU/Linux's prepackaged Net::SNMP.  This package was
- put together by Javier Fernandez-Sanguino Pe�a <jfs at computer.org>.  The
- original sources should always be available from the Comprehensive
- Perl Archive Network (CPAN). Visit <URL:http://www.perl.com/CPAN/> to
- find a CPAN site near you.
++This is the Debian GNU/Linux version of the Net::SNMP Perl module.
++It has been downloaded from the CPAN archive:
++http://www.cpan.org/modules/by-module/Net/
 +
- The only change for the Debian package was the addition of the debian/
- files.
++From the README:
 +
 +COPYRIGHT
 +
-     Copyright (c) 1998-2000 David M. Town. All rights reserved. This
++    Copyright (c) 1998-2004 David M. Town. All rights reserved. This
 +    program is free software; you may redistribute it and/or modify
 +    it under the same terms as Perl itself.
++
++Perl is distributed under either the Artistic licence or the GPL.
++
++The full text of the GPL is available on Debian systems in
++/usr/share/common-licenses/GPL
++
++The full text of the Artistic Licence is available on Debian systems in
++/usr/share/common-licenses/Artistic.
++
++This package has been through multiple maintainers (for a list see
++/usr/share/doc/libnet-snmp-perl/changelog.Debian.gz).
++
++Current Debian specific changes are copyright (c) 2003
++Stephen Zander <gibreel at debian.org>.
++Copyright (c) 2004 Jochen Friedrich <jochen at scram.de>
diff --cc debian/rules
index 976d712,0000000..df3dc20
mode 100755,000000..100755
--- a/debian/rules
+++ b/debian/rules
@@@ -1,49 -1,0 +1,61 @@@
 +#!/usr/bin/make -f
 +# -*- Makefile -*-
++# debian/rules file for libnet-snmp-perl
 +
- tmp=$(shell pwd)/debian/tmp/
++export DH_COMPAT=4
 +
- ifndef PERL
- PERL=/usr/bin/perl
- endif
++PERL	?= /usr/bin/perl
++
++package	:= $(firstword $(shell dh_listpackages))
++prefix	:= $(PWD)/debian/$(package)/usr
 +
- binary: binary-indep binary-arch
++version	:= $(shell dpkg-parsechangelog | \
++			sed -ne 's/^Version: *\([0-9]\+:\)*//p')
 +
- binary-arch: build install
++tag:
++	cvs tag -c -F $(subst .,_,debian_version_$(version))
++ifeq ($(findstring -,$(version)),)
++	cvs tag -c -F $(subst .,_,upstream_version_$(version))
++endif
 +
- binary-indep: build install
++build:	build-stamp
++build-stamp:
 +	dh_testdir
- 	dh_testroot
- 	dh_perl
- 	dh_installdebconf
- 	dh_installexamples examples/*
- 	dh_installchangelogs Changes
++	$(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
++	$(MAKE) LD_RUN_PATH=
++	touch $@
++
++clean:	checkroot
++	rm -f build-stamp
++	-$(MAKE) distclean
++	dh_clean
++
++binary-indep:	checkroot build
++	dh_clean
++	dh_installdirs
++
++	$(MAKE) pure_install PREFIX=$(prefix)
++
 +	dh_installdocs README
- 	dh_fixperms
++	dh_installexamples examples/.
++	$(PERL) -pi -e 's!/usr/local/bin/perl!/usr/bin/perl!g;' \
++		$(prefix)/share/doc/$(package)/examples/*
++	dh_installchangelogs Changes
++
 +	dh_compress
++	dh_fixperms
++	dh_perl
 +	dh_installdeb
 +	dh_gencontrol
++	dh_md5sums
 +	dh_builddeb
 +
- build: build-stamp
- build-stamp:
- 	dh_testdir
- 	$(PERL) Makefile.PL  INSTALLDIRS=vendor
- 	$(MAKE) 
- 	touch build-stamp
++binary-arch:	checkroot build
 +
- clean:
- 	dh_testdir
- 	dh_testroot
- 	rm -f build-stamp install-stamp
- 	if [ -e Makefile ]; then $(MAKE) -i distclean; fi
- 	dh_clean
++binary:	binary-indep binary-arch
 +
- install: install-stamp
- install-stamp:
++checkroot:
 +	dh_testdir
- 	$(MAKE) install PREFIX=$(tmp)/usr
- 	-rm -rf $(tmp)/etc/
- 
++	dh_testroot
 +
- .PHONY: binary binary-arch binary-indep clean
++.PHONY:	binary binary-arch binary-indep clean checkroot build
diff --cc debian/watch
index 0000000,0000000..94d7bae
new file mode 100644
--- /dev/null
+++ b/debian/watch
@@@ -1,0 -1,0 +1,6 @@@
++# Example watch control file for uscan
++# Rename this file to "watch" and then you can run the "uscan" command
++# to check for upstream updates and more.
++# Site Version Action
++version=2
++http://www.cpan.org/modules/by-module/Net/ Net-SNMP-([0-9].*)\.tar\.gz debian uupdate
diff --cc snmpkey
index 0000000,0000000..0e7debe
new file mode 100644
--- /dev/null
+++ b/snmpkey
@@@ -1,0 -1,0 +1,136 @@@
++#!/usr/bin/perl
++
++# ============================================================================
++
++# $Id: snmpkey.PL,v 1.3 2003/05/06 11:00:46 dtown Exp $
++
++# Copyright (c) 2001-2003 David M. Town <dtown at cpan.org>
++# All rights reserved.
++
++# This program is free software; you may redistribute it and/or modify it
++# under the same terms as Perl itself.
++
++# ============================================================================
++
++=head1 NAME
++
++snmpkey - Create SNMPv3 security keys for the Net::SNMP module
++
++=head1 SYNOPSIS
++
++The C<snmpkey> utility generates security keys based on a password and
++an authoritativeEngineID passed on the command line.  This key can then
++be used by the Net::SNMP module instead of the plain text password when
++creating SNMPv3 objects.
++
++   snmpkey <authProto> <password> <authEngineID> [<privProto> [<password>]]
++
++=head1 DESCRIPTION
++
++The User-based Security Model used by SNMPv3 defines an algorithm which
++"localizes" a plain text password to a specific authoritativeEngineID using
++a one-way hash.  This resulting key is used by the SNMP application instead
++of the plain text password for security reasons.
++
++The Net::SNMP module allows the user to either provide a plain text password
++or a localized key to the object constructor when configuring authentication
++or privacy.  The C<snmpkey> utility can be used to generate the key to be
++used by the B<-authkey> or B<-privkey> named arguments when they are passed 
++to the Net::SNMP C<session()> constructor.
++
++The C<snmpkey> utility requires at least three command line arguments.  The
++first argument defines which hash algorithm to use when creating the authKey.
++Either HMAC-MD5-96 or HMAC-SHA-96 can be specified with the string 'md5' or 
++'sha' respectively.  This choice must match the algorithm passed to the 
++B<-authprotocol> argument when creating the Net::SNMP object.  The second 
++argument is the plain text password that is to be localized to create the 
++authKey.  The third required argument is the authoritativeEngineID of the 
++remote SNMP engine associated with the Net::SNMP argument B<-hostname>.  The 
++authoritativeEngineID is to be entered as a hexadecimal string 10 to 64 
++characters (5 to 32 octets) long and can be prefixed with an optional "0x".
++
++The last two arguments are optional and can be used to determine how the
++privKey will be generated.  By default, the fourth argument assumes a value
++of 'des' corresponding to the only privacy protocol defined in the User-based
++Security Model.  The Net::SNMP module supports CBC-3DES-EDE and
++CFB128-AES-128/192/256 as alternatives to the default protocol CBC-DES.  These
++protocols can be chosen by specifying the string '3desede', 'aescfb128',
++'aescfb192', or 'aescfb256' respectively.  This choice must match the protocol
++passed to the B<-privprotocol> argument when creating the Net::SNMP object.
++The last argument can be used to specify the plain text password that is to
++be localized to create the privKey.  If this argument is not specified, the 
++authKey password is used.
++
++=head1 AUTHOR
++
++David M. Town <dtown at cpan.org>
++
++=head1 COPYRIGHT
++
++Copyright (c) 2001-2003 David M. Town.  All rights reserved.  This program
++is free software; you may redistribute it and/or modify it under the same
++terms as Perl itself.
++
++=head1 SEE ALSO
++
++L<Net::SNMP>
++
++=cut
++
++# ============================================================================
++
++use strict;
++
++use Net::SNMP::Security::USM 2.0.0;
++
++my $SCRIPT  = 'snmpkey';
++my $VERSION = v2.0.0;
++
++# Do we have enough/too much information?
++if ((@ARGV < 3) || (@ARGV > 5)) {
++   _usage();
++}
++
++my ($usm, $error) = Net::SNMP::Security::USM->new(
++   -authoritative => 1, # Undocumented / unsupported argument
++   -username      => 'initial',
++   -authprotocol  => $ARGV[0],
++   -authpassword  => $ARGV[1],
++   -engineid      => $ARGV[2],
++   -privprotocol  => (@ARGV > 3) ? $ARGV[3] : 'des',
++   -privpassword  => (@ARGV > 4) ? $ARGV[4] : $ARGV[1]
++);
++
++if (!defined($usm)) {
++   _exit($error);
++}
++
++printf("authKey: 0x%s\n", unpack('H*', $usm->auth_key));
++printf("privKey: 0x%s\n", unpack('H*', $usm->priv_key));
++
++exit 0;
++
++
++# [private] ------------------------------------------------------------------
++
++sub _exit
++{
++   printf sprintf('%s: ', $SCRIPT) . shift(@_) . ".\n", @_;
++   exit 1;
++}
++
++sub _usage
++{
++   printf("%s v%vd\n", $SCRIPT, $VERSION);
++   print << "USAGE";
++Copyright (c) 2001-2003 David M. Town <dtown\@cpan.org>
++All rights reserved.
++Usage: $SCRIPT <authProto> <password> <authEngineID> [<privProto> [<password>]]
++       <authProto> = md5|sha
++       <privProto> = des|3desede|aescfb128|aescfb192|aescfb256
++USAGE
++   exit 1;
++}
++
++# ============================================================================
++

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-snmp-perl.git



More information about the Pkg-perl-cvs-commits mailing list