r64883 - in /trunk/libnet-dhcp-perl: ./ debian/ debian/source/ lib/Net/DHCP/

ansgar at users.alioth.debian.org ansgar at users.alioth.debian.org
Sun Nov 14 09:54:52 UTC 2010


Author: ansgar
Date: Sun Nov 14 09:54:34 2010
New Revision: 64883

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=64883
Log:
* New upstream release.
  - Fix memory leak in marshall(). (Closes: #598213)
* Use debhelper compat level 7 and tiny debian/rules.
* Convert debian/copyright to proposed machine-readable format and update
  for new upstream release.
* debian/control: Make build-dep on perl unversioned.
* Use source format 3.0 (quilt).
* Bump Standards-Version to 3.9.1.
* Add myself to Uploaders.

Added:
    trunk/libnet-dhcp-perl/debian/libnet-dhcp-perl.docs
    trunk/libnet-dhcp-perl/debian/libnet-dhcp-perl.examples
    trunk/libnet-dhcp-perl/debian/source/
    trunk/libnet-dhcp-perl/debian/source/format
Modified:
    trunk/libnet-dhcp-perl/Changes
    trunk/libnet-dhcp-perl/META.yml
    trunk/libnet-dhcp-perl/Makefile.PL
    trunk/libnet-dhcp-perl/README
    trunk/libnet-dhcp-perl/debian/changelog
    trunk/libnet-dhcp-perl/debian/compat
    trunk/libnet-dhcp-perl/debian/control
    trunk/libnet-dhcp-perl/debian/copyright
    trunk/libnet-dhcp-perl/debian/rules
    trunk/libnet-dhcp-perl/lib/Net/DHCP/Constants.pm
    trunk/libnet-dhcp-perl/lib/Net/DHCP/Packet.pm

Modified: trunk/libnet-dhcp-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/Changes?rev=64883&op=diff
==============================================================================
--- trunk/libnet-dhcp-perl/Changes (original)
+++ trunk/libnet-dhcp-perl/Changes Sun Nov 14 09:54:34 2010
@@ -1,4 +1,10 @@
 Revision history for Perl extension Net::DHCP.
+
+*** 0.67  Nov 13 2010
+
+Fixing a small bug in marshall (see cpanrt61693), fixed a bug in 
+Constants.pm (see cpanrt32962), clarified version dependance
+closing out cpanrt19405
 
 *** 0.66  Jul 12 2006
 

Modified: trunk/libnet-dhcp-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/META.yml?rev=64883&op=diff
==============================================================================
--- trunk/libnet-dhcp-perl/META.yml (original)
+++ trunk/libnet-dhcp-perl/META.yml Sun Nov 14 09:54:34 2010
@@ -1,7 +1,7 @@
 # http://module-build.sourceforge.net/META-spec.html
 #XXXXXXX This is a prototype!!!  It will change in the future!!! XXXXX#
 name:         Net-DHCP
-version:      0.66
+version:      0.67
 version_from: lib/Net/DHCP/Packet.pm
 installdirs:  site
 requires:

Modified: trunk/libnet-dhcp-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/Makefile.PL?rev=64883&op=diff
==============================================================================
--- trunk/libnet-dhcp-perl/Makefile.PL (original)
+++ trunk/libnet-dhcp-perl/Makefile.PL Sun Nov 14 09:54:34 2010
@@ -9,6 +9,6 @@
     ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
       (
 #       ABSTRACT_FROM  => 'lib/Net/DHCP.pm', # retrieve abstract from module
-       AUTHOR         => 'Stephan Hadinger <shadinger at cpan.org>',
+       AUTHOR         => 'Dean Hamstead <djzort at cpan.org>',
       ) : ()),
 );

Modified: trunk/libnet-dhcp-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/README?rev=64883&op=diff
==============================================================================
--- trunk/libnet-dhcp-perl/README (original)
+++ trunk/libnet-dhcp-perl/README Sun Nov 14 09:54:34 2010
@@ -18,7 +18,7 @@
 3. PREREQUISITES
 ----------------
 
-Net::DHCP requires Perl 5.6.0 or higher.
+Net::DHCP requires Perl 5.8.0 or higher.
 
 Net::DHCP has been tested with the following:
 
@@ -27,7 +27,8 @@
     Windows XP with cygwin
     Windows XP with ActivePerl
     
-    Linux Redhat testing is planned soon
+    RedHat Enterprise Linux 5.5 x86_64
+    Debian Squeeze x86_64 (Perl 5.10.1)
 
 2. INSTALLATION
 ---------------
@@ -58,6 +59,7 @@
 
 Copyright (C) 2002 by Francis van Dun.
 Copyright (C) 2005,2006 by Stephan Hadinger.
+Copyright (C) 2010 by Dean Hamstead.
 
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself, either Perl version 5.8.5 or,

Modified: trunk/libnet-dhcp-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/debian/changelog?rev=64883&op=diff
==============================================================================
--- trunk/libnet-dhcp-perl/debian/changelog (original)
+++ trunk/libnet-dhcp-perl/debian/changelog Sun Nov 14 09:54:34 2010
@@ -1,4 +1,4 @@
-libnet-dhcp-perl (0.66-2) UNRELEASED; urgency=low
+libnet-dhcp-perl (0.67-1) unstable; urgency=low
 
   [ Hendrik Frenzel ]
   * Added more descriptive sentence to package description
@@ -10,7 +10,18 @@
   [ Nathan Handler ]
   * debian/watch: Update to ignore development releases.
 
- -- Hendrik Frenzel <hfrenzel at scunc.net>  Thu, 27 Mar 2008 12:12:47 +0100
+  [ Ansgar Burchardt ]
+  * New upstream release.
+    - Fix memory leak in marshall(). (Closes: #598213)
+  * Use debhelper compat level 7 and tiny debian/rules.
+  * Convert debian/copyright to proposed machine-readable format and update
+    for new upstream release.
+  * debian/control: Make build-dep on perl unversioned.
+  * Use source format 3.0 (quilt).
+  * Bump Standards-Version to 3.9.1.
+  * Add myself to Uploaders.
+
+ -- Ansgar Burchardt <ansgar at debian.org>  Sun, 14 Nov 2010 10:54:03 +0100
 
 libnet-dhcp-perl (0.66-1) unstable; urgency=low
 

Modified: trunk/libnet-dhcp-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/debian/compat?rev=64883&op=diff
==============================================================================
--- trunk/libnet-dhcp-perl/debian/compat (original)
+++ trunk/libnet-dhcp-perl/debian/compat Sun Nov 14 09:54:34 2010
@@ -1,1 +1,1 @@
-5
+7

Modified: trunk/libnet-dhcp-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/debian/control?rev=64883&op=diff
==============================================================================
--- trunk/libnet-dhcp-perl/debian/control (original)
+++ trunk/libnet-dhcp-perl/debian/control Sun Nov 14 09:54:34 2010
@@ -1,18 +1,19 @@
 Source: libnet-dhcp-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 5.0.0)
-Build-Depends-Indep: perl (>= 5.8.8-12)
+Build-Depends: debhelper (>= 7)
+Build-Depends-Indep: perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: Hendrik Frenzel <hfrenzel at scunc.net>
-Standards-Version: 3.7.3
+Uploaders: Hendrik Frenzel <hfrenzel at scunc.net>,
+ Ansgar Burchardt <ansgar at debian.org>
+Standards-Version: 3.9.1
 Homepage: http://search.cpan.org/dist/Net-DHCP/
-Vcs-Svn: svn://svn.debian.org/svn/pkg-perl/trunk/libnet-dhcp-perl
+Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libnet-dhcp-perl
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libnet-dhcp-perl
 
 Package: libnet-dhcp-perl
 Architecture: all
-Depends: ${perl:Depends}, ${misc:Depends}, 
+Depends: ${perl:Depends}, ${misc:Depends}
 Description: Interface for handling DHCP packets
  This module is a release of the DHCP protocol interface to Perl 5. There are
  two parts to the interface: the packet component (Net::DHCP::Packet) and the

Modified: trunk/libnet-dhcp-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/debian/copyright?rev=64883&op=diff
==============================================================================
--- trunk/libnet-dhcp-perl/debian/copyright (original)
+++ trunk/libnet-dhcp-perl/debian/copyright Sun Nov 14 09:54:34 2010
@@ -1,27 +1,40 @@
-This package was downloaded from http://search.cpan.org/dist/Net-DHCP/
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Maintainer: Dean Hamstead <djzort at cpan.org>
+Source: http://search.cpan.org/dist/Net-DHCP/
+Name: Net-DHCP
 
 Files: *
-Copyright: © 2002 Francis van Dun <francis.vandun at pandora.be>
-           © 2005,2006 Stephan Hadinger <shadinger at cpan.org>
-License: GPL-1+ | Artistic
- This library is free software; you can redistribute it and/or modify
- it under the same terms as Perl itself, either Perl version 5.8.5 or,
- at your option, any later version of Perl 5 you may have available.
- .
- Perl is licensed under the following terms:
- .
- a) the GNU General Public License as published by the Free Software
-    Foundation; either version 1, or (at your option) any later
-    version, or
- .   
- b) the "Artistic License" which comes with Perl.
+Copyright:
+ 2002,      Francis van Dun <francis.vandun at pandora.be>
+ 2005-2006, Stephan Hadinger <shadinger at cpan.org>
+ 2010,      Dean Hamstead <djzort at cpan.org>
+License: Artistic or GPL-1+
 
 Files: debian/*
-Copyright: © 2008 Hendrik Frenzel <hfrenzel at scunc.net>
+Copyright: 2008 Hendrik Frenzel <hfrenzel at scunc.net>
 License: GPL-2+
- The Debian packaging information is under the GPL, version 2 or later
 
-On Debian GNU/Linux systems, the complete text of the GNU General
-Public License can be found in `/usr/share/common-licenses/GPL' and
-the Artistic Licence in `/usr/share/common-licenses/Artistic'.
+License: Artistic
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License, which comes with Perl.
+ .
+ On Debian systems, the complete text of the Artistic License can be
+ found in `/usr/share/common-licenses/Artistic'.
 
+License: GPL-1+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+ .
+ On Debian systems, the complete text of version 1 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.
+
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+ .
+ On Debian systems, the complete text of version 2 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-2'.

Added: trunk/libnet-dhcp-perl/debian/libnet-dhcp-perl.docs
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/debian/libnet-dhcp-perl.docs?rev=64883&op=file
==============================================================================
--- trunk/libnet-dhcp-perl/debian/libnet-dhcp-perl.docs (added)
+++ trunk/libnet-dhcp-perl/debian/libnet-dhcp-perl.docs Sun Nov 14 09:54:34 2010
@@ -1,0 +1,1 @@
+README

Added: trunk/libnet-dhcp-perl/debian/libnet-dhcp-perl.examples
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/debian/libnet-dhcp-perl.examples?rev=64883&op=file
==============================================================================
--- trunk/libnet-dhcp-perl/debian/libnet-dhcp-perl.examples (added)
+++ trunk/libnet-dhcp-perl/debian/libnet-dhcp-perl.examples Sun Nov 14 09:54:34 2010
@@ -1,0 +1,1 @@
+examples/*

Modified: trunk/libnet-dhcp-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/debian/rules?rev=64883&op=diff
==============================================================================
--- trunk/libnet-dhcp-perl/debian/rules (original)
+++ trunk/libnet-dhcp-perl/debian/rules Sun Nov 14 09:54:34 2010
@@ -1,73 +1,4 @@
 #!/usr/bin/make -f
-# This debian/rules file is provided as a template for normal perl
-# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
-# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
-# be used freely wherever it is useful.
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-# If set to a true value then MakeMaker's prompt function will
-# always return the default without waiting for user input.
-export PERL_MM_USE_DEFAULT=1
-
-PACKAGE=$(shell dh_listpackages)
-
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-TMP     =$(CURDIR)/debian/$(PACKAGE)
-
-build: build-stamp
-build-stamp:
-	dh_testdir
-
-	# Add commands to compile the package here
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE)
-	$(MAKE) test
-
-	touch $@
-
-clean:
-	dh_testdir
-	dh_testroot
-
-	dh_clean build-stamp install-stamp
-
-	# Add commands to clean up after the build process here
-	[ ! -f Makefile ] || $(MAKE) realclean
-
-install: install-stamp
-install-stamp: build-stamp
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-
-	# Add commands to install the package into $(TMP) here
-	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-
-	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
-
-	touch $@
-
-binary-arch:
-# We have nothing to do here for an architecture-independent package
-
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs README
-	dh_installexamples examples/*
-	dh_installchangelogs Changes
-	dh_perl
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+%:
+	dh $@

Added: trunk/libnet-dhcp-perl/debian/source/format
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/debian/source/format?rev=64883&op=file
==============================================================================
--- trunk/libnet-dhcp-perl/debian/source/format (added)
+++ trunk/libnet-dhcp-perl/debian/source/format Sun Nov 14 09:54:34 2010
@@ -1,0 +1,1 @@
+3.0 (quilt)

Modified: trunk/libnet-dhcp-perl/lib/Net/DHCP/Constants.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/lib/Net/DHCP/Constants.pm?rev=64883&op=diff
==============================================================================
--- trunk/libnet-dhcp-perl/lib/Net/DHCP/Constants.pm (original)
+++ trunk/libnet-dhcp-perl/lib/Net/DHCP/Constants.pm Sun Nov 14 09:54:34 2010
@@ -8,7 +8,7 @@
 use strict;
 our (@ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS, $VERSION);
 use Exporter;
-$VERSION = 0.66;
+$VERSION = 0.67;
 @ISA = qw(Exporter);
 
 @EXPORT = qw(MAGIC_COOKIE);
@@ -167,7 +167,8 @@
     'DHCPINFORM'        => 8,
     'DHCPFORCERENEW'    => 9,
     
-    'DHCPLEASEQUERY'    => 13,   # Cisco extension, draft-ietf-dhc-leasequery-08.txt
+    # 'DHCPLEASEQUERY'    => 13,   # Cisco extension, draft-ietf-dhc-leasequery-08.txt
+    'DHCPLEASEQUERY'    => 10,   # This is now ratified in RFC4388. If you have an old crappy CMTS you can comment this line and uncomment the above line.
     );
 }
 
@@ -343,7 +344,7 @@
   (07) DHCPRELEASE
   (08) DHCPINFORM
   (09) DHCPFORCERENEW
-  (13) DHCPLEASEQUERY       # draft-ietf-dhc-leasequery-08.txt
+  (10) DHCPLEASEQUERY
 
 =item * dho_codes
 

Modified: trunk/libnet-dhcp-perl/lib/Net/DHCP/Packet.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-dhcp-perl/lib/Net/DHCP/Packet.pm?rev=64883&op=diff
==============================================================================
--- trunk/libnet-dhcp-perl/lib/Net/DHCP/Packet.pm (original)
+++ trunk/libnet-dhcp-perl/lib/Net/DHCP/Packet.pm Sun Nov 14 09:54:34 2010
@@ -1,6 +1,6 @@
 # Net::DHCP::Packet.pm
-# Original Author: F. van Dun
-# Author : S. Hadinger
+# Original Author: F. van Dun, S. Hadinger
+# Author : D. Hamstead
 
 package Net::DHCP::Packet;
 
@@ -9,7 +9,7 @@
 use strict;
 our (@ISA, @EXPORT, @EXPORT_OK, $VERSION);
 use Exporter;
-$VERSION = 0.66;
+$VERSION = 0.67;
 @ISA = qw(Exporter);
 @EXPORT = qw( packinet packinets unpackinet unpackinets );
 @EXPORT_OK = qw( );
@@ -441,6 +441,12 @@
   if (length($buf) > DHCP_MAX_MTU()) {
     croak("marshall: packet too big (".length($buf)."), max MTU size is ".DHCP_MAX_MTU());
   }
+
+  # if we are re-using this object, then we need to clear out these arrays
+  delete $self->{options}
+      if $self->{options};
+  delete $self->{options_order}
+      if $self->{options_order};
   
   (
   $self->{op},
@@ -1262,7 +1268,7 @@
 
 =head1 BUGS
 
-Fully tested on windows platforms (2000/XP). Not yet tested on Unix platform.
+See L<https://rt.cpan.org/Dist/Display.html?Queue=Net-DHCP>
 
 =head1 COPYRIGHT
 




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