summaryrefslogtreecommitdiff
path: root/net/p5-Net-SNMP
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2012-05-31 09:07:07 +0000
committersno <sno@pkgsrc.org>2012-05-31 09:07:07 +0000
commitefecf3590601069a3dd114dbcb7edff40601c95e (patch)
treee0a94ffea8bccae2fefa9c14d0b25ff399d9f342 /net/p5-Net-SNMP
parent006c5e81b059b7a07ada161ca5d332d092fe5e72 (diff)
downloadpkgsrc-efecf3590601069a3dd114dbcb7edff40601c95e.tar.gz
Updating package for CPAN module Net::SNMP in net/p5-Net-SNMP from
5.2.0nb4 to 6.0.1. pkgsrc changes: - Adjust license - Adjust dependencies - remove patch which correct bogus attributes (upstream fixed) Upstream changes: RELEASE 6.0.1 SEP-09-2010 - Removed all occurrences of the "locked" attribute that was deprecated in Perl 5.12.0. - Changed the test validating the presence of a monotonic time value to check for invalid implementations. - The SNMPv3 contextEngineID and contextName are now stored as part of the request allowing for these values to be changed between messages. RELEASE 6.0.0 SEP-09-2009 - Substantial internal code cleanup was performed based upon the Perl::Critic module and the "Perl Best Practices" book. - Added support for the Module::Build system for building, testing, and installing Perl modules. - The translation logic for OCTET STRINGs now uses the definition of a DisplayString in RFC 2579 to determine if the octets are to be converted into a hexadecimal representation. - The get_table() and get_entries() methods were refactored as part of the code cleanup. The get_entries() method now handles "holes" in tables better and indexes with a value of zero. - The inheritance structure of the Transport Domain objects was updated to reduce code duplication and increase maintainability. - The resolution of IPv6 addresses was made more exhaustive. - The handling of OBJECT IDENTIFIERs was made more efficient by using [un]pack() with a BER compressed integer template. - Additional validation of the values passed to most methods is now performed and the error messages have been made more robust. - The documented examples were updated based upon commonly asked questions (specifically Example 3 and Example 4). - A Response-PDU with an error-status set to "noError" no longer generates an error when the error-index is non-zero, as decribed in Section 4.2.4 of RFC 3416. - The function oid_lex_cmp() was added to provide for the lexicographical comparison of two OBJECT IDENTIFIERs. - The error-status is no longer set for the exceptions noSuchObject, noSuchInstance, and endOfMibView when translation is not enabled.
Diffstat (limited to 'net/p5-Net-SNMP')
-rw-r--r--net/p5-Net-SNMP/Makefile10
-rw-r--r--net/p5-Net-SNMP/distinfo9
-rw-r--r--net/p5-Net-SNMP/patches/patch-aa232
3 files changed, 10 insertions, 241 deletions
diff --git a/net/p5-Net-SNMP/Makefile b/net/p5-Net-SNMP/Makefile
index fc6322358eb..77139bded6a 100644
--- a/net/p5-Net-SNMP/Makefile
+++ b/net/p5-Net-SNMP/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.27 2011/08/14 14:14:46 obache Exp $
+# $NetBSD: Makefile,v 1.28 2012/05/31 09:07:07 sno Exp $
#
-DISTNAME= Net-SNMP-5.2.0
-PKGNAME= p5-${DISTNAME}
-PKGREVISION= 4
+DISTNAME= Net-SNMP-v6.0.1
+PKGNAME= p5-${DISTNAME:S/v6/6/}
SVR4_PKGNAME= p5nsn
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Net/}
@@ -11,13 +10,16 @@ MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Net/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://search.cpan.org/dist/Net-SNMP/
COMMENT= Perl5 module for SNMP queries
+LICENSE= ${PERL5_LICENSE}
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= p5-Crypt-DES>=2.03:../../security/p5-Crypt-DES
+DEPENDS+= p5-Crypt-Rijndael>=1.02:../../security/p5-Crypt-Rijndael
DEPENDS+= p5-Digest-MD5>=2.11:../../security/p5-Digest-MD5
DEPENDS+= p5-Digest-SHA1>=1.02:../../security/p5-Digest-SHA1
DEPENDS+= p5-Digest-HMAC>=1.00:../../security/p5-Digest-HMAC
+DEPENDS+= p5-Socket6>=0.23:../../net/p5-Socket6
USE_LANGUAGES= # none
diff --git a/net/p5-Net-SNMP/distinfo b/net/p5-Net-SNMP/distinfo
index a24c34dd662..1178dd59d61 100644
--- a/net/p5-Net-SNMP/distinfo
+++ b/net/p5-Net-SNMP/distinfo
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.9 2010/11/13 17:06:04 bouyer Exp $
+$NetBSD: distinfo,v 1.10 2012/05/31 09:07:07 sno Exp $
-SHA1 (Net-SNMP-5.2.0.tar.gz) = 32b43dade6a9fed07377613a296111968e0a68e7
-RMD160 (Net-SNMP-5.2.0.tar.gz) = 43e179be3ede313f4b2550d698ad4454ea4a9d7b
-Size (Net-SNMP-5.2.0.tar.gz) = 83175 bytes
-SHA1 (patch-aa) = 3b4ea0a95792b7a480ea4efe57ee1bccea908633
+SHA1 (Net-SNMP-v6.0.1.tar.gz) = 492073bcf5206b56783e07c0603ff3b1f12707fa
+RMD160 (Net-SNMP-v6.0.1.tar.gz) = 86ed463c87c694a06dabbb6a86234f0e44249a56
+Size (Net-SNMP-v6.0.1.tar.gz) = 94664 bytes
diff --git a/net/p5-Net-SNMP/patches/patch-aa b/net/p5-Net-SNMP/patches/patch-aa
deleted file mode 100644
index 51388c388f4..00000000000
--- a/net/p5-Net-SNMP/patches/patch-aa
+++ /dev/null
@@ -1,232 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2010/11/13 17:06:05 bouyer Exp $
-
-From 6.0.1: Removed all occurrences of the "locked" attribute that was
-deprecated in Perl 5.12.0.
-
---- lib/Net/SNMP.pm.orig 2005-10-20 16:17:03.000000000 +0200
-+++ lib/Net/SNMP.pm 2010-11-13 17:51:45.000000000 +0100
-@@ -585,7 +585,7 @@
-
- =cut
-
--sub close : locked : method
-+sub close
- {
- my ($this) = @_;
-
-@@ -652,7 +652,7 @@
-
- =cut
-
--sub get_request : locked : method
-+sub get_request
- {
- my $this = shift;
-
-@@ -705,7 +705,7 @@
-
- =cut
-
--sub get_next_request : locked : method
-+sub get_next_request
- {
- my $this = shift;
-
-@@ -761,7 +761,7 @@
-
- =cut
-
--sub set_request : locked : method
-+sub set_request
- {
- my $this = shift;
-
-@@ -866,7 +866,7 @@
-
- =cut
-
--sub trap : locked : method
-+sub trap
- {
- my $this = shift;
-
-@@ -949,7 +949,7 @@
-
- =cut
-
--sub get_bulk_request : locked : method
-+sub get_bulk_request
- {
- my $this = shift;
-
-@@ -1025,7 +1025,7 @@
-
- =cut
-
--sub inform_request : locked : method
-+sub inform_request
- {
- my $this = shift;
-
-@@ -1100,7 +1100,7 @@
-
- =cut
-
--sub snmpv2_trap : locked : method
-+sub snmpv2_trap
- {
- my $this = shift;
-
-@@ -1165,7 +1165,7 @@
-
- =cut
-
--sub get_table : locked : method
-+sub get_table
- {
- my $this = shift;
-
-@@ -1322,7 +1322,7 @@
-
- =cut
-
--sub get_entries : locked : method
-+sub get_entries
- {
- my $this = shift;
-
-@@ -1528,7 +1528,7 @@
-
- =cut
-
--sub version : locked : method
-+sub version
- {
- my ($this) = @_;
-
-@@ -1546,7 +1546,7 @@
-
- =cut
-
--sub error : locked : method
-+sub error
- {
- $_[0]->{_error} || '';
- }
-@@ -1560,7 +1560,7 @@
-
- =cut
-
--sub hostname : locked : method
-+sub hostname
- {
- $_[0]->{_hostname};
- }
-@@ -1574,7 +1574,7 @@
-
- =cut
-
--sub error_status : locked : method
-+sub error_status
- {
- defined($_[0]->{_pdu}) ? $_[0]->{_pdu}->error_status : 0;
- }
-@@ -1588,7 +1588,7 @@
-
- =cut
-
--sub error_index : locked : method
-+sub error_index
- {
- defined($_[0]->{_pdu}) ? $_[0]->{_pdu}->error_index : 0;
- }
-@@ -1610,7 +1610,7 @@
-
- =cut
-
--sub var_bind_list : locked : method
-+sub var_bind_list
- {
- defined($_[0]->{_pdu}) ? $_[0]->{_pdu}->var_bind_list : undef;
- }
-@@ -1630,7 +1630,7 @@
-
- =cut
-
--sub var_bind_names : locked : method
-+sub var_bind_names
- {
- defined($_[0]->{_pdu}) ? @{$_[0]->{_pdu}->var_bind_names} : ();
- }
-@@ -1650,7 +1650,7 @@
-
- =cut
-
--sub var_bind_types : locked : method
-+sub var_bind_types
- {
- defined($_[0]->{_pdu}) ? $_[0]->{_pdu}->var_bind_types : undef;
- }
-@@ -1671,7 +1671,7 @@
-
- =cut
-
--sub timeout : locked : method
-+sub timeout
- {
- my $this = shift;
-
-@@ -1699,7 +1699,7 @@
-
- =cut
-
--sub retries : locked : method
-+sub retries
- {
- my $this = shift;
-
-@@ -1734,7 +1734,7 @@
-
- =cut
-
--sub max_msg_size : locked : method
-+sub max_msg_size
- {
- my $this = shift;
-
-@@ -1843,7 +1843,7 @@
-
- =cut
-
--sub translate : locked : method
-+sub translate
- {
- my ($this, $mask) = @_;
-
-@@ -1965,22 +1965,22 @@
- debug(undef, $_[0]);
- }
-
--sub pdu : locked : method
-+sub pdu
- {
- $_[0]->{_pdu};
- }
-
--sub nonblocking : locked : method
-+sub nonblocking
- {
- $_[0]->{_nonblocking};
- }
-
--sub security : locked : method
-+sub security
- {
- $_[0]->{_security};
- }
-
--sub transport : locked : method
-+sub transport
- {
- $_[0]->{_transport};
- }