Point to CVSWEB instead of the FTP site for the content of individual

ports, as ftp.FreeBSD.org no longer carry a checked out ports tree.

The burden on the box of people mirroring the tens of thousands of files,
prevented ordinary users from accessing the site.
This commit is contained in:
Jesper Skriver 2003-01-21 23:21:18 +00:00
parent 49daba87e4
commit 0b7b3112ae
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=15753

View file

@ -4,7 +4,7 @@
#
# by John Fieber <jfieber@freebsd.org>
# Mon May 13 10:31:58 EST 1996
# $FreeBSD: www/en/ports/portindex,v 1.43 2002/03/16 08:01:32 murray Exp $
# $FreeBSD: www/en/ports/portindex,v 1.44 2002/09/09 16:59:48 knu Exp $
############################################################
@ -24,6 +24,7 @@ if ($ENV{'MASTER_FTP_SERVER'}) {
$base = "" if !$base;
$baseHTTP = $base if !$baseHTTP;
$baseFTP = "$ftpserver/pub/FreeBSD/branches/-current/";
$baseCVSWEB = 'http://www.FreeBSD.org/cgi/cvsweb.cgi/';
$urlcgi = 'http://www.freebsd.org/cgi/url.cgi' if !$urlcgi;
$packagesURL = "$ftpserver/pub/FreeBSD/ports/i386/packages-stable/All/"
if !$packagesURL;
@ -144,7 +145,7 @@ sub main {
$stats{$i}++;
# figure out the FTP url
$loc =~ s/\/usr\//$baseFTP/;
$loc =~ s/\/usr\//$baseCVSWEB/;
$ldesc =~ s/\/usr\//$baseHTTP/;
# The name description and maintainer