Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2006 15:58:20 +0900
From:      Hajimu UMEMOTO <ume@freebsd.org>
To:        "Miroslav Koula" <mkoula@gmail.com>, cperciva@FreBSD.org
Cc:        freebsd-ports@freebsd.org
Subject:   Re: portsnap aftre http proxy
Message-ID:  <yge1wxo7ywj.wl%ume@mahoroba.org>
In-Reply-To: <edad732a0602270736j4b04f7dam5522764526e84cea@mail.gmail.com>
References:  <edad732a0602270736j4b04f7dam5522764526e84cea@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Mon, 27 Feb 2006 16:36:44 +0100
>>>>> "Miroslav Koula" <mkoula@gmail.com> said:

mkoula> I have a server behind the http proxy and I would like to use portsnap
mkoula> to upgrade the ports collection. I am running FreeBSD 6 and:

mkoula> portsnap fetch

mkoula> Gives me:

mkoula> Looking up portsnap.Freebsd.org mirros... none found.

Can you query DNS from the box where you are running portsnap?  The
portsnap queries DNS to make the serverlist.

Further, I need to apply following change to remove trailing dot from
the servername in the serverlist to use portsnap from behind our http
proxy:

--- portsnap.orig	Thu Feb  2 23:28:03 2006
+++ portsnap	Tue Feb 28 15:42:11 2006
@@ -328,7 +353,7 @@ fetch_pick_server() {
 # Issue the SRV query and pull out the Priority, Weight, and Target fields.
 	host -t srv "_http._tcp.${SERVERNAME}" |
 	    grep -E "^_http._tcp.${SERVERNAME} has SRV record" |
-	    cut -f 5,6,8 -d ' ' > serverlist
+	    cut -f 5,6,8 -d ' ' | sed -e 's/\.$//' > serverlist
 
 # If no records, give up -- we'll just use the server name we were given.
 	if [ `wc -l < serverlist` -eq 0 ]; then


Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge1wxo7ywj.wl%ume>