From owner-freebsd-current Thu Dec 3 12:31:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA17940 for freebsd-current-outgoing; Thu, 3 Dec 1998 12:31:50 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail.gtn.com (mail.gtn.com [194.77.0.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA17854 for ; Thu, 3 Dec 1998 12:31:19 -0800 (PST) (envelope-from andreas@klemm.gtn.com) Received: (from uucp@localhost) by mail.gtn.com (8.8.6/8.8.6) with UUCP id VAA28933; Thu, 3 Dec 1998 21:30:05 +0100 (MET) Received: (from andreas@localhost) by klemm.gtn.com (8.9.1/8.9.1) id VAA16764; Thu, 3 Dec 1998 21:09:37 +0100 (CET) (envelope-from andreas) Message-ID: <19981203210935.A16110@klemm.gtn.com> Date: Thu, 3 Dec 1998 21:09:35 +0100 From: Andreas Klemm To: Martin Cracauer , current@FreeBSD.ORG Subject: Re: Proposed addition to fetch(1) References: <19981203200743.A861@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <19981203200743.A861@cons.org>; from Martin Cracauer on Thu, Dec 03, 1998 at 08:07:43PM +0100 X-Disclaimer: A free society is one where it is safe to be unpopular X-Operating-System: FreeBSD 3.0-CURRENT SMP Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Dec 03, 1998 at 08:07:43PM +0100, Martin Cracauer wrote: > I plan to add this to fetch, unless anyone objects. > > -s Ask server for size of file in bytes and print it to stdout. > Do not actually fetch the file. > > Actual diff appended. > > I plan to use it for a `make fetchsize` target for ports, so that you > can ask how much traffic you would cause before actually starting the > fetch. What about the possibility of setting an environment variable FETCH_MAX=3000 where 3000 = 3000 KByte = 3 MByte Setting this variable in /etc/make.conf and fiddeling around in bsd.port.mk could add a nice functionality ... -- Andreas Klemm To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message