diff options
author | Doug Barton <dougb@FreeBSD.org> | 2002-08-05 01:38:40 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2002-08-05 01:38:40 +0000 |
commit | d48b023a584f884c74731aa0a07a65f62b67bbe3 (patch) | |
tree | 806539ac44bb5743515b549313220254c1e5b8c5 /dns | |
parent | c7afd95654af6955316de8b4bc470363d6debd41 (diff) | |
download | ports-d48b023a584f884c74731aa0a07a65f62b67bbe3.tar.gz ports-d48b023a584f884c74731aa0a07a65f62b67bbe3.zip |
Notes
Diffstat (limited to 'dns')
-rw-r--r-- | dns/p5-Net-DNS/files/patch-Makefile.Pl | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dns/p5-Net-DNS/files/patch-Makefile.Pl b/dns/p5-Net-DNS/files/patch-Makefile.Pl new file mode 100644 index 000000000000..a2ece0b730d8 --- /dev/null +++ b/dns/p5-Net-DNS/files/patch-Makefile.Pl @@ -0,0 +1,55 @@ +--- Makefile.PL.Dist Thu Aug 1 02:57:10 2002 ++++ Makefile.PL Sun Aug 4 18:27:55 2002 +@@ -13,29 +13,29 @@ + + # Check if we have internet connection + # (I lifted this code from LWP... many thanks for this and more!) +-require IO::Socket; +-my $s = IO::Socket::INET->new( +- PeerAddr => "www.google.com:80", +- Timeout => 10, +-); +- +-if ($s) { +- close($s); +- +- print <<EOT; +- +-You appear to be directly connected to the Internet. I have some tests +-that try to query live nameservers. +- +-EOT +- +- if (prompt("Do you want to enable these tests?", "y") =~ /^y/i) { +- open(ENABLED, ">t/online.enabled") || die "Can't touch ./t/online.enabled $!"; +- close(ENABLED); +- } else { +- unlink("t/online.enabled"); # just to shure... +- } +-} ++#require IO::Socket; ++#my $s = IO::Socket::INET->new( ++# PeerAddr => "www.google.com:80", ++# Timeout => 10, ++#); ++# ++#if ($s) { ++# close($s); ++# ++# print <<EOT; ++# ++#You appear to be directly connected to the Internet. I have some tests ++#that try to query live nameservers. ++# ++#EOT ++# ++# if (prompt("Do you want to enable these tests?", "y") =~ /^y/i) { ++# open(ENABLED, ">t/online.enabled") || die "Can't touch ./t/online.enabled $!"; ++# close(ENABLED); ++# } else { ++# unlink("t/online.enabled"); # just to shure... ++# } ++#} + + + WriteMakefile( |