portsnap aftre http proxy

Hajimu UMEMOTO ume at freebsd.org
Mon Feb 27 22:58:35 PST 2006


Hi,

>>>>> On Mon, 27 Feb 2006 16:36:44 +0100
>>>>> "Miroslav Koula" <mkoula at 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 at mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/


More information about the freebsd-ports mailing list