debian/0000755000000000000000000000000011423260622007164 5ustar debian/docs0000644000000000000000000000000511423132300010021 0ustar NEWS debian/control0000644000000000000000000000161711423132300010563 0ustar Source: libnetwork-ipv4addr-perl Section: perl Priority: optional Build-Depends: debhelper (>= 7) Build-Depends-Indep: perl Maintainer: Debian Perl Group Uploaders: Franck Joncourt Standards-Version: 3.9.0 Homepage: http://search.cpan.org/dist/Net-IPv4Addr/ Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libnetwork-ipv4addr-perl/ Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libnetwork-ipv4addr-perl/ Package: libnetwork-ipv4addr-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends} Description: Perl extension for manipulating IPv4 addresses Net::IPv4Addr provides functions for parsing IPv4 addresses both in traditional address/netmask format and in the new CIDR format. There are also methods for calculating the network and broadcast address and also to see check if a given address is in a specific network. debian/rules0000755000000000000000000000037111423132300010234 0ustar #!/usr/bin/make -f # 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 %: dh $@ get-orig-source: uscan -force -verbose .PHONY: get-orig-source debian/watch0000644000000000000000000000026311423132300010205 0ustar version=3 options=dversionmangle=s/\.ds// \ http://search.cpan.org/dist/Net-IPv4Addr/ .+/Net-IPv4Addr-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian sh debian/repack.stub debian/README.source0000644000000000000000000000157411423132300011341 0ustar Upstream tarball repackaged =============================================================================== As the upstream tarball has been updated since it contained a debian directory, here are the following commands to get the new debian tarball ds.orig.tar.gz: - From the build directory: run ./debian/rules get-orig-source - Otherwise: $ wget http://search.cpan.org/CPAN/authors/id/F/FR/FRAJULAC/Net-IPv4Addr-0.10.tar.gz $ tar -xzvf Net-IPv4Addr-0.10.tar.gz $ cd Net-IPv4Addr-0.10 $ rm -rv debian $ cp MANIFEST MANIFEST.old $ sed '/^debian/d' MANIFEST.old > MANIFEST $ rm MANIFEST.old $ cd .. $ mv Net-IPv4Addr-0.10 libnetwork-ipv4addr-perl-0.10.orig $ tar cfC repacked.tar . libnetwork-ipv4addr-perl-0.10.orig $ gzip -9 < repacked.tar > libnetwork-ipv4addr-perl_0.10.ds.orig.tar.gz $ rm repacked.tar $ rm Net-IPv4Addr-0.10.tar.gz debian/changelog0000644000000000000000000000652611423132300011036 0ustar libnetwork-ipv4addr-perl (0.10.ds-2) unstable; urgency=low [ Franck Joncourt ] * Use of debhelper 7. Set debhelper compatibility level to 7. Refreshed debian/rules. * Updated debian changelog to be machine-readable. http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135 * Replaced uversionmangle by dversionmangle in debian/watch. This fixes the following lintian warning: http://lintian.debian.org/tags/debian-watch-file-should-dversionmangle\ -not-uversionmangle.html * Bumped up Standards-Version to 3.9.0. + Removed versionned BD on perl. * Updated documentation_fixes.patch to fix a new spelling error. (Closes: #590316). * Switch to dpkg-source 3.0 (quilt) format. + Removed old quilt framework. * Added docs files to keep the NEWS file in /usr/share/doc. [ gregor herrmann ] * Adjust debian/repack.sh to the change in debian/watch. * debian/control: Added: ${misc:Depends} to Depends: field. [ Nathan Handler ] * debian/watch: Update to ignore development releases. -- Franck Joncourt Sun, 25 Jul 2010 23:43:25 +0200 libnetwork-ipv4addr-perl (0.10.ds-1) unstable; urgency=low * New maintainer (Closes: #485997). * Removed the debian directory from the upstream source. http://rt.cpan.org/Public/Bug/Display.html?id=36973 * Documentation fixes (Closes: #211548). Added debian/patches/documentation_fixes.patch. -- Franck Joncourt Thu, 19 Jun 2008 20:04:09 +0200 libnetwork-ipv4addr-perl (0.10-1.1) unstable; urgency=low * NMU. * Add Build-Depends-Indep on debhelper. Closes: #190464. * Remove IPv4Addr.spec. Closes: #166230. * Correct technocompound in package description. Closes: #125005. -- Daniel Schepler Sat, 2 Aug 2003 15:54:14 -0700 libnetwork-ipv4addr-perl (0.10-1) unstable; urgency=low * new upstream version -- Bernd Eckenfels Sat, 30 Sep 2000 23:54:11 +0200 libnetwork-ipv4addr-perl (0.09-3) unstable; urgency=high * reupload to unstable, only * added -isp to dpkg-gencontrol * closes: #66073 and closes: #66080 * changed maintainer email address to @debian.org * fixed section and standards version -- Bernd Eckenfels Sun, 13 Aug 2000 12:46:21 +0200 libnetwork-ipv4addr-perl (0.09-2) frozen unstable; urgency=high * fixed bug #66073 and fixed bug #66080 * changed maintainer email address to @debian.org * fixed section and standards version -- Bernd Eckenfels Sat, 22 Jul 2000 07:02:12 +0200 libnetwork-ipv4addr-perl (0.09-1) frozen unstable; urgency=high * in this version #63482 is not visible anymore (fixed i guess) * fixed security bug (#63529) -- Bernd Eckenfels Thu, 4 May 2000 05:50:32 +0200 libnetwork-ipv4addr-perl (0.07-2) unstable; urgency=low * fixed bug with 5.005 pl3 (Bug#49609:) thanks to Bitkoenig! -- Bernd Eckenfels Tue, 9 Nov 1999 03:05:41 +0100 libnetwork-ipv4addr-perl (0.07-1) unstable; urgency=low * new version, including a full working debian/ subdir, thanks Francis -- Bernd Eckenfels Sat, 23 Oct 1999 20:19:13 +0200 libnetwork-ipv4addr-perl (0.05-1) unstable; urgency=low * Initial Release. -- Bernd Eckenfels Sat, 25 Sep 1999 01:26:34 +0200 Local variables: mode: debian-changelog End: debian/repack.stub0000755000000000000000000000325111423132300011323 0ustar #!/bin/sh : <<=cut =pod =head1 NAME repack.stub - script to repack upstream tarballs from uscan =head1 INSTRUCTIONS put this in debian/repack.stub and add "debian sh debian/repack.stub" to the end of the line in debian/watch. you will also need to add a version mangle to debian/watch. then create a debian/repack.local. this is a shell script that is sources under "set -e", so be careful to check returns codes. =head1 FUNCTIONS =over 4 =item rm rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1 =item mv mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1 =item requires_version requires_version is there for future usage for requiring certain versions of the script =back =head1 VARIABLES =over 4 =item SUFFIX defaults to +dfsg what to append to the upstream version =item RM_OPTS defaults to -vrf options to pass to rm =item MANIFEST defaults to 0, set to 1 to turn on. this will manipulate MANIFEST files in CPAN tarballs. =item UP_BASE this is the directory where the upstream source is. =back =cut if [ -z "$REPACK_SH" ]; then if [ -f ../../scripts/repack.sh ]; then REPACK_SH=../../scripts/repack.sh fi if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then REPACK_SH=$(which repack.sh) fi fi if [ ! -f "$REPACK_SH" ]; then echo "Couldn't find a repack.sh. please put it in your PATH, put it at ../../scripts/repack.sh, or put it somewhere else and set the REPACK_SH variable" echo "You can get it from http://svn.debian.org/viewsvn/pkg-perl/scripts/repack.sh" exit 1 fi exec "$REPACK_SH" "$@" debian/compat0000644000000000000000000000000211423132300010351 0ustar 7 debian/source/0000755000000000000000000000000011423260532010464 5ustar debian/source/format0000644000000000000000000000001411423132300011661 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011423260532010613 5ustar debian/patches/documentation_fixes.patch0000644000000000000000000001077611423132300015705 0ustar # Documentation fixes # Closes #211548 thanks to 'Dagurashibanipal' von Bidder --- a/IPv4Addr.pm +++ b/IPv4Addr.pm @@ -227,13 +227,13 @@ Net::IPv4Addr provides functions for parsing IPv4 addresses both in traditional address/netmask format and in the new CIDR format. There are also methods for calculating the network and broadcast -address and also to see check if a given address is in a specific +address and also to check if a given address is in a specific network. =head1 ADDRESSES -All of Net::IPv4Addr functions accepts addresses in many -format. The parsing is very liberal. +All of Net::IPv4Addr functions accept addresses in many +formats. The parsing is very liberal. All these addresses would be accepted: @@ -270,28 +270,15 @@ my $cidr = ipv4_parse($ip_str,$msk_str); my ($ip) = ipv4_parse($ip_str,$msk_str); -Parse an IPv4 address and in scalar context the address in CIDR -format and in an array context the address and the mask length. +Parse an IPv4 address and return in scalar context the address in CIDR +format, in an array context the address and the mask length. If the parameters doesn't contains a netmask or a mask length, in scalar context only the IPv4 address is returned and in an array context the mask length is undefined. If the function cannot parse its input, it croaks. Trap it using -C if don't like that. - -=item ipv4_network - - my $cidr = ipv4_network($ip_str); - my $cidr = ipv4_network($cidr_str); - my ($net,$msk) = ipv4_network( $net_str, $msk_str); - -In scalar context, this function returns the network in CIDR format in -which the address is. In array context, it returns the network address and -its mask length as a two elements array. If the input is an host without -a netmask of mask length, the default netmask is assumed. - -Again, the function croak if the input is invalid. +C if you don't like that. =item ipv4_broadcast @@ -299,22 +286,22 @@ my $broadcast = ipv4_broadcast($ip_str,$msk_str); This function returns the broadcast address. If the input doesn't -contains a netmask or mask length, the default netmask is assumed. +contain a netmask or mask length, the default netmask is assumed. This function croaks if the input is invalid. =item ipv4_network - my $cidr = ipv4_network($net_str); - my $cidr = ipv4_network($cidr_sstr); - my ($net,$msk) = ipv4_network( $ip_str, $mask_str); + my $cidr = ipv4_network($ip_str); + my $cidr = ipv4_network($cidr_str); + my ($net,$msk) = ipv4_network( $net_str, $msk_str); In scalar context, this function returns the network in CIDR format in which the address is. In array context, it returns the network address and -its mask length as a two elements array. If the input is an host without +its mask length as a two elements array. If the input is a host without a netmask or mask length, the default netmask is assumed. -Again, the function croak if the input is invalid. +Again, the function croaks if the input is invalid. =item ipv4_in_network @@ -326,33 +313,33 @@ the first one and it implements the following semantics : If net1 or net2 is a magic address (0.0.0.0 or 255.255.255.255) - than this function returns true. + then this function returns true. - If net1 is an host, net2 will be in the same net only if + If net1 is a host, net2 will be in the same net only if it is the same host. - If net2 is an host, it will be contained in net1 only if + If net2 is a host, it will be contained in net1 only if it is part of net1. - If net2 is only part of net1 if it is entirely contained in + net2 is only part of net1 if it is entirely contained in net1. Trap bad input with C or else. -=item ipv4_checkip +=item ipv4_chkip - if ($ip = ipv4_checkip($str) ) { + if ($ip = ipv4_chkip($str) ) { # Do something } Return the IPv4 address in the string or undef if the input -doesn't contains a valid IPv4 address. +doesn't contain a valid IPv4 address. =item ipv4_cidr2msk my $netmask = ipv4_cidr2msk( $cidr ); -Returns the netmask corresponding to the mask length given in input. +Returns the netmask corresponding to the mask length given in the input. As usual, croaks if it doesn't like your input (in this case a number between 0 and 32). @@ -360,7 +347,7 @@ my $masklen = ipv4_msk2cidr( $msk ); -Returns the mask length of the netmask in input. As usual, croaks if it +Returns the mask length of the netmask in the input. As usual, croaks if it doesn't like your input. =back debian/patches/series0000644000000000000000000000003211423132300012012 0ustar documentation_fixes.patch debian/copyright0000644000000000000000000000160011423132300011103 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135 Name: Net-IPv4Addr Maintainer: Francis J. Lacost Source: http://search.cpan.org/dist/Net-IPv4Addr/ Files: * Copyright: 1999-2000 iNsu Innovations Inc. All rights reserved. License: GPL-1+ or Artistic This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. . Perl is distributed under the GNU General Public License, either version 1 or (at your option) any later version, and the Artistic License. . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL and the Artistic License in /usr/share/common-licenses/Artistic. Files: debian/* Copyright: 2008-2010, Franck Joncourt License: GPL-1+ or Artistic Debian packaging is licensed under the same terms as Perl itself. debian/repack.local0000644000000000000000000000004011423132300011426 0ustar MANIFEST=1 SUFFIX=.ds rm debian