1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/dns/p5-Net-DNS/files/patch-Makefile.Pl
Doug Barton 13f554ed42 Upgrade to 0.26, which has fixes for the test suite, and the AUTOLOAD
bug that I found when running this code under perl 5.005.
2002-08-07 00:17:06 +00:00

55 lines
1.3 KiB
Perl

--- Makefile.PL.orig Mon Aug 5 13:06:55 2002
+++ Makefile.PL Tue Aug 6 17:09:56 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,
-);
+#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 be shure...
- }
-}
+#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 be shure...
+# }
+#}
WriteMakefile(