summaryrefslogtreecommitdiff
path: root/www/p5-libwww/patches/patch-aa
blob: 8ea37ae6809ee952f151190ef952d1e4f273d6f3 (plain)
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
$NetBSD: patch-aa,v 1.4 2007/11/23 08:46:32 tron Exp $

--- Makefile.PL.orig	2007-07-19 21:45:32.000000000 +0100
+++ Makefile.PL	2007-11-23 08:42:49.000000000 +0000
@@ -56,13 +56,16 @@
           sub { ($_[5]+1900, $_[4]+1, $_[3])}->(localtime(time - 45 * 24*60*60));
 if ($some_time_ago lt $release_date) {
     # Check if we have internet connection
-    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,
+#				 );
+
+    my $s = 0;
+
     if ($s) {
 	# XXX could try to send a GET to it???
-	close($s);
+#	close($s);
 
 	print <<EOT;
 
@@ -128,7 +131,10 @@
 EOT
     my @tmp;
     for my $alias (@request_aliases) {
-	my $default = "n";
+	my $default = "y";
+	if ($ENV{"OPSYS"} eq "Darwin") {
+	    $default = "n";
+	}
 	if (prompt("Do you want to install the $alias alias?", $default) =~ /^y/) {
 	    push(@tmp, $alias);
 	}