From owner-freebsd-stable@FreeBSD.ORG Tue Nov 27 08:22:23 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B6BBCEE for ; Tue, 27 Nov 2012 08:22:23 +0000 (UTC) (envelope-from yerenkow@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id C84398FC08 for ; Tue, 27 Nov 2012 08:22:22 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id 16so13823488obc.13 for ; Tue, 27 Nov 2012 00:22:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Hw6AKQuuJQWN04o4Bw/zUV77eoihVP5rb2wSoN0QwYA=; b=pFtoJMdKrZ8PVPF/qCsuBxku3IsxVloT0Fd5MI01oBFArqVM94D2QAMmA/B/cmlZy4 4KIVQwmFnWgHLNeaj5u+xRSQLZl1/zZa1PSFuwHEacRkYOQ9wgZhJoyXA1j0UrAD2iz7 EK0EUQPO6Xlnpoz5f+wzSsUbvSG7l/7iLn7xC0fnxkV4ZmCKtiEluMdeeEYZZRrjI0i6 c41tSO7+RwVYBzLnaw9vl8vyvrmNBT/ZTI3HdGSBOpDQI4z9Hfj0EhZLMnUxAO7O/lkC H8z/Mh7IYCO53rxLbV87RmydcpAGTJYC/+ak6HZllL8xrtrjg/qMnStPAV9XOlD+gtlb ISwg== MIME-Version: 1.0 Received: by 10.60.32.33 with SMTP id f1mr12026960oei.122.1354004529305; Tue, 27 Nov 2012 00:22:09 -0800 (PST) Received: by 10.60.132.50 with HTTP; Tue, 27 Nov 2012 00:22:09 -0800 (PST) In-Reply-To: References: Date: Tue, 27 Nov 2012 10:22:09 +0200 Message-ID: Subject: Re: simple patch for portsnap to use wget From: Alexander Yerenkow To: Luca Ferrari Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2012 08:22:23 -0000 Do you aware that if wget tries download from https, and there is self-signed certificate, then it fails, and ask for --no-check-certificate option? How do your patch deal in that case? 2012/11/27 Luca Ferrari > Hi all, > I was in trouble for a while because I was using FreeBSD behind an > http proxy (a palo alto for what it means) and the portsnap command > was unable to handle updates reporting always "file does not exist". > After digging I found that the problem was in the phttpget command > used internally from portsnap: phttpget is not able to handle an > http_proxy variable in the form of http://user:password@proxy:port > since the first colon is understood as a port separator and therefore > phttpget tries to connect to the host "user" on port > "password@proxy:port". Since I did not found much documentation about > how to solve the problem, and nobody on the forum was able to point me > in any direction (see > http://forums.freebsd.org/showthread.php?t=28849) I wrote a simple > patch to modify portsnap to use wget instead of phttpget. > Of course, this means you have to install wget first, and also the > laminating of the files to download has slightly changed within > portsnap, but I'm using it from several days and updates now and it > seems to work well. > Now the question is: should this patch, or better the idea of using > wget or another alike substitute to phttpget, be integrated into the > system? > I've tested it on FreeBSD-9-STABLE. > > Regards, > Luca > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Regards, Alexander Yerenkow