Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Apr 1997 14:33:22 +0200 (MET DST)
From:      Wolfram Schneider <wosch@cs.tu-berlin.de>
To:        www@freebsd.org
Subject:   portindex
Message-ID:  <199704251233.OAA09717@rheuma.cs.tu-berlin.de>

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

The 'portindex' script should make HTTP links to the Long description
file. A ftp connection for a short single file is an overkill and
slow.

Wolfram

Index: portindex
===================================================================
RCS file: /home/ncvs/www/data/ports/portindex,v
retrieving revision 1.3
diff -u -r1.3 portindex
--- portindex	1997/02/04 15:28:45	1.3
+++ portindex	1997/04/25 12:23:59
@@ -9,6 +9,7 @@
 
 # This is the base of where we ftp stuff from
 $base = "ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current";
+$baseHTTP = "http://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current";
 
 $today = &getdate;
 
@@ -67,7 +68,7 @@
 
     	    # figure out the FTP url
 	    $loc =~ s/\/usr/$base/;
-	    $ldesc =~ s/\/usr/$base/;
+	    $ldesc =~ s/\/usr/$baseHTTP/;
 
     	    # The name description and maintainer
 	    $data{$i} .= "<DT><B><A NAME=\"$name\"></A><A HREF=\"$loc.tar.gz\">$name</A></B> ";



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