ready for release
This commit is contained in:
parent
bc14da76af
commit
4cad3859f4
|
@ -1,5 +1,6 @@
|
|||
Revision history for Net-Connection-FreeBSD_sockstat
|
||||
|
||||
0.01 Date/time
|
||||
First version, released on an unsuspecting world.
|
||||
0.0.1 2021-02-08/08:00
|
||||
- Initial release.
|
||||
|
||||
|
||||
|
|
|
@ -4,42 +4,41 @@ use warnings;
|
|||
use ExtUtils::MakeMaker;
|
||||
|
||||
my %WriteMakefileArgs = (
|
||||
NAME => 'Net::Connection::FreeBSD_sockstat',
|
||||
AUTHOR => q{Zane C. Bowers-Hadley <vvelox@vvelox.net>},
|
||||
VERSION_FROM => 'lib/Net/Connection/FreeBSD_sockstat.pm',
|
||||
ABSTRACT_FROM => 'lib/Net/Connection/FreeBSD_sockstat.pm',
|
||||
LICENSE => 'artistic_2',
|
||||
MIN_PERL_VERSION => '5.006',
|
||||
CONFIGURE_REQUIRES => {
|
||||
'ExtUtils::MakeMaker' => '0',
|
||||
},
|
||||
TEST_REQUIRES => {
|
||||
'Test::More' => '0',
|
||||
},
|
||||
PREREQ_PM => {
|
||||
#'ABC' => '1.6',
|
||||
#'Foo::Bar::Module' => '5.0401',
|
||||
},
|
||||
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
|
||||
clean => { FILES => 'Net-Connection-FreeBSD_sockstat-*' },
|
||||
NAME => 'Net::Connection::FreeBSD_sockstat',
|
||||
AUTHOR => q{Zane C. Bowers-Hadley <vvelox@vvelox.net>},
|
||||
VERSION_FROM => 'lib/Net/Connection/FreeBSD_sockstat.pm',
|
||||
ABSTRACT_FROM => 'lib/Net/Connection/FreeBSD_sockstat.pm',
|
||||
LICENSE => 'artistic_2',
|
||||
MIN_PERL_VERSION => '5.006',
|
||||
CONFIGURE_REQUIRES => {
|
||||
'ExtUtils::MakeMaker' => '0',
|
||||
},
|
||||
TEST_REQUIRES => {
|
||||
'Test::More' => '0',
|
||||
},
|
||||
PREREQ_PM => {
|
||||
'Net::Connection' => '0.2.0',
|
||||
},
|
||||
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
|
||||
clean => { FILES => 'Net-Connection-FreeBSD_sockstat-*' },
|
||||
);
|
||||
|
||||
# Compatibility with old versions of ExtUtils::MakeMaker
|
||||
unless (eval { ExtUtils::MakeMaker->VERSION('6.64'); 1 }) {
|
||||
my $test_requires = delete $WriteMakefileArgs{TEST_REQUIRES} || {};
|
||||
@{$WriteMakefileArgs{PREREQ_PM}}{keys %$test_requires} = values %$test_requires;
|
||||
unless ( eval { ExtUtils::MakeMaker->VERSION('6.64'); 1 } ) {
|
||||
my $test_requires = delete $WriteMakefileArgs{TEST_REQUIRES} || {};
|
||||
@{ $WriteMakefileArgs{PREREQ_PM} }{ keys %$test_requires } = values %$test_requires;
|
||||
}
|
||||
|
||||
unless (eval { ExtUtils::MakeMaker->VERSION('6.55_03'); 1 }) {
|
||||
my $build_requires = delete $WriteMakefileArgs{BUILD_REQUIRES} || {};
|
||||
@{$WriteMakefileArgs{PREREQ_PM}}{keys %$build_requires} = values %$build_requires;
|
||||
unless ( eval { ExtUtils::MakeMaker->VERSION('6.55_03'); 1 } ) {
|
||||
my $build_requires = delete $WriteMakefileArgs{BUILD_REQUIRES} || {};
|
||||
@{ $WriteMakefileArgs{PREREQ_PM} }{ keys %$build_requires } = values %$build_requires;
|
||||
}
|
||||
|
||||
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
|
||||
unless eval { ExtUtils::MakeMaker->VERSION('6.52'); 1 };
|
||||
unless eval { ExtUtils::MakeMaker->VERSION('6.52'); 1 };
|
||||
delete $WriteMakefileArgs{MIN_PERL_VERSION}
|
||||
unless eval { ExtUtils::MakeMaker->VERSION('6.48'); 1 };
|
||||
unless eval { ExtUtils::MakeMaker->VERSION('6.48'); 1 };
|
||||
delete $WriteMakefileArgs{LICENSE}
|
||||
unless eval { ExtUtils::MakeMaker->VERSION('6.31'); 1 };
|
||||
unless eval { ExtUtils::MakeMaker->VERSION('6.31'); 1 };
|
||||
|
||||
WriteMakefile(%WriteMakefileArgs);
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
Net-Connection-FreeBSD_sockstat
|
||||
|
||||
The README is used to introduce the module and provide instructions on
|
||||
how to install the module, any machine dependencies it may have (for
|
||||
example C compilers and installed libraries) and any other information
|
||||
that should be provided before the module is installed.
|
||||
Creates Net::Connection objects using sockstat on FreeBSD.
|
||||
|
||||
A README file is required for CPAN modules since CPAN extracts the README
|
||||
file from a module distribution so that people browsing the archive
|
||||
can use it to get an idea of the module's uses. It is usually a good idea
|
||||
to provide version information here so that people can decide whether
|
||||
fixes for the module are worth downloading.
|
||||
use Net::Connection::FreeBSD_sockstat;
|
||||
|
||||
my @objects;
|
||||
eval{ @objects=&sockstat_to_nc_objects; };
|
||||
|
||||
# this time don't resolve ports, ptrs, or usernames
|
||||
my $args={
|
||||
ports=>0,
|
||||
ptrs=>0,
|
||||
};
|
||||
eval{ @objects=&sockstat_to_nc_objects( $args )); };
|
||||
|
||||
|
||||
INSTALLATION
|
||||
|
@ -39,6 +42,9 @@ You can also look for information at:
|
|||
Search CPAN
|
||||
https://metacpan.org/release/Net-Connection-FreeBSD_sockstat
|
||||
|
||||
Git Repo
|
||||
https://gitea.eesdp.org/vvelox/Net-Connection-FreeBSD_sockstat
|
||||
|
||||
|
||||
LICENSE AND COPYRIGHT
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ our @EXPORT=qw(sockstat_to_nc_objects);
|
|||
|
||||
=head1 NAME
|
||||
|
||||
Net::Connection::FreeBSD_sockstat - The great new Net::Connection::FreeBSD_sockstat!
|
||||
Net::Connection::FreeBSD_sockstat - Creates Net::Connection objects using sockstat on FreeBSD.
|
||||
|
||||
=head1 VERSION
|
||||
|
||||
|
@ -25,10 +25,24 @@ our $VERSION = '0.0.1';
|
|||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
use Net::Connection::FreeBSD_sockstat;
|
||||
|
||||
my @objects;
|
||||
eval{ @objects=&sockstat_to_nc_objects; };
|
||||
|
||||
# this time don't resolve ports, ptrs, or usernames
|
||||
my $args={
|
||||
ports=>0,
|
||||
ptrs=>0,
|
||||
};
|
||||
eval{ @objects=&sockstat_to_nc_objects( $args )); };
|
||||
|
||||
=head1 SUBROUTINES
|
||||
|
||||
=head2 sockstat_to_nc_objects
|
||||
|
||||
This parses the output of 'sockstat -46s'.
|
||||
|
||||
=head3 args hash
|
||||
|
||||
=head4 ports
|
||||
|
@ -312,6 +326,10 @@ L<https://cpanratings.perl.org/d/Net-Connection-FreeBSD_sockstat>
|
|||
|
||||
L<https://metacpan.org/release/Net-Connection-FreeBSD_sockstat>
|
||||
|
||||
=item * Git Repo
|
||||
|
||||
L<https://gitea.eesdp.org/vvelox/Net-Connection-FreeBSD_sockstat>
|
||||
|
||||
=back
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue