summaryrefslogtreecommitdiff
path: root/dns/p5-Net-DNS/files/patch-Makefile.Pl
blob: c17b347217f6922a23828aee57e8d2d206b6051b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- 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(