[libnet-snmp-perl] 05/23: Import Debian changes 5.2.0-2
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 7c1f5583e308c1fea27365d661cb6e5a2173c3e3
Author: Jochen Friedrich <jochen at scram.de>
Date: Fri Oct 16 17:00:54 2009 +0200
Import Debian changes 5.2.0-2
libnet-snmp-perl (5.2.0-2) unstable; urgency=low
* Update debhelper to version 7 and simplify rules.
* Bump standards version to 3.8.3.
---
debian/changelog | 7 +++
debian/clean | 1 +
debian/compat | 1 +
debian/control | 6 +--
debian/rules | 62 +------------------------
snmpkey | 136 -------------------------------------------------------
6 files changed, 14 insertions(+), 199 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 3eaa143..7909089 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+libnet-snmp-perl (5.2.0-2) unstable; urgency=low
+
+ * Update debhelper to version 7 and simplify rules.
+ * Bump standards version to 3.8.3.
+
+ -- Jochen Friedrich <jochen at scram.de> Fri, 16 Oct 2009 17:00:54 +0200
+
libnet-snmp-perl (5.2.0-1) unstable; urgency=low
* New upstream release
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..f360084
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+snmpkey
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
index 3f57669..609a2f5 100644
--- a/debian/control
+++ b/debian/control
@@ -2,12 +2,12 @@ Source: libnet-snmp-perl
Maintainer: Jochen Friedrich <jochen at scram.de>
Priority: optional
Section: perl
-Standards-Version: 3.6.2
-Build-Depends-Indep: debhelper (>> 4.1), perl (>> 5.6.1)
+Standards-Version: 3.8.3
+Build-Depends-Indep: debhelper (>> 7), perl
Package: libnet-snmp-perl
Architecture: all
-Depends: ${perl:Depends}
+Depends: ${perl:Depends}, ${misc: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
diff --git a/debian/rules b/debian/rules
index df3dc20..cbe925d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,61 +1,3 @@
#!/usr/bin/make -f
-# -*- Makefile -*-
-# debian/rules file for libnet-snmp-perl
-
-export DH_COMPAT=4
-
-PERL ?= /usr/bin/perl
-
-package := $(firstword $(shell dh_listpackages))
-prefix := $(PWD)/debian/$(package)/usr
-
-version := $(shell dpkg-parsechangelog | \
- sed -ne 's/^Version: *\([0-9]\+:\)*//p')
-
-tag:
- cvs tag -c -F $(subst .,_,debian_version_$(version))
-ifeq ($(findstring -,$(version)),)
- cvs tag -c -F $(subst .,_,upstream_version_$(version))
-endif
-
-build: build-stamp
-build-stamp:
- dh_testdir
- $(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_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
-
-binary-arch: checkroot build
-
-binary: binary-indep binary-arch
-
-checkroot:
- dh_testdir
- dh_testroot
-
-.PHONY: binary binary-arch binary-indep clean checkroot build
+%:
+ dh $@
diff --git a/snmpkey b/snmpkey
deleted file mode 100644
index 0e7debe..0000000
--- a/snmpkey
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/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