From owner-freebsd-ports Wed Feb 6 11:20:15 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 05C3937B41E for ; Wed, 6 Feb 2002 11:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g16JK0b26222; Wed, 6 Feb 2002 11:20:00 -0800 (PST) (envelope-from gnats) Received: from tomts7-srv.bellnexxia.net (tomts7.bellnexxia.net [209.226.175.40]) by hub.freebsd.org (Postfix) with ESMTP id 737C437B400 for ; Wed, 6 Feb 2002 11:16:05 -0800 (PST) Received: from khan.anarcat.dyndns.org ([65.94.186.7]) by tomts7-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20020206191604.DLDB18463.tomts7-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Wed, 6 Feb 2002 14:16:04 -0500 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id E9BD119B2; Wed, 6 Feb 2002 14:16:01 -0500 (EST) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id C861C20ACC; Wed, 6 Feb 2002 14:16:12 -0500 (EST) Message-Id: <20020206191612.C861C20ACC@shall.anarcat.dyndns.org> Date: Wed, 6 Feb 2002 14:16:12 -0500 (EST) From: The Anarcat Reply-To: The Anarcat To: FreeBSD-gnats-submit@freebsd.org Cc: anarcat@anarcat.dyndns.org X-Send-Pr-Version: 3.113 Subject: ports/34669: "download" links in WWW ports listing are broken Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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{
$version\n}; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message