blob: de1e6b66359ee443850c6b0de97cf2fef01ce1ba (
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
|
$NetBSD: patch-aa,v 1.3 2007/11/07 09:45:01 heinz Exp $
--- Makefile.PL.orig 2007-07-19 22:45:32.000000000 +0200
+++ Makefile.PL
@@ -56,13 +56,16 @@ my $some_time_ago = sprintf "%04d-%02d-%
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,7 @@ $Config{installscript}.
EOT
my @tmp;
for my $alias (@request_aliases) {
- my $default = "n";
+ my $default = "y";
if (prompt("Do you want to install the $alias alias?", $default) =~ /^y/) {
push(@tmp, $alias);
}
|