From owner-freebsd-ports@FreeBSD.ORG Tue Feb 28 06:58:35 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1739F16A420 for ; Tue, 28 Feb 2006 06:58:35 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7DB743D78 for ; Tue, 28 Feb 2006 06:58:28 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:Pq18V8zLCkr+bzMfEBUoK+7kh3D4oSI+wGIMHoykncBvhxSJ86P5+bDGu+m58KgE@localhost [IPv6:::1]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.4/8.13.4) with ESMTP/inet6 id k1S6wKMF013525 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Feb 2006 15:58:20 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Tue, 28 Feb 2006 15:58:20 +0900 Message-ID: From: Hajimu UMEMOTO To: "Miroslav Koula" , cperciva@FreBSD.org In-Reply-To: References: User-Agent: xcite1.38> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-unknown-freebsd5.5) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 5.5-PRERELEASE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.1.3 (ameno.mahoroba.org [IPv6:::1]); Tue, 28 Feb 2006 15:58:23 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on ameno.mahoroba.org Cc: freebsd-ports@freebsd.org Subject: Re: portsnap aftre http proxy X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2006 06:58:35 -0000 Hi, >>>>> On Mon, 27 Feb 2006 16:36:44 +0100 >>>>> "Miroslav Koula" 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/