From owner-freebsd-arch Wed Mar 14 12:44:40 2001 Delivered-To: freebsd-arch@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id CA6E637B719 for ; Wed, 14 Mar 2001 12:44:36 -0800 (PST) (envelope-from nectar@nectar.com) Received: from hamlet.nectar.com (hamlet.nectar.com [10.0.1.102]) by gw.nectar.com (Postfix) with ESMTP id 86AA418C94; Wed, 14 Mar 2001 14:44:35 -0600 (CST) Received: (from nectar@localhost) by hamlet.nectar.com (8.11.3/8.9.3) id f2EKiZT50474; Wed, 14 Mar 2001 14:44:35 -0600 (CST) (envelope-from nectar@spawn.nectar.com) Date: Wed, 14 Mar 2001 14:44:35 -0600 From: "Jacques A. Vidrine" To: Peter Pentchev Cc: Dan Nelson , freebsd-arch@FreeBSD.ORG Subject: Re: [PATCH] add a SITE MD5 command to ftpd Message-ID: <20010314144434.A2658@hamlet.nectar.com> Mail-Followup-To: "Jacques A. Vidrine" , Peter Pentchev , Dan Nelson , freebsd-arch@FreeBSD.ORG References: <20010313211544.B17733@ringworld.oblivion.bg> <200103140459.VAA03061@usr05.primenet.com> <20010314084651.A23104@ringworld.oblivion.bg> <20010314012132.A91957@dragon.nuxi.com> <20010314112651.C23104@ringworld.oblivion.bg> <20010314101440.A5965@dan.emsphone.com> <20010314182106.A422@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010314182106.A422@ringworld.oblivion.bg>; from roam@orbitel.bg on Wed, Mar 14, 2001 at 06:21:06PM +0200 X-Url: http://www.nectar.com/ Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 14, 2001 at 06:21:06PM +0200, Peter Pentchev wrote: > Hmm.. because we do not record this in our port metadata? > > Actually, after a discussion with David O'Brien on IRC today, > I'm having second thoughts about this feature. Maybe in a day > or two, after I've slept on it, I'll change my mind about it :) It sounds reasonable to me. At a minimum, it could be used by the ports system to avoid downloading files that appear like they will not match the MD5 checksum anyway. This would be very handy when the distfile changes, but the maintainer has not yet caught on, e.g. % cd /usr/ports/devel/foo && make >> foo-8.32.tar.gz doesn't seem to exist in /usr/ports/distfiles/. >> Attempting to fetch from ftp://ftp.fooland.com/pub/superfoo/ SITE MD5 reports checksum mismatch, moving on >> Attempting to fetch from ftp://ftp.mirror.com/pub/mirrors/fooland/superfoo/ SITE MD5 reports checksum mismatch, moving on >> Attempting to fetch from ftp://ftp.freebsd.org/pub/distfiles/ Receiving foo-8.32.tar.gz: 100% 4294967295 bytes transferred in 2678401 seconds (1.56 kBps) ===> Extracting for foo-8.32.tar.gz >> Checksum OK for foo-8.32.tar.gz The way it works today, you'll download foo from the first site, and the checksum will fail, which is annoying. OTOH, more and more distfiles are distributed via HTTP, and not FTP, marginalizing the payback of adding this functionality to ftpd. HTTP/1.1 has Content-MD5, but the standard is mostly broken. Cheers, -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message