diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2004-12-13 17:10:46 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2004-12-13 17:10:46 +0800 |
commit | 206c09b7c9c034a65c3e19f60c2c93621cf6895e (patch) | |
tree | dff619f68daff39715f201331d7f9e9a83eb00c4 /sysutils | |
parent | bf165b96d90ccf1c6a9a458a95b8cc51d46a2dae (diff) | |
download | freebsd-ports-gnome-206c09b7c9c034a65c3e19f60c2c93621cf6895e.tar.gz freebsd-ports-gnome-206c09b7c9c034a65c3e19f60c2c93621cf6895e.tar.zst freebsd-ports-gnome-206c09b7c9c034a65c3e19f60c2c93621cf6895e.zip |
- Allow to use "-c us" option for U.S. servers.
- Allow to use "-c tld" option for TLD servers.
- Bump version to 0.2.9 to reflect these changes.
PR: ports/74711
Submitted by: kensmith
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/fastest_cvsup/Makefile | 3 | ||||
-rw-r--r-- | sysutils/fastest_cvsup/files/patch-fastest__cvsup | 91 |
2 files changed, 87 insertions, 7 deletions
diff --git a/sysutils/fastest_cvsup/Makefile b/sysutils/fastest_cvsup/Makefile index 08985e8e860b..f953f1b643d7 100644 --- a/sysutils/fastest_cvsup/Makefile +++ b/sysutils/fastest_cvsup/Makefile @@ -6,13 +6,14 @@ # PORTNAME= fastest_cvsup -PORTVERSION= 0.2.8 +PORTVERSION= 0.2.9 CATEGORIES= sysutils MASTER_SITES= http://fastest-cvsup.sourceforge.net/download/ MAINTAINER= ports@FreeBSD.org COMMENT= Finds fastest CVSup server +DISTVERSION= 0.2.8 USE_PERL5= yes MAN7= fastest_cvsup.7 diff --git a/sysutils/fastest_cvsup/files/patch-fastest__cvsup b/sysutils/fastest_cvsup/files/patch-fastest__cvsup index d737ae17a560..fcd2f058e61d 100644 --- a/sysutils/fastest_cvsup/files/patch-fastest__cvsup +++ b/sysutils/fastest_cvsup/files/patch-fastest__cvsup @@ -1,9 +1,23 @@ - -$FreeBSD$ - ---- fastest_cvsup.orig Tue Oct 12 20:23:25 2004 -+++ fastest_cvsup Tue Oct 12 20:23:52 2004 -@@ -82,7 +82,7 @@ +--- fastest_cvsup.orig Thu Sep 19 21:12:17 2002 ++++ fastest_cvsup Mon Dec 13 18:06:56 2004 +@@ -1,13 +1,15 @@ + #!/usr/bin/perl + #-----------------------------------------------------------------------------# + # +-# Find fastest CVSup server script for FreeBSD - version 0.2.8 ++# Find fastest CVSup server script for FreeBSD - version 0.2.9 + # Copyright (c) A.J.Robinson (ajr@subdimension.com) 2002 + # Distributed under the BSD license. + # + #-----------------------------------------------------------------------------# + # + # Changes: ++# 0.2.9 - added 'us' country code for USA hosts and 'tld' for top-level ++# domain machines (can be in any country) + # 0.2.8 - fixed the progress meter, timestamped %FREEBSD_SERVERS + # 0.2.7 - updated documentation, usage message and progress meter. + # 0.2.6 - changed from freebsdmirrors.org to the online handbook. +@@ -82,7 +84,7 @@ 'ca' => 2, # Canada 'cn' => 1, # China 'cz' => 1, # Czech Republic @@ -12,3 +26,68 @@ $FreeBSD$ 'dk' => 1, # Denmark 'ee' => 1, # Estonia 'es' => 3, # Spain +@@ -110,8 +112,9 @@ + 'tw' => 3, # Taiwan + 'ua' => 5, # Ukraine + 'uk' => 5, # United Kingdom +- 'us' => 17, # USA ++ 'us' => 18, # USA + 'za' => 2, # South Africa ++ 'tld' => 18, # Top Level Domain + ); + + my %OTHER_SERVERS = ( +@@ -177,6 +180,7 @@ + " -Q very quiet mode, no progress meter\n", + " -r uses remote server list from FreeBSD Handbook\n", + " -c aa,bb,cc queries servers in countries aa,bb,cc\n", ++ " tld queries servers in the top level domain\n", + " local queries servers set as local in the script\n", + " all queries all FreeBSD servers\n\n", + " See the man page, fastest_cvsup(7), for more details.\n\n"; +@@ -307,12 +311,12 @@ + unless ( $cc_name{$cc} ) { $cc_name{$cc} = $country } + } + +- # parse US servers ++ # parse TLD servers + + elsif ( $server =~ /cvsup([\d]*)\.freebsd\.org/i ) { + my $i = $1 || 1; +- if ( !$srv{'us'} or $srv{'us'} < $i ) { $srv{'us'} = $i } +- unless ( $cc_name{'us'} ) { $cc_name{'us'} = $country } ++ if ( !$srv{'tld'} or $srv{'tld'} < $i ) { $srv{'tld'} = $i } ++ unless ( $cc_name{'tld'} ) { $cc_name{'tld'} = $country } + } + } + } +@@ -419,7 +423,7 @@ + + for ( my $i=1; $i<=$FREEBSD_SERVERS{$cc}; $i++ ) { + +- if ( $cc eq 'us' ) { # use no country code, include the '1' ++ if ( $cc eq 'tld' ) { # use no country code, include the '1' + if ( $i == 1 ) { push(@first,"cvsup$i.freebsd.org"); } + else { push(@others,"cvsup$i.freebsd.org"); } + } +@@ -575,7 +579,7 @@ + + =head1 SYNOPSIS + +-B<fastest_cvsup> [B<-h>] [B<-(q|Q)>] [B<-r>] B<-c> (B<country codes>|B<local>|B<all>) ++B<fastest_cvsup> [B<-h>] [B<-(q|Q)>] [B<-r>] B<-c> (B<country codes>|B<tld>|B<local>|B<all>) + + =head1 DESCRIPTION + +@@ -619,6 +623,11 @@ + + NetBSD and OpenBSD servers are lumped together under the 'netbsd' and + 'openbsd' codes respectively. ++ ++=item B<-c tld> ++ ++checks the servers in the Top Level Domain. These can be anywhere in the ++world. + + =item B<-c local> + |