From: Nicholas Clark Date: Sun, 30 Aug 2009 18:21:53 +0000 (+0100) Subject: Move Net::Ping from lib to ext X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a79d563c5b1e534968f5274b3cc36fa26e10ba16;p=p5sagit%2Fp5-mst-13.2.git Move Net::Ping from lib to ext --- diff --git a/MANIFEST b/MANIFEST index 4a9503b..0e741cb 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1133,6 +1133,23 @@ ext/NDBM_File/NDBM_File.pm NDBM extension Perl module ext/NDBM_File/NDBM_File.xs NDBM extension external subroutines ext/NDBM_File/t/ndbm.t See if NDBM_File works ext/NDBM_File/typemap NDBM extension interface types +ext/Net-Ping/Changes Net::Ping +ext/Net-Ping/lib/Net/Ping.pm Hello, anybody home? +ext/Net-Ping/t/100_load.t Ping Net::Ping +ext/Net-Ping/t/110_icmp_inst.t Ping Net::Ping +ext/Net-Ping/t/120_udp_inst.t Ping Net::Ping +ext/Net-Ping/t/130_tcp_inst.t Ping Net::Ping +ext/Net-Ping/t/140_stream_inst.t Ping Net::Ping +ext/Net-Ping/t/150_syn_inst.t Ping Net::Ping +ext/Net-Ping/t/190_alarm.t Ping Net::Ping +ext/Net-Ping/t/200_ping_tcp.t Ping Net::Ping +ext/Net-Ping/t/250_ping_hires.t Ping Net::Ping +ext/Net-Ping/t/300_ping_stream.t Ping Net::Ping +ext/Net-Ping/t/400_ping_syn.t Ping Net::Ping +ext/Net-Ping/t/410_syn_host.t Ping Net::Ping +ext/Net-Ping/t/450_service.t Ping Net::Ping +ext/Net-Ping/t/500_ping_icmp.t Ping Net::Ping +ext/Net-Ping/t/510_ping_udp.t Ping Net::Ping ext/ODBM_File/hints/cygwin.pl Hint for ODBM_File for named architecture ext/ODBM_File/hints/dec_osf.pl Hint for ODBM_File for named architecture ext/ODBM_File/hints/gnukfreebsd.pl Hint for NDBM_File for named architecture @@ -2776,23 +2793,6 @@ lib/Net/netent.pm By-name interface to Perl's builtin getnet* lib/Net/netent.t See if Net::netent works lib/Net/Netrc.pm libnet lib/Net/NNTP.pm libnet -lib/Net/Ping/Changes Net::Ping -lib/Net/Ping.pm Hello, anybody home? -lib/Net/Ping/t/100_load.t Ping Net::Ping -lib/Net/Ping/t/110_icmp_inst.t Ping Net::Ping -lib/Net/Ping/t/120_udp_inst.t Ping Net::Ping -lib/Net/Ping/t/130_tcp_inst.t Ping Net::Ping -lib/Net/Ping/t/140_stream_inst.t Ping Net::Ping -lib/Net/Ping/t/150_syn_inst.t Ping Net::Ping -lib/Net/Ping/t/190_alarm.t Ping Net::Ping -lib/Net/Ping/t/200_ping_tcp.t Ping Net::Ping -lib/Net/Ping/t/250_ping_hires.t Ping Net::Ping -lib/Net/Ping/t/300_ping_stream.t Ping Net::Ping -lib/Net/Ping/t/400_ping_syn.t Ping Net::Ping -lib/Net/Ping/t/410_syn_host.t Ping Net::Ping -lib/Net/Ping/t/450_service.t Ping Net::Ping -lib/Net/Ping/t/500_ping_icmp.t Ping Net::Ping -lib/Net/Ping/t/510_ping_udp.t Ping Net::Ping lib/Net/POP3.pm libnet lib/Net/protoent.pm By-name interface to Perl's builtin getproto* lib/Net/protoent.t See if Net::protoent works diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index 773cd27..79a8439 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -1228,7 +1228,7 @@ package Maintainers; { 'MAINTAINER' => 'smpeters', 'DISTRIBUTION' => 'SMPETERS/Net-Ping-2.36.tar.gz', - 'FILES' => q[lib/Net/Ping.pm lib/Net/Ping], + 'FILES' => q[ext/Net-Ping], 'CPAN' => 1, 'UPSTREAM' => 'blead', }, diff --git a/ext/.gitignore b/ext/.gitignore index 620e514..2ecea00 100644 --- a/ext/.gitignore +++ b/ext/.gitignore @@ -42,6 +42,7 @@ ppport.h /base/Makefile.PL /Filter-Simple/Makefile.PL /I18N-LangTags/Makefile.PL +/Net-Ping/Makefile.PL # ignore all vim swap files but the one bundled in Module::Pluggable for testing *.swp diff --git a/lib/Net/Ping/Changes b/ext/Net-Ping/Changes similarity index 100% rename from lib/Net/Ping/Changes rename to ext/Net-Ping/Changes diff --git a/lib/Net/Ping.pm b/ext/Net-Ping/lib/Net/Ping.pm similarity index 100% rename from lib/Net/Ping.pm rename to ext/Net-Ping/lib/Net/Ping.pm diff --git a/lib/Net/Ping/t/100_load.t b/ext/Net-Ping/t/100_load.t similarity index 100% rename from lib/Net/Ping/t/100_load.t rename to ext/Net-Ping/t/100_load.t diff --git a/lib/Net/Ping/t/110_icmp_inst.t b/ext/Net-Ping/t/110_icmp_inst.t similarity index 100% rename from lib/Net/Ping/t/110_icmp_inst.t rename to ext/Net-Ping/t/110_icmp_inst.t diff --git a/lib/Net/Ping/t/120_udp_inst.t b/ext/Net-Ping/t/120_udp_inst.t similarity index 100% rename from lib/Net/Ping/t/120_udp_inst.t rename to ext/Net-Ping/t/120_udp_inst.t diff --git a/lib/Net/Ping/t/130_tcp_inst.t b/ext/Net-Ping/t/130_tcp_inst.t similarity index 100% rename from lib/Net/Ping/t/130_tcp_inst.t rename to ext/Net-Ping/t/130_tcp_inst.t diff --git a/lib/Net/Ping/t/140_stream_inst.t b/ext/Net-Ping/t/140_stream_inst.t similarity index 100% rename from lib/Net/Ping/t/140_stream_inst.t rename to ext/Net-Ping/t/140_stream_inst.t diff --git a/lib/Net/Ping/t/150_syn_inst.t b/ext/Net-Ping/t/150_syn_inst.t similarity index 100% rename from lib/Net/Ping/t/150_syn_inst.t rename to ext/Net-Ping/t/150_syn_inst.t diff --git a/lib/Net/Ping/t/190_alarm.t b/ext/Net-Ping/t/190_alarm.t similarity index 100% rename from lib/Net/Ping/t/190_alarm.t rename to ext/Net-Ping/t/190_alarm.t diff --git a/lib/Net/Ping/t/200_ping_tcp.t b/ext/Net-Ping/t/200_ping_tcp.t similarity index 97% rename from lib/Net/Ping/t/200_ping_tcp.t rename to ext/Net-Ping/t/200_ping_tcp.t index 2ac2236..0f59234 100644 --- a/lib/Net/Ping/t/200_ping_tcp.t +++ b/ext/Net-Ping/t/200_ping_tcp.t @@ -4,8 +4,6 @@ BEGIN { print "1..0 # Skip: network dependent test\n"; exit; } - chdir 't' if -d 't'; - @INC = qw(../lib); } unless (eval "require Socket") { print "1..0 \# Skip: no Socket\n"; diff --git a/lib/Net/Ping/t/250_ping_hires.t b/ext/Net-Ping/t/250_ping_hires.t similarity index 96% rename from lib/Net/Ping/t/250_ping_hires.t rename to ext/Net-Ping/t/250_ping_hires.t index a2187d0..1f4bcb3 100644 --- a/lib/Net/Ping/t/250_ping_hires.t +++ b/ext/Net-Ping/t/250_ping_hires.t @@ -6,8 +6,6 @@ BEGIN { print "1..0 # Skip: network dependent test\n"; exit; } - chdir 't' if -d 't'; - @INC = qw(../lib); } unless (eval "require Socket") { print "1..0 \# Skip: no Socket\n"; diff --git a/lib/Net/Ping/t/300_ping_stream.t b/ext/Net-Ping/t/300_ping_stream.t similarity index 97% rename from lib/Net/Ping/t/300_ping_stream.t rename to ext/Net-Ping/t/300_ping_stream.t index 3a2f444..d5a3a3f 100644 --- a/lib/Net/Ping/t/300_ping_stream.t +++ b/ext/Net-Ping/t/300_ping_stream.t @@ -4,8 +4,6 @@ BEGIN { print "1..0 # Skip: network dependent test\n"; exit; } - chdir 't' if -d 't'; - @INC = qw(../lib); } unless (eval "require Socket") { print "1..0 \# Skip: no Socket\n"; diff --git a/lib/Net/Ping/t/400_ping_syn.t b/ext/Net-Ping/t/400_ping_syn.t similarity index 97% rename from lib/Net/Ping/t/400_ping_syn.t rename to ext/Net-Ping/t/400_ping_syn.t index ae89800..915e0ff 100644 --- a/lib/Net/Ping/t/400_ping_syn.t +++ b/ext/Net-Ping/t/400_ping_syn.t @@ -4,8 +4,6 @@ BEGIN { print "1..0 # Skip: network dependent test\n"; exit; } - chdir 't' if -d 't'; - @INC = qw(../lib); } unless (eval "require Socket") { print "1..0 \# Skip: no Socket\n"; diff --git a/lib/Net/Ping/t/410_syn_host.t b/ext/Net-Ping/t/410_syn_host.t similarity index 97% rename from lib/Net/Ping/t/410_syn_host.t rename to ext/Net-Ping/t/410_syn_host.t index 8374b20..efadcb4 100644 --- a/lib/Net/Ping/t/410_syn_host.t +++ b/ext/Net-Ping/t/410_syn_host.t @@ -6,8 +6,6 @@ BEGIN { print "1..0 # Skip: network dependent test\n"; exit; } - chdir 't' if -d 't'; - @INC = qw(../lib); } unless (eval "require Socket") { print "1..0 \# Skip: no Socket\n"; diff --git a/lib/Net/Ping/t/450_service.t b/ext/Net-Ping/t/450_service.t similarity index 100% rename from lib/Net/Ping/t/450_service.t rename to ext/Net-Ping/t/450_service.t diff --git a/lib/Net/Ping/t/500_ping_icmp.t b/ext/Net-Ping/t/500_ping_icmp.t similarity index 100% rename from lib/Net/Ping/t/500_ping_icmp.t rename to ext/Net-Ping/t/500_ping_icmp.t diff --git a/lib/Net/Ping/t/510_ping_udp.t b/ext/Net-Ping/t/510_ping_udp.t similarity index 100% rename from lib/Net/Ping/t/510_ping_udp.t rename to ext/Net-Ping/t/510_ping_udp.t diff --git a/lib/.gitignore b/lib/.gitignore index a328052..3309b9b 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -50,6 +50,7 @@ /Math/BigInt/FastCalc.pm /Module/Pluggable.pm /Module/Pluggable +/Net/Ping.pm /NDBM_File.pm /O.pm /ODBM_File.pm