From owner-svn-src-all@FreeBSD.ORG Sun Oct 23 23:11:20 2011 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B789F106564A; Sun, 23 Oct 2011 23:11:20 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 2CF2B8FC17; Sun, 23 Oct 2011 23:11:19 +0000 (UTC) Received: by wwi18 with SMTP id 18so7886763wwi.31 for ; Sun, 23 Oct 2011 16:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=FBqesIvFAf+u+BodMTVaakAaiHVCQ+HATqTJ9Oi8PZI=; b=pVceXXE7h3dyxpfYiLDrsDsUVe2uNKyeM8L1K455zoodx1BIOtoH1DvnrYR4I5WOAB ZBYCTXqntMseH8Y8Iwn19O4g8fILbG1XlitEIwxfYEPX8quG1XceQZOcsK703lYXx291 dpN5k1UNNdIF6hhpDkMOHG+dQseiomLg807I0= MIME-Version: 1.0 Received: by 10.227.6.199 with SMTP id a7mr8308136wba.74.1319410779766; Sun, 23 Oct 2011 15:59:39 -0700 (PDT) Received: by 10.180.98.5 with HTTP; Sun, 23 Oct 2011 15:59:39 -0700 (PDT) Date: Sun, 23 Oct 2011 18:59:39 -0400 Message-ID: From: "b. f." To: phk@FreeBSD.org, svn-src-all@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: svn commit: r226672 - head/tools/tools/sysbuild X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2011 23:11:20 -0000 > Author: phk > Date: Sun Oct 23 19:46:01 2011 > New Revision: 226672 > URL: http://svn.freebsd.org/changeset/base/226672 > > Log: > Add a "-P olddistfiles" facility to prefetch ports distfiles, using an > old distfile directory as primary source: > > mkdir /freebsd/ports/distfiles.old > mv /freebsd/ports/distfiles/* /freebsd/ports/distfiles.old > sh sysbuild.sh -c $yourconfig -P /freebsd/ports/distfiles.old > rm -rf /freebsd/ports/distfiles.old > > Unfortunately bsd.ports.mk does not attempt to use a hard-link so > while this runs you need diskspace for both your old and your "new" > distfiles. With regard to removing old distfiles, if a full Ports tree is assumed to be available, then ports/Tools/scripts/distclean.sh -f may be used. With regard to pre-fetching new distfiles, new versions of ports may have new dependencies, so it would be prudent to run the "fetch-recursive" target in addition to "checksum". (Of course, this is a best effort in batch mode: some new dependencies may be dependent upon non-default choices for new options that the user may make later.) Nits: I think you mean bsd.port.mk(only 1 "s")? Also, there is a typo in the comment on line 271: s/checksump/checksum/. b.