Commit 9393c582 authored by Nick Morrott's avatar Nick Morrott

Import Upstream version 0.10

parents
This diff is collapsed.
Net::CIDR
Copyright 2001 Sam Varshavchik.
This program is free software; you can redistribute it
and/or modify it under the same terms as Perl itself.
Revision history for Perl extension Net::CIDR.
0.01 Mon Jun 25 01:37:53 2001
- original version; created by h2xs 1.20 with options
-X -n Net::CIDR
0.08 Wed Aug 13 00:41:58 EDT 2003
- decided to start keeping this Changelog again :-)
- Added David Cantrell's addrandmask2cidr function.
- fixed a few bugs.
0.09 Tue Nov 18 19:01:50 EST 2003
- Fix addrandmask2cidr computation of /27s.
0.10 Mon Jul 19 19:45:33 EDT 2004
- Fix warning in addrandmask2cidr
- Fix validation of IPv6 addresses. 1:2 is not a valid Ipv6 address.
CIDR.pm
Changes
MANIFEST
Makefile.PL
test.pl
COPYING
README
Net-CIDR.spec
Net-CIDR.spec.PL
use ExtUtils::MakeMaker;
# $Revision: 1.2 $
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
'AUTHOR' => 'Sam Varshavchik <sam@email-scan.com>',
'ABSTRACT_FROM' => 'CIDR.pm',
'NAME' => 'Net::CIDR',
'VERSION_FROM' => 'CIDR.pm', # finds $VERSION
'PREREQ_PM' => { 'Carp' => 0 }, # e.g., Module::Name => 1.1
'PL_FILES' => { 'Net-CIDR.spec.PL' => 'Net-CIDR.spec' }
);
Summary: Net::CIDR Perl module
Name: perl-Net-CIDR
Version: 0.10
Release: 1%(%{__perl} -e 'my $v=$^V; $v =~ s/(.)/".".ord($1)/ge;print "$v\n";')
Source0: Net-CIDR-%{version}.tar.gz
License: Perl
Group: Development/Languages
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
BuildPreReq: perl
%description
The Net::CIDR perl module manipulates IPv4/IPv6 netblocks in CIDR notation
%prep
%setup -q -n Net-CIDR-%{version}
%{__perl} Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix}
%build
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install
find $RPM_BUILD_ROOT \( -name .packlist -o -name perllocal.pod \) -exec rm -f {} \;
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_prefix}/lib/perl5/site_perl/*/Net
%{_mandir}/man3/*
%changelog
* Wed Aug 13 2003 Mr. Sam <sam@email-scan.com>
- Use preferred BuildRoot
* Sun Mar 31 2002 Mr. Sam <sam@email-scan.com>
- Changed package name to perl-Net-CIDR
* Fri Nov 2 2001 Mr. Sam <mrsam@courier-mta.com>
- Changed package name to perl-net-cidr
* Tue Jun 26 2001 Mr. Sam <mrsam@courier-mta.com>
- Initial build.
#$Revision: 1.9 $
do 'CIDR.pm';
open (X, ">Net-CIDR.spec") || die "$!\n";
while (<DATA>)
{
s/\@VERSION\@/$Net::CIDR::VERSION/e;
print X;
}
close(X);
__END__
Summary: Net::CIDR Perl module
Name: perl-Net-CIDR
Version: @VERSION@
Release: 1%(%{__perl} -e 'my $v=$^V; $v =~ s/(.)/".".ord($1)/ge;print "$v\n";')
Source0: Net-CIDR-%{version}.tar.gz
License: Perl
Group: Development/Languages
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
BuildPreReq: perl
%description
The Net::CIDR perl module manipulates IPv4/IPv6 netblocks in CIDR notation
%prep
%setup -q -n Net-CIDR-%{version}
%{__perl} Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix}
%build
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install
find $RPM_BUILD_ROOT \( -name .packlist -o -name perllocal.pod \) -exec rm -f {} \;
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_prefix}/lib/perl5/site_perl/*/Net
%{_mandir}/man3/*
%changelog
* Wed Aug 13 2003 Mr. Sam <sam@email-scan.com>
- Use preferred BuildRoot
* Sun Mar 31 2002 Mr. Sam <sam@email-scan.com>
- Changed package name to perl-Net-CIDR
* Fri Nov 2 2001 Mr. Sam <mrsam@courier-mta.com>
- Changed package name to perl-net-cidr
* Tue Jun 26 2001 Mr. Sam <mrsam@courier-mta.com>
- Initial build.
To install Net::CIDR:
perl Makefile.PL
make
make install
Using RPM:
rpm -ta Net-CIDR-{version}.tar.gz
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl test.pl'
######################### We start with some black magic to print on failure.
# Change 1..1 below to 1..last_test_to_print .
# (It may become useful if the test is moved to ./t subdirectory.)
BEGIN { $| = 1; print "1..1\n"; }
END {print "not ok 1\n" unless $loaded;}
use Net::CIDR;
$loaded = 1;
print "ok 1\n";
######################### End of black magic.
# Insert your test code below (better if it prints "ok 13"
# (correspondingly "not ok 13") depending on the success of chunk 13
# of the test code):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment