From owner-freebsd-ports@FreeBSD.ORG Tue Oct 4 14:57:38 2005 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 1B45216A41F for ; Tue, 4 Oct 2005 14:57:38 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DDCF43D46 for ; Tue, 4 Oct 2005 14:57:37 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by xproxy.gmail.com with SMTP id t5so356095wxc for ; Tue, 04 Oct 2005 07:57:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=BSQQ1OjDnwKzeQlJfsg8v+IqXELY1vKpOKjsiQw+PKOSiSbrhKSMUGidjhulsiMfZ7n5gqkBVsmp3R7yf62TLWLKrrQCMWr3pkRzE+z1IeU245cnlRN3CCk6XnVTci9kBwbR+BzT+NpDVI6q0zMm26HEmRC1ey1CLOH/6XfVsfQ= Received: by 10.70.116.10 with SMTP id o10mr854566wxc; Tue, 04 Oct 2005 07:57:37 -0700 (PDT) Received: by 10.70.53.4 with HTTP; Tue, 4 Oct 2005 07:57:37 -0700 (PDT) Message-ID: <790a9fff0510040757s1806277t69df42874100a459@mail.gmail.com> Date: Tue, 4 Oct 2005 09:57:37 -0500 From: Scot Hetzel To: Ali Adur In-Reply-To: <790a9fff0510030946m1a340916of6e0ba1c8d2727e1@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8307_27770558.1128437857205" References: <790a9fff0510030946m1a340916of6e0ba1c8d2727e1@mail.gmail.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-ports@freebsd.org Subject: Re: distfiles download X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Scot Hetzel List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2005 14:57:38 -0000 ------=_Part_8307_27770558.1128437857205 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 10/3/05, Scot Hetzel wrote: > What I did was to duplicate the fetch-recursive target, renaming it to > getright-recursive, then modified the getright-recursive target to > return the first 9 sites and the ftp.freebsd.org site as a URL. > > Then to create the list, I would use: > > cd /usr/ports/www/apache2 > make getright-recusive > /mnt/dos/apache2.grx > My memory was off a little the correct command is: make getright-required-list > apache2.grx > I don't have a diff of this change with me at the moment, but I can > send it tomorrow. > Save the attached patch to a disk that you can access from FreeBSD, then do the following to apply it: cd /usr/ports gunzip /location/of/patch/bsd_mk.diff.gz patch < /location/of/patch/bsd_mk.diff This adds a patch to /usr/ports/Mk/bsd.port.mk and creates a new file called bsd.getright.mk. The bsd.getright.mk adds two new targets: getright-recursive-list - lists required source files needed for depending ports getright-required-list - list all required source files that need to be downloaded to create the port (including depending ports). These functions are similar to their fetch-* counterparts, except they output the list in a format that is compatible to be imported into GetRight. I also found a problem in the fetch-[list, required-list] targets, in that they don't include the LIB_DEPENDS in the list. The getright-* targets have this problem fixed. Scot DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised. ------=_Part_8307_27770558.1128437857205--