Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  6 Feb 2002 14:16:12 -0500 (EST)
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        anarcat@anarcat.dyndns.org
Subject:   ports/34669: "download" links in WWW ports listing are broken
Message-ID:  <20020206191612.C861C20ACC@shall.anarcat.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         34669
>Category:       ports
>Synopsis:       "download" links in WWW ports listing are broken
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 06 11:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     The Anarcat
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Nada, Inc
>Environment:
System: FreeBSD shall.anarcat.dyndns.org 4.5-STABLE FreeBSD 4.5-STABLE #4: Mon Jan 28 04:41:28 EST 2002 anarcat@shall.anarcat.dyndns.org:/usr/obj/usr/src/sys/SHALL i386


>Description:

The www/en/cgi/ports.cgi script is handy to list ports and ports
changes. However, it is completely useless to download the given port,
since it links to

ftp://ftp.FreeBSD.org/pub/FreeBSD/branches/-current/ports/archivers/sectar

which is a directory.

>How-To-Repeat:

follow (eg)
http://www.FreeBSD.org/cgi/ports.cgi?query=mutt&stype=name&release=4.4-STABLE%2Fi386

and click on any "download" link. It will timeout or simply be refused.

>Fix:

Use cvsweb, which has tarball generation capabilities, to link to:

This is some kind of fix.

Index: ports.cgi
===================================================================
RCS file: /home/ncvs/www/en/cgi/ports.cgi,v
retrieving revision 1.59
diff -u -r1.59 ports.cgi
--- ports.cgi	7 Nov 2001 16:32:12 -0000	1.59
+++ ports.cgi	6 Feb 2002 19:07:33 -0000
@@ -49,7 +49,7 @@
 
     # URL of ports tree for download 
     $remotePrefixFtpDownload =
-	'ftp://ftp.FreeBSD.org/pub/FreeBSD/branches/-current/ports';
+	'http://www.FreeBSD.org/cgi/cvsweb.cgi/ports';
 
     # where to get -current packages
     local($p) = 'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386';
@@ -313,6 +313,7 @@
 
     $path =~ s/^$localPrefix/$remotePrefixFtp/o;
     $pathDownload =~ s/^$localPrefix/$remotePrefixFtpDownload/o;
+    $pathDownload .= "?tarball=1";
     $descfile =~ s/^$localPrefix/$remotePrefixFtp/o;
 
     print qq{<DT><B><A NAME="$version">$version</A></B>\n};

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020206191612.C861C20ACC>